Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

YouTube Search Suggestions

Documentazione API
https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions

Returns YouTube autocomplete search suggestions for a given keyword query. Supports optional geographic region and language filtering.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali
100 chiamate gratuite / giornoPrime 100 chiamate al giorno gratuite (condivise per organizzazione) · Si azzera alle 00:00 UTC. Dopo, pagamento per chiamata.

Playground

Input
Search keyword (required)
Language code (optional, default en)
Region code (optional, default US)
OutputEsempio
Rispostaoutputs · 233 B · 14 righe
[
  {
    "data": {
      "keyword": "OpenAI",
      "suggestions": [
        "openai",
        "openai dots",
        "openai hugging face",
        "… 11 more items in the full response"
      ],
      "total_count": 14
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

YouTube Search Suggestions API

Returns YouTube autocomplete suggestions for a search keyword. You send a keyword and can set region and language to localize the results.

Use cases

  • Fill a search box in your own app with the same suggestions YouTube shows for a partial or full query.
  • Find phrases people type after a brand or topic name, such as OpenAI, to plan video titles.
  • Compare suggestions for the same keyword across different region and language values to see how searches differ by market.
  • Build a keyword list for content research by running a seed term and collecting the returned phrases.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword (required)
languagestringNoLanguage code (optional, default en)
regionstringNoRegion code (optional, default US)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "keyword": "OpenAI",
  "suggestions": [
    "openai"
  ],
  "total_count": 14
}

Response fields

FieldMeaning
keywordThe search term the suggestions were requested for. It matches the keyword you sent.
suggestions[]List of autocomplete phrases, as plain strings. The first item in the example is the keyword itself in lowercase, followed by longer phrases that start with it.
total_countNumber of suggestions reported for the query. In the example it is 14, while the list is trimmed to a few items.

Notes

  • keyword is required and can be up to 200 characters. region defaults to US and language defaults to en.
  • Suggestions are returned as plain text strings with no IDs or URLs. To get videos for a suggestion, pass it to YouTube General Search (Web V2, V2).
  • To find channels for a suggestion, use YouTube Channel Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON

Guide:Best YouTube API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API YouTube Search Suggestions?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API YouTube Search Suggestions?

$0.001 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.

Quali parametri accetta l'API YouTube Search Suggestions?

Richiesti: keyword (string). Facoltativi: language (string) e region (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API YouTube Search Suggestions?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API YouTube?

No. YouTube Search Suggestions funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API YouTube.