get_youtube_search_results
Search YouTube and return structured results.
Scope: one query per call. To run many queries in one pass, or to write
results to disk instead of into the conversation, use the ScrapingBee CLI —
scrapingbee <command> --input-file queries.txt --output-dir results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hd | No | Return only HD videos. | |
| hdr | No | Return only HDR videos. | |
| tag | No | Response-header label only. | |
| live | No | Return only live streams. | |
| is_3d | No | Return only 3D videos. | |
| is_4k | No | Return only 4K videos. | |
| vr180 | No | Return only VR180 videos. | |
| is_360 | No | Return only 360-degree videos. | |
| search | Yes | The search query. | |
| sort_by | No | Sort order: 'relevance' (default), 'rating', 'view_count', 'upload_date'. | relevance |
| duration | No | Filter by duration: '<4' (short), '4-20' (medium), '>20' (long). | |
| location | No | Return only videos with location metadata. | |
| purchased | No | Return only purchased movies. | |
| subtitles | No | Return only videos with subtitles/captions. | |
| result_type | No | Filter by type: 'video', 'channel', 'playlist', 'movie'. | |
| upload_date | No | Filter by date: 'today', 'last_hour', 'this_week', 'this_month', 'this_year'. | |
| creative_commons | No | Return only videos with Creative Commons license. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||