YouTube Ricerca API
Cerca su YouTube e ottieni i video corrispondenti: titolo, canale, numero di visualizzazioni, durata e ora di pubblicazione.
0,43 USD/1k richieste, paghi a richiesta, nessun abbonamento.
Apollo 11 Moon Landing: Restored Footage
14.9M views · 2 years ago
NASA
{"id": "BzSzwqb-OEE","url": "https://www.youtube.com/watch?v=BzSzwqb-OEE","title": "Apollo 11 Moon Landing: Restored Footage","channel": "NASA","views": 14860541,"lengthText": "4:14","publishedTime": "2 years ago","authorAvatarUrl": string,... 3 campi in più}
Prezzi e provider
Prezzi dell'API YouTube Ricerca: una sola API, 5 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
Provalo
Ottieni YouTube Ricerca in una sola richiesta
Questo esempio mostra 10 campi su 16. Vedi tutti i campi
{
"found": true,
"data": {
"videos": [
{
"id": "BzSzwqb-OEE",
"url": "https://www.youtube.com/watch?v=BzSzwqb-OEE",
"title": "Apollo 11 Moon Landing: Restored Footage",
"channel": "NASA",
"views": 14860541,
"lengthText": "4:14",
"publishedTime": "2 years ago"
}
]
}
}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.
- querystring
apollo 11 landing
Query di ricerca YouTube.
- cursorstring
Token di continuazione da una risposta precedente per la paginazione.
- requireCursorboolean
Deprecato; invia invece `requireFields: ["nextCursor"]`, che fa esattamente la stessa cosa. Imposta true se intendi scorrere i risultati, così la richiesta viene servita solo da una fonte che può restituire un nextCursor. Omettilo e l'instradamento resta invariato, con la fonte più economica che serve. Può far salire il prezzo: quando la fonte più economica non può paginare, serve una che può, e ti viene quotato e addebitato il suo prezzo. Resta accettato perché i chiamanti che già lo inviano continuino a funzionare.
- requireFieldsarray
Facoltativo; se lo ometti l'instradamento resta invariato, e serve la fonte più economica. Indica i campi di output che questa richiesta deve poter restituire, per esempio `nextCursor`, e verrà servita solo da una fonte che li restituisce tutti. I campi che non indichi vengono comunque restituiti ogni volta che la fonte che serve li ha. Può far salire il prezzo: quando la fonte più economica non può restituire un campo indicato, serve una fonte più cara, e ti viene quotato e addebitato il suo prezzo. Un campo indicato può comunque mancare su un risultato che davvero non lo ha. Indicare una combinazione che nessuna singola fonte restituisce insieme viene rifiutato come input non valido, senza addebito. In una scansione paginata vale solo per la prima pagina; le pagine successive restano con la fonte scelta da quella pagina, al prezzo che era stato quotato.
- sortByenum
Ordinamento: "relevance" (predefinito) o "popular" (più visti).
- uploadDateenum
Filtra per recenza del caricamento. Omettilo per qualsiasi periodo.
Risposta
JSON, un valore di esempio per campo.
- nextCursorstringpuò richiedere
Opaque cursor for the next page of results, or null when this lane has no more. Pass it back as cursor to continue.
Populated whenever the provider has data for the entity.
- authorAvatarUrlstring
URL of the publishing channel's avatar image.
- authorIdstring
YouTube channel ID of the publishing channel.
- channelstring
NASA
Populated whenever the provider has data for the entity.
- createdUtcnumber
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.
- idstring
BzSzwqb-OEE
Populated whenever the provider has data for the entity.
- imagestring
URL of the video thumbnail image, tracking query parameters stripped.
- lengthTextstring
4:14
- publishedTimestring
2 years ago
Populated whenever the provider has data for the entity.
- titlestring
Apollo 11 Moon Landing: Restored Footage
Populated whenever the provider has data for the entity.
- urlstring
https://www.youtube.com/watch?v=BzSzwqb-OEE
Populated whenever the provider has data for the entity.
- viewsinteger
14860541
- 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.
Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.
FAQ
Sull'API YouTube Ricerca
L'API YouTube Ricerca di AnyAPI restituisce dati YouTube come JSON normalizzato da una sola chiamata POST a /v1/run/youtube.search. Cerca su YouTube e ottieni i video corrispondenti: titolo, canale, numero di visualizzazioni, durata e ora di pubblicazione. AnyAPI instrada ogni richiesta su 5 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,43 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 tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,1 secondi su 219.679 chiamate misurate.