跳到主内容

GET /v1/youtube/web_v2/get_shorts_search

Shorts搜索(原始数据,推荐使用V2)

stable · 2 credits / 次(成功才计)

⚠️ 推荐使用 V2 版本;本接口返回 YouTube 原始数据结构,需要自行解析;**清洗过的数据版本请使用 `/get_shorts_search_v2` 接口**,返回结构化的 Shorts 列表数据,自动过滤非 Shorts 内容;YouTube Shorts短视频专门搜索,使用原生YouTube API接口;特点;🎬 专门搜索YouTube Shorts短视频(<60秒);🔍 支持多种过滤条件和排序方式;📱 优化的移动端短视频内容;⚡ 智能过滤:首次请求可能返回混合内容(长视频+短视频),默认自动过滤长视频;重要说明 - YouTube Shorts搜索机制;根据YouTube的搜索逻辑,Shorts搜索有以下特性;1. **首次请求**(无continuation_token):可能返回混合内容(部分长视频 + 部分短视频);2. **后续请求**(有continuat…

注册即送 500 credits,用自己的 Key 试调。 免费注册

请求

curl
curl -s 'https://api.wellbyte.net/v1/youtube/web_v2/get_shorts_search?sort_by=relevance&time_zone=America%2FLos_Angeles&upload_time=hour&country_code=US&search_query=Python%E7%BC%96%E7%A8%8B&language_code=en-US&continuation_token=demo&filter_mixed_content=true' \
  -H "Authorization: Bearer dg_live_…"

响应

示例采集于 2026-09-23

data{
code:0
data{
header{ 1 item }
topbar{ 1 item }
contents{ 1 item }
targetId:"search-page"
trackingParams:"CAAQvGkiEwjXlsOSobyWAxUlc3oFHRGsI5nKAQQCLBIk"
isShortsContext:true
responseContext{ 5 items }
estimatedResults:"11492604"
}
meta{
endpoint:"youtube.web_v2.get_shorts_search"
cache_hit:false
elapsed_ms:0
request_id:"req_sample"
credits_charged:0
}
message:"ok"
}

请求历史

打开完整日志

还没有调用记录。先跑通一次,再换成你的数据。

    请求参数

    参数类型位置必填说明示例
    sort_bystringquery否排序方式 | Sort by for Shortsrelevance
    time_zonestringquery否时区(如AmericaAmerica/Los_Angeles
    upload_timestringquery否上传时间过滤 | Upload time filter for Shortshour
    country_codestringquery否国家代码(如US, CN等)US
    search_querystringquery是搜索关键字Python编程
    language_codestringquery否语言代码(如zh-CN, en-US等)en-US
    continuation_tokenstringquery否翻页令牌demo
    filter_mixed_contentbooleanquery否是否过滤混合内容(长视频),默认Truetrue

    响应字段

    字段字典待补 —— 右侧可执行区可直接看到真实结构。

    错误码

    codeHTTP含义是否计费
    40001400参数缺失或格式错误否
    40102401API Key 无效或已吊销否
    40201402余额不足,请充值否
    40402404目标资源不存在否
    42201422质量门槛未通过否
    42901429超出速率限制否
    50401504上游超时否
    50201502上游返回异常否

    计费

    成功扣 2 credits;任何失败(含返回 200 但未过质量门槛)扣 0。

    全部YouTube端点 →

    搜索

    搜索端点与文档