Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

YouTube Search Suggestions

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales
100 llamadas gratis / díaLas primeras 100 llamadas de cada día son gratis (compartidas por organización) · Se restablecen a las 00:00 UTC. Después, pago por llamada.

Entorno de pruebas

Entrada
Search keyword (required)
Language code (optional, default en)
Region code (optional, default US)
SalidaEjemplo
Respuestaoutputs · 233 B · 14 líneas
[
  {
    "data": {
      "keyword": "OpenAI",
      "suggestions": [
        "openai",
        "openai dots",
        "openai hugging face",
        "… 11 more items in the full response"
      ],
      "total_count": 14
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON

Guías:Best YouTube API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de YouTube Search Suggestions?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de YouTube Search Suggestions?

$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.

¿Qué parámetros acepta la API de YouTube Search Suggestions?

Requeridos: keyword (string). Opcionales: language (string) y region (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de YouTube Search Suggestions?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de YouTube?

No. YouTube Search Suggestions funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de YouTube por separado.