API di YouTube

YouTube Ricerca hashtag API

Cerca video YouTube per hashtag con paginazione a cursore (titolo, canale, visualizzazioni, durata, ora di pubblicazione).

1,20 USD/1k richieste, paghi a richiesta, nessun abbonamento.

#funny - YouTube
youtube.com/hashtag/funny
YouTube
Sign in

#funny

312M videos · 28M channels

My dog reacts to the vacuum cleaner #funny

Pancake the Corgi · 4.8M views · 3 days ago

Cosa ha restituito l'APIvideos[0]
{
"id": "dN1sTv7QkXo",
"url": "https://www.youtube.com/watch?v=dN1sTv7QkXo",
"title": "My dog reacts to the vacuum cleaner #funny",
"channelTitle": "Pancake the Corgi",
"views": 4820000,
"lengthText": "0:42",
"publishedTime": "3 days ago",
"image": "https://i.ytimg.com/vi/dN1sTv7QkXo/hqdefault.jpg",
... 5 campi in più
}
Disponibilità
100,00%
30d · 200 chiamate
Richieste
201
30 g · settimanale, ultime 12 sett.
Risposta
1,5s
mediana · 30d

Prezzi

Prezzi dell'API YouTube Ricerca hashtag

Paghi
12,00 USD
1,20 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 83 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni YouTube Ricerca hashtag in una sola richiesta

Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 17 campi su 18. Vedi tutti i campi

{
  "found": true,
  "data": {
    "nextCursor": "EqQCCkYaGkNva1JXVzXQ0MDA1UN0aWNraGFzaHRhZw",
    "videos": [
      {
        "id": "dN1sTv7QkXo",
        "url": "https://www.youtube.com/watch?v=dN1sTv7QkXo",
        "title": "My dog reacts to the vacuum cleaner #funny",
        "channelTitle": "Pancake the Corgi",
        "views": 4820000,
        "lengthText": "0:42",
        "publishedTime": "3 days ago",
        "image": "https://i.ytimg.com/vi/dN1sTv7QkXo/hqdefault.jpg",
        "createdUtc": 1758758400,
        "authorId": "UC3fKq1n9pRxYm2oLwVzT8Cg",
        "authorHandle": "pancakethecorgi",
        "authorAvatarUrl": "https://yt3.ggpht.com/pancake-corgi-avatar.jpg",
        "durationSeconds": 42
      },
      {
        "id": "eO2uUw8RlYp",
        "url": "https://www.youtube.com/watch?v=eO2uUw8RlYp",
        "title": "Trying to explain crypto to my grandma #funny #comedy",
        "channelTitle": "Marcus Bellweather",
        "views": 1230000,
        "lengthText": "3:15",
        "publishedTime": "1 week ago",
        "image": "https://i.ytimg.com/vi/eO2uUw8RlYp/hqdefault.jpg",
        "createdUtc": 1758326400,
        "authorId": "UC7pRq2s0mXyLn3aQwYbT4Ef",
        "authorHandle": "marcusbellweather",
        "authorAvatarUrl": "https://yt3.ggpht.com/marcus-bellweather-avatar.jpg",
        "durationSeconds": 195
      },
      {
        "id": "fP3vVx9SmZq",
        "url": "https://www.youtube.com/watch?v=fP3vVx9SmZq",
        "title": "Office prank fails compilation #funny",
        "channelTitle": "Blooper Reel Weekly",
        "views": 892000,
        "lengthText": "8:04",
        "publishedTime": "2 weeks ago",
        "image": "https://i.ytimg.com/vi/fP3vVx9SmZq/hqdefault.jpg",
        "createdUtc": 1757721600,
        "authorId": "UC5oNp8q1rXwKm0bRzUcV2Gh",
        "authorHandle": "blooperreelweekly",
        "authorAvatarUrl": "https://yt3.ggpht.com/blooper-reel-avatar.jpg",
        "durationSeconds": 484
      }
    ]
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • hashtagstring

    funny

    Hashtag da cercare (senza # iniziale).

  • cursorstring

    Token di continuazione da una risposta precedente per la paginazione.

  • typeenum

    Filtro per contenuto. Viene servito solo "all": nessuna fonte che acquistiamo restituisce una riga Shorts con il canale e l'ora di pubblicazione richiesti da questo endpoint.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

datadata
  • nextCursorstring

    EqQCCkYaGkNva1JXVzXQ0MDA1UN0aWNraGFzaHRhZw

    Opaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue.

each videodata.videos[]

Populated whenever the provider has data for the entity.

  • authorAvatarUrlstring

    https://yt3.ggpht.com/pancake-corgi-avatar.jpg

    URL of the publishing channel's avatar image.

  • authorHandlestring

    pancakethecorgi

    The publishing channel's @handle, without the leading @.

  • authorIdstring

    UC3fKq1n9pRxYm2oLwVzT8Cg

    YouTube channel ID of the publishing channel.

  • channelTitlestring

    Pancake the Corgi

    Populated whenever the provider has data for the entity.

  • createdUtcnumber

    1758758400

    UTC epoch timestamp in seconds (Unix time), estimated from the relative age YouTube shows such as "4 days ago", so it can be off by up to that label's unit (a day, a week, a month). Multiply by 1000 for a JS Date in milliseconds.

  • durationSecondsinteger

    42

    Length of the video in seconds.

  • idstring

    dN1sTv7QkXo

    Populated whenever the provider has data for the entity.

  • imagestring

    https://i.ytimg.com/vi/dN1sTv7QkXo/hqdefault.jpg

    URL of the video thumbnail image, tracking query parameters stripped.

  • lengthTextstring

    0:42

  • publishedTimestring

    3 days ago

    Populated whenever the provider has data for the entity.

  • titlestring

    My dog reacts to the vacuum cleaner #funny

    Populated whenever the provider has data for the entity.

  • urlstring

    https://www.youtube.com/watch?v=dN1sTv7QkXo

    Populated whenever the provider has data for the entity.

  • viewsinteger

    4820000

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API YouTube Ricerca hashtag

L'API YouTube Ricerca hashtag di AnyAPI restituisce dati YouTube come JSON normalizzato da una sola chiamata POST a /v1/run/youtube.search_hashtag. Cerca video YouTube per hashtag con paginazione a cursore (titolo, canale, visualizzazioni, durata, ora di pubblicazione). AnyAPI restituisce un unico schema normalizzato qualunque fonte la serva. Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate YouTube Ricerca hashtag tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,5 secondi su 200 chiamate misurate.

Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Cerca video YouTube per hashtag con paginazione a cursore (titolo, canale, visualizzazioni, durata, ora di pubblicazione). La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate YouTube Ricerca hashtag tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,5 secondi su 200 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 83 chiamate YouTube Ricerca hashtag a 0,0012 USD ciascuna.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/youtube.search_hashtag con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.