跳转到主要内容
GET
/
v1
/
youtube
/
search_channels
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/youtube/search_channels?keyword=Rick+Astley&need_format=true' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "keyword": "Rick Astley",
    "channels": [
      {
        "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
        "title": "Rick Astley",
        "handle": "@RickAstleyYT",
        "subscriber_count_text": "4.46M subscribers",
        "description": "2026 UK & Ireland Reflection Tour     🎟️ Tickets are on sale now. New single 'Waiting On You' out now.",
        "thumbnails": [
          {
            "url": "//yt3.googleusercontent.com/vewxKdtll-rntHAMDPY_Qa6hPac3-J2sCFFUwvGSSR0i7hB4g5rNfF39lCEcjGvsYI0RWx7V1A=s88-c-k-c0x00ffffff-no-rj-mo",
            "width": 88,
            "height": 88
          },
          {
            "url": "//yt3.googleusercontent.com/vewxKdtll-rntHAMDPY_Qa6hPac3-J2sCFFUwvGSSR0i7hB4g5rNfF39lCEcjGvsYI0RWx7V1A=s176-c-k-c0x00ffffff-no-rj-mo",
            "width": 176,
            "height": 176
          }
        ],
        "is_subscribed": false,
        "canonical_url": "/@RickAstleyYT",
        "channel_url": "https://www.youtube.com/@RickAstleyYT"
      }
    ],
    "continuation_token": null,
    "has_more": false,
    "total_count": 1
  },
  "requestId": "10380c82-2a7b-4e53-9ef1-65eac3f48652"
}
🪙3 credits每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

keyword
string

搜索关键词(首次请求必填)

示例:

"Rick Astley"

continuation_token
string

分页token(可选,用于获取下一页)

need_format
boolean
默认值:true

是否格式化数据(默认 true) true: 返回格式化的结构化数据(推荐) false: 返回原始的 YouTube API 结构(用于调试)

响应

请求成功

The response is of type object.