SerpApiYouTubeSocial

YouTube video search for a query — views, channels

serpapi.youtube.search.videos

Search YouTube videos by keyword and get titles, channels, view counts and links

价格
$0.015/success按供应商原价
成功率
100%近 30 天 · 1,335 次
延迟 p50
2.5 秒p95 5.4 秒
最后验证
2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/serpapi.youtube.search.videos?engine=youtube&search_query=coffee预览
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

answers arrive in `video_results`; the response may also carry `channel_results`, `movie_results`, `ads_results` and `serpapi_pagination`.

参数类型必填说明示例
查询参数
gl字符串可选country code, e.g. usus
hl字符串可选interface language code, e.g. enen
sp字符串可选YouTube's encoded filter/pagination token — carries sort order, upload date and result-type filters
engine字符串必填youtube
search_query字符串必填THE QUERY PARAM IS `search_query`, NOT `q` — sending `q` to this engine returns nothingcoffee
  • 查询参数
  • gl字符串可选

    country code, e.g. us

    示例:us

  • hl字符串可选

    interface language code, e.g. en

    示例:en

  • sp字符串可选

    YouTube's encoded filter/pagination token — carries sort order, upload date and result-type filters

  • engine字符串必填

    示例:youtube

  • search_query字符串必填

    THE QUERY PARAM IS `search_query`, NOT `q` — sending `q` to this engine returns nothing

    示例:coffee

代码示例

将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。

预览
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.youtube.search.videos?engine=youtube&search_query=coffee' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.015/success 计费,已含服务费。