YouTube

Searches YouTube by keyword query and returns matching videos, channels, playlists, shorts, shelves, and live streams. Each video result includes title, URL, thumbnail, view count (views), publish date, duration, channel info, and badges. Supports filtering by upload date, sorting by relevance or popularity, and paginating with continuationToken. Set is_paid_promotions=true to search YouTube videos with the paid product placement / sponsorship disclosure.

get/v1/youtube/search

Request

  • Base URL
    https://api.scrapecreators.com
  • URL
    https://api.scrapecreators.com/v1/youtube/search
  • Auth
    API key in header x-api-key

Query parameters

querystring required

Search query. For stricter title matching, use YouTube's intitle: operator, for example intitle:"Foursquare Swarm". Quoted queries by themselves may still be broadened by YouTube when no fresh exact matches are available.

uploadDate'today' | 'this_week' | 'this_month' | 'this_year'

Upload date

sortBy'relevance' | 'popular'

Sort by

type'videos' | 'shorts' | 'channels' | 'playlists'

Type of content to search for

duration'under_3_min' | 'between_3_and_20_min' | 'over_20_min'

Duration of the video. Only applies to videos (not shorts).

regionstring

2 letter country code of the country to put the proxy in.

includeExtrasstring

This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. This will slow down the response slightly.

continuationTokenstring

Continuation token to get more videos. Get 'continuationToken' from previous response.

Response

Successful response

Changes

    • warning

      deleted the query request parameter filter

    • info

      added the new optional query request parameter duration

    • info

      added the new optional query request parameter region

    • info

      added the new optional query request parameter type