← API Store
Social
YouTube
YouTube
YouTube search suggestions
GET /youtube/v1/search/typeaheadEvery response includes credits_used: the credits this call cost.
Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.
Parameters
| Name | Type | Description |
|---|---|---|
qrequired | string | Example: how to |
Every endpoint also takes: raw、fields、fresh、output、records
{
"cached": false,
"credits_used": 1,
"query": "how to",
"suggestions": [
"how to tie a tie",
"how to draw",
"… 12 more"
],
"suggestions_detail": [
{
"extra": [
[
512,
433
]
],
"text": "how to tie a tie",
"type": 0
},
{
"extra": [
[
512,
433
]
],
"text": "how to draw",
"type": 0
},
"… 12 more"
]
} Response fields (13)
Field paths and types observed in the sample response; the live response is authoritative.
$ | object |
$.cached | boolean |
$.credits_used | integer |
$.query | string |
$.suggestions | array |
$.suggestions[] | string |
$.suggestions_detail | array |
$.suggestions_detail[] | object | string |
$.suggestions_detail[].extra | array |
$.suggestions_detail[].extra[] | array |
$.suggestions_detail[].extra[][] | integer |
$.suggestions_detail[].text | string |
$.suggestions_detail[].type | integer |