keywordstringrequerido
Search keyword (required)
https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestionsReturns YouTube autocomplete search suggestions for a given keyword query. Supports optional geographic region and language filtering.
[
{
"data": {
"keyword": "OpenAI",
"suggestions": [
"openai",
"openai dots",
"openai hugging face",
"… 11 more items in the full response"
],
"total_count": 14
}
}
]Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
Returns YouTube autocomplete suggestions for a search keyword. You send a keyword and can set region and language to localize the results.
OpenAI, to plan video titles.keyword across different region and language values to see how searches differ by market.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword (required) |
language | string | No | Language code (optional, default en) |
region | string | No | Region code (optional, default US) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"keyword": "OpenAI",
"suggestions": [
"openai"
],
"total_count": 14
}
| Field | Meaning |
|---|---|
keyword | The 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_count | Number of suggestions reported for the query. In the example it is 14, while the list is trimmed to a few items. |
keyword is required and can be up to 200 characters. region defaults to US and language defaults to en.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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 '{
"region": "US",
"keyword": "OpenAI",
"language": "en"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
keywordstringrequeridoSearch keyword (required)
languagestringLanguage code (optional, default en)
Valor predeterminado: "en"
regionstringRegion code (optional, default US)
Valor predeterminado: "US"
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"data": {
"keyword": "OpenAI",
"suggestions": [
"openai",
"openai dots",
"openai hugging face",
"… 11 more items in the full response"
],
"total_count": 14
}
}
]Explorar más
| API | Precio | Respuesta |
|---|---|---|
YouTube Search SuggestionsEsta API YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
YouTube | $0.001 por llamada | JSON |
Preguntas
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.
$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.
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.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
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.