YouTube Search API
To get youTube search results, call GET /v1/youtube/search?query=… with your API key. You get clean JSON back.
/v1/youtube/searchcurl "https://api.scraperize.com/v1/youtube/search?query=lofi%20hip%20hop" \ -H "x-api-key: YOUR_API_KEY"
cursor to get the next page.cache_max_age to reuse a recent result for free.429 with a Retry-After header.Parameters
queryRequireduploadDateOptionaltype=channels or type=playlists.One of 4 values.sortByOptionalrelevance (default) or popular (most viewed first).One of 2 values.typeOptionaldurationOptionaltype or with type=videos.One of 3 values.regionOptionalcursorOptionalcursor from the previous page, to get the next one (it keeps the filters and region). Omit for the first page.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": "lofi hip hop",
"region": null,
"filters": {
"uploadDate": null,
"sortBy": "relevance",
"type": null,
"duration": null
},
"showingResultsFor": null,
"includingResultsFor": null,
"hashtag": null,
"estimatedResults": 11370869,
"results": [
{
"type": "playlist",
"kind": "mix",
"id": "RDATfmbG9maSBoaXAgaG9w",
"url": "https://www.youtube.com/playlist?list=RDATfmbG9maSBoaXAgaG9w",
"title": "Mix • Lofi hip hop",
"videoCount": null,
"channelName": "Академия глубокой релаксации, Kudasaibeats, RŮDE, and more",
"channelId": null,
"firstVideoId": "R8om0QifqII",
"thumbnailUrl": "https://i.ytimg.com/vi/R8om0QifqII/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBN0ePqpHQrvDXXKRJ…",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/R8om0QifqII/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBN0ePqpHQrvDXXKRJ…",
"width": 480,
"height": 270
}
],
"position": 1,
"shelfTitle": null
}
],
"counts": {
"video": 14,
"short": 25,
"live": 5,
"channel": 0,
"playlist": 1
},
"count": 45,
"cursor": "eyJrIjoibG9maSBoaXAgaG9wIiwiYyI6IkVxMERFZ3hzYjJacElHaHBjQ0JvYjNBYW5BTlRRbE5EUVZKYVUxSkZSbFZhYlRGcFVucHNkRmxXVGtOaU1rWlpV…",
"hasMore": true,
"fetchedAt": "2026-11-05T19:15:07.802Z"
},
"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 API questions
How much does the YouTube Search 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.
How do I get more results?
Each response includes a cursor. Send it back as the cursor parameter with the same other parameters to get the next page. It is null on the last page.
Where are the full parameters and response fields?
In the API reference, with every parameter, field and error.