跳转到主要内容
GET
/
v1
/
youtube
/
get_search_suggestions
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/youtube/get_search_suggestions?keyword=Rick+Astley&language=en&region=US' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "keyword": "Rick Astley",
    "suggestions": [
      "rick astley never gonna give you up",
      "rick astley",
      "rick astley together forever",
      "rick astley pink pony club",
      "rick astley foo fighters",
      "rick astley never gonna give you up lyrics",
      "rick astley interview",
      "rick astley cry for help",
      "rick astley songs",
      "rick astley never gonna give you up live",
      "rick astley take me to your heart",
      "rick astley she wants to dance with me",
      "rick astley it would take a strong strong man",
      "rick astley whenever you need somebody"
    ],
    "total_count": 14
  },
  "requestId": "aca97c0b-6216-4ba0-b502-df42fb0da1d7"
}
🪙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"

language
string
默认值:en

语言代码(可选,默认 en) 可选值 en: 英语 zh-cn: 简体中文 ja: 日语 ko: 韩语

region
string
默认值:US

地区代码(可选,默认 US) US: 美国 SG: 新加坡 CN: 中国 JP: 日本 KR: 韩国

响应

请求成功

The response is of type object.