YouTube Search — API 参考文档
/youtube/searchYouTube Search
Search YouTube videos, Shorts, and creator channels with query and region parameters.
Search YouTube videos, Shorts, and creator channels with query and region parameters.
glstring目录示例;必填规则由接口校验。
示例: "us"
qstring目录示例;必填规则由接口校验。
示例: "nextjs tutorial"
countrystring可选
locale.country 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
cursorstring可选
pagination.cursor 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
devicestring可选
options.device 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
hlstring可选
locale.language 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
htmlboolean可选
include_html 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
languagestring可选
locale.language 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
limitinteger可选
pagination.limit 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
markdownboolean可选
include_markdown 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
mobileboolean可选
options.device 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
numinteger可选
pagination.limit 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
pageinteger可选
pagination.page 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
search_querystring可选
query 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
spstring可选
attributes.sp 的兼容写法。每次使用其中一种;接口会校验本产品支持的参数与取值。
{
"gl": "us",
"q": "nextjs tutorial"
}响应遵循此产品契约;暂未发布已记录的响应示例。schemas.source_data
curl -X POST 'https://api.serpbase.dev/youtube/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"gl":"us","q":"nextjs tutorial"}'从目录示例开始调用,并查看接口实际返回的 JSON。
示例展示请求参数用法,不代表完整契约。接口会校验已知字段,并允许额外参数。