Skip to main content

GET /v1/youtube/search/search_v1

YouTube Search API (V1)

stable · 20 credits per success

Search YouTube videos by keyword, with optional language, upload-date, duration and sort filters, or continue with a pagination token. Use it to discover public videos or browse further result pages.

Sign up for 500 credits and run with your own API key. Sign up free

Request

curl
curl -s 'https://api.wellbyte.net/v1/youtube/search/search_v1?lang=demo&sortBy=relevance&keyword=%E5%92%96%E5%95%A1&duration=all&nextToken=demo&uploadDate=all' \
  -H "Authorization: Bearer dg_live_…"

Response

Sample captured 2026-09-23

data{
code:0
data{
items[ 2 items ]
errorId:"Success"
nextToken:
"search-videos.Ep0DEghkZWVwc2VlaxqQA0VnSVFBVWdVZ2dFTFZTMXljM1pZWkhNNVkydUNBUXQ0UW..."
}
meta{
endpoint:"youtube.search.search_v1"
cache_hit:false
elapsed_ms:0
request_id:"req_sample"
credits_charged:0
}
message:"ok"
}

No calls yet. Get one green run first, then switch to your own data.

    Request parameters

    NameTypeInRequiredDescriptionExample
    langstringqueryno可选 IETF 语言标签,用于本地化结果,例如 en-US。留空则使用默认语言。demo
    sortBystringqueryno搜索结果的排序顺序。 可用值: - `relevance`: 按相关性排序 - `uploadDate`: 按上传日期排序 - `viewCount`: 按观看次数排序 - `rating`: 按评分排序relevance
    keywordstringqueryno搜索词。第一页必填;使用 nextToken 时留空。咖啡
    durationstringqueryno视频时长筛选。 可用值: - `all`:不限时长 - `short`:4分钟以下的短视频 - `medium`:4至20分钟的中等长度视频 - `long`:20分钟以上的长视频all
    nextTokenstringqueryno上一个响应返回的分页令牌。当提供时,关键词和过滤参数将被忽略;非常长的令牌可能超过 GET URL 的长度限制。demo
    uploadDatestringqueryno上传日期过滤条件。 可用值: - `all`: 无上传日期限制 - `lastHour`: 最近一小时上传 - `today`: 今天上传 - `thisWeek`: 本周上传 - `thisMonth`: 本月上传 - `thisYe…all

    Response fields

    Field dictionary coming soon — the executable panel shows the live shape.

    Errors

    codeHTTPMeaningBilled
    40001400Invalid parametersno
    40102401Invalid or revoked API Keyno
    40201402Insufficient creditsno
    40402404Resource not foundno
    42201422Quality gate failedno
    42901429Rate limit exceededno
    50401504Upstream timeoutno
    50201502Upstream errorno

    Billing

    Success costs 20 credits. Any failure — including a 200 that fails the quality gate — costs 0.

    All YouTube endpoints →

    Search

    Search endpoints and docs