YouTube search

Search YouTube videos or channels

Changed on

Search YouTube for videos or channels.

  • type=video (default): Returns video results with titles, thumbnails, view counts, etc.
  • type=channel: Returns channel results with handles, subscriber counts, etc.

Returns YouTube's full page (~20 items) per call.

Pagination: The response includes continuation_token (when has_more=true). To fetch the next page, call the endpoint again with continuation=<token> and omit q/type (the token already encodes them).

Credit cost: 1 credit per successful request (each page).

get/api/v2/youtube/search

Request

  • Base URL
    https://transcriptapi.com
  • Auth
    HTTP bearer

Query parameters

qstring nullable

Search query (required for first page)

type'video' | 'channel' | 'playlist' | 'movie'

Result type: video, channel, playlist, or movie

sortstring nullable

Sort order (first page): relevance (default) or views (YouTube 'Popularity'). YouTube no longer offers upload-date or rating sort in search. Use upload_date windows for recency.

upload_datestring nullable

Upload-date window (first page). Videos only.

durationstring nullable

Duration bucket (first page). Videos only: short <4m, medium 4-20m, long >20m.

featuresstring nullable

Comma-separated feature filters (first page), e.g. hd,subtitles,cc,live,4k,hdr,360,vr180,3d,location,creative_commons,purchased.

spstring nullable

Advanced: raw YouTube sp filter (base64). Overrides the structured filters above.

continuationstring nullable

Continuation token from previous page. When provided, q/type/filters are ignored.

Response

Successful Response

result_countinteger
continuation_tokenstring nullable
has_moreboolean

Changes

    • warning

      the optional response header X-RateLimit-Limit removed for the status 429

    • warning

      the optional response header X-RateLimit-Remaining removed for the status 429

    • warning

      the optional response header X-RateLimit-Reset removed for the status 429

    • breaking

      added to the / response property oneOf list for the response status

    • info

      added the new optional query request parameter duration

    • info

      added the new optional query request parameter features

    • info

      added the new optional query request parameter sort

    • info

      added the new optional query request parameter sp

    • info

      added the new optional query request parameter upload_date

    • info

      added the new enum value movie to the query request parameter type

    • info

      added the new enum value playlist to the query request parameter type

    • info

      removed from the / response property anyOf list for the response status

    • info

      added discriminator to / response property for the response status