YouTube Search Typeahead API
To get youTube's search autocomplete suggestions, call GET /v1/youtube/search/typeahead?query=… with your API key. You get clean JSON back.
/v1/youtube/search/typeaheadcurl "https://api.scraperize.com/v1/youtube/search/typeahead?query=mrbea" \ -H "x-api-key: YOUR_API_KEY"
cache_max_age to reuse a recent result for free.429 with a Retry-After header.Parameters
queryRequiredhow to m.cache_max_ageOptionalmeta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.Send your key in the x-api-key header. Full API reference
Example response
{
"data": {
"query": "mrbea",
"suggestions": [
{
"text": "mrbeast",
"entity": {
"type": "channel",
"name": "MrBeast",
"description": null,
"imageUrl": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s88-c-k-c0…",
"url": "https://www.youtube.com/@MrBeast",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"handle": "MrBeast",
"knowledgeGraphId": "/g/11ffmnm29k"
}
}
],
"count": 14,
"fetchedAt": "2026-11-05T19:15:04.262Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}A real response, shortened to one item per list.
YouTube Search Typeahead API questions
How much does the YouTube Search Typeahead API cost?
1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.
Do I need a YouTube account or API key?
No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No YouTube login or developer app is needed.
How fresh is the data?
Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.
Where are the full parameters and response fields?
In the API reference, with every parameter, field and error.