API di YouTube

YouTube Ricerca Short API

Cerca Short di YouTube per parola chiave e ottieni gli Short corrispondenti (titolo, visualizzazioni, URL) con paginazione a cursore come JSON normalizzato.

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

cats - YouTube
youtube.com/results?search_query=cats&sp=EgIYAQ%253D%253D
YouTube
Sign in
AllShortsVideos
Shorts

cat discovers the box is too small

6.7M views

Cosa ha restituito l'APIshorts[0]
{
"id": "gQ4wWy0TnAr",
"url": "https://www.youtube.com/shorts/gQ4wWy0TnAr",
"title": "cat discovers the box is too small",
"views": 6720000,
"viewsAvailable": true,
"contentType": "short"
}
Disponibilità
99,90%
30d · 13.225 chiamate
Richieste
13.233
30 g · settimanale, ultime 12 sett.
Risposta
1,6s
mediana · 30d

Prezzi

Prezzi dell'API YouTube Ricerca Short

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 Short 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 10 campi su 11. Vedi tutti i campi

{
  "found": true,
  "data": {
    "nextCursor": "CBgSC2NhdHMgc2hvcnRz",
    "shorts": [
      {
        "id": "gQ4wWy0TnAr",
        "url": "https://www.youtube.com/shorts/gQ4wWy0TnAr",
        "title": "cat discovers the box is too small",
        "views": 6720000,
        "viewsAvailable": true,
        "contentType": "short"
      },
      {
        "id": "hR5xXz1UoBs",
        "url": "https://www.youtube.com/shorts/hR5xXz1UoBs",
        "title": "when the treat bag crinkles",
        "views": 2140000,
        "viewsAvailable": true,
        "contentType": "short"
      },
      {
        "id": "iS6yYa2VpCt",
        "url": "https://www.youtube.com/shorts/iS6yYa2VpCt",
        "title": "my cat judging my life choices",
        "views": 0,
        "viewsAvailable": false,
        "contentType": "short"
      }
    ]
  }
}

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

    cats

    Parola chiave con cui cercare gli Short.

  • cursorstring

    Token di continuazione da una risposta precedente per la paginazione.

  • sortByenum

    relevance

    Ordinamento: "relevance" (predefinito) o "popular" (più visti).

  • uploadDateenum

    Filtra per recenza del caricamento. Omettilo per qualsiasi periodo.

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

    CBgSC2NhdHMgc2hvcnRz

    Opaque cursor for the next page of results, or null when there are no more. Pass it back as cursor to continue.

each shortdata.shorts[]

Populated whenever the provider has data for the entity.

  • contentTypestring

    short

    Always "short": every row here comes from YouTube's Shorts shelf.

  • idstring

    gQ4wWy0TnAr

    YouTube video id of the Short. Populated whenever the provider has data for the entity.

  • titlestring

    cat discovers the box is too small

    Title of the Short. Populated whenever the provider has data for the entity.

  • urlstring

    https://www.youtube.com/shorts/gQ4wWy0TnAr

    Watch URL for the Short. Populated whenever the provider has data for the entity.

  • viewsinteger

    6720000

    View count, or 0 when the source did not publish one. Read viewsAvailable before trusting a 0. Rounded as YouTube shows it on Shorts (8.9M, 875K), so counts of 1,000 or more are approximate.

  • viewsAvailableboolean

    true

    False when the source published no view count, so views is a placeholder rather than a measured zero.

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 Short

L'API YouTube Ricerca Short di AnyAPI restituisce dati YouTube come JSON normalizzato da una sola chiamata POST a /v1/run/youtube.search_shorts. Cerca Short di YouTube per parola chiave e ottieni gli Short corrispondenti (titolo, visualizzazioni, URL) con paginazione a cursore come JSON normalizzato. 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 99,9% delle chiamate YouTube Ricerca Short tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,6 secondi su 13.225 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 Short di YouTube per parola chiave e ottieni gli Short corrispondenti (titolo, visualizzazioni, URL) con paginazione a cursore come JSON normalizzato. 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 99,9% delle chiamate YouTube Ricerca Short tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,6 secondi su 13.225 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 Short a 0,0012 USD ciascuna.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/youtube.search_shorts 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.