YouTubeYouTubeSocial

Search YouTube videos by keyword

youtube.youtube.search.videos

Search YouTube videos by keyword

Price
freeAt provider cost
Success rate
100%Last 30 days · 2,373 calls
Latency p50
332 msp95 596 ms
Last verified
Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2Preview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

search results carry NO statistics — pass the returned video ids to youtube.video.detail for view/like counts

ParameterTypeRequiredDescriptionExample
Query parameters
qstringRequiredcoffee
partstringRequiredsnippet
typestringOptionalvideo | channel | playlist; omit to mix all threevideo
orderstringOptionalrelevance (default) | date | viewCount | rating | title
maxResultsintegerOptional1–50, default 510
regionCodestringOptionalISO 3166-1 alpha-2US
publishedAfterstringOptionalRFC 3339 timestamp2026-01-01T00:00:00Z
  • Query parameters
  • qstringRequired

    Example: coffee

  • partstringRequired

    Example: snippet

  • typestringOptional

    video | channel | playlist; omit to mix all three

    Example: video

  • orderstringOptional

    relevance (default) | date | viewCount | rating | title

  • maxResultsintegerOptional

    1–50, default 5

    Example: 10

  • regionCodestringOptional

    ISO 3166-1 alpha-2

    Example: US

  • publishedAfterstringOptional

    RFC 3339 timestamp

    Example: 2026-01-01T00:00:00Z

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.