keywordstringобязательно
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
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в 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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
keywordstringобязательноSearch keyword (required)
languagestringLanguage code (optional, default en)
По умолчанию: "en"
regionstringRegion code (optional, default US)
По умолчанию: "US"
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"keyword": "OpenAI",
"suggestions": [
"openai",
"openai dots",
"openai hugging face",
"… 11 more items in the full response"
],
"total_count": 14
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
YouTube Search SuggestionsЭтот API YouTube | $0.001 за запрос | JSON |
YouTube | $0.001 за запрос | JSON |
YouTube | $0.001 за запрос | JSON |
YouTube | $0.001 за запрос | JSON |
YouTube | $0.001 за запрос | JSON |
YouTube | $0.001 за запрос | JSON |
Руководства:Best YouTube API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.
Обязательные: keyword (string). Необязательные: language (string) и region (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. YouTube Search Suggestions работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API YouTube.