youtube_search
Scrape YouTube search results for any query. Returns structured data including video titles, links, channel info, view counts, and pagination tokens.
Instructions
Scrapes YouTube search results for any query, returning structured video/channel/shorts data including titles, links, channel info, view counts, durations, thumbnails, and pagination tokens. [Credits: 5 API credits per successful request] Notes: Shares the single /youtube endpoint with all other YouTube tools; presence of search_query selects Search behavior. Pagination via sp = previous response's pagination.next_page_token. ENDPOINT VERIFIED LIVE 2026-07-10: docs show bare /youtube but the working endpoint is /youtube/search. Returns: { channel_results: [{title, link, verified, handle, subscribers, description, thumbnail, position}], video_results: [{title, link, channel:{name,link,thumbmail,verified}, published_date, views, length, description, extensions[], thumbnail:{static,rich}, position}], shorts_results: [{shorts: [{title,link,thumbnail,views_original,views,video_id,position}], position}], movie_results[], pagination: {current, next_page_token, next} }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sp | No | Used for pagination and filtering search results on YouTube. Supports filters like upload date (`CAI%3D`), 4K videos (`EgJwAQ%3D%3D`), exact spelling (`QgIIAQ%3D%3D`), and custom filters. Also used as the `next_page_token` value from the previous response to paginate. | |
| country | No | ISO code of the country from which you are seeking YouTube search results. (default: us) | |
| language | No | Language of the results. Possible values: `en`, `es`, `fr`, `de`, etc. (default: en) | |
| search_query | Yes | Any YouTube search query, e.g. `search_query=elon+musk`. This is the parameter that identifies this call as a Search request against the shared /youtube endpoint. |