curl --request GET \
--url 'https://api.keyapi.ai/v1/youtube/get_search_suggestions?keyword=Rick+Astley&language=en®ion=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"
}Get YouTube search suggestions (autocomplete). Similar to the suggestions shown when typing in the YouTube search box.
Notes: Suggestions vary by language and region Typically returns 10-20 suggestions Response is very fast (< 1 second)
curl --request GET \
--url 'https://api.keyapi.ai/v1/youtube/get_search_suggestions?keyword=Rick+Astley&language=en®ion=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"
}π€ Why Code When AI Can Do It For You?
Stop writing code like itβs 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Search keyword
"Rick Astley"
Language code (optional, default: en) Options: en: English zh-cn: Simplified Chinese ja: Japanese ko: Korean
Region code (optional, default: US) US: United States SG: Singapore CN: China JP: Japan KR: South Korea
The response is of type object.