curl --request GET \
--url 'https://api.keyapi.ai/v1/youtube/get_trending_videos?language_code=en&country_code=US§ion=Music' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"detail": "Could not get trending videos for US"
},
"requestId": "bcb49c86-61c9-4a4f-9fbf-8380b6fb9536"
}Get trending videos.
curl --request GET \
--url 'https://api.keyapi.ai/v1/youtube/get_trending_videos?language_code=en&country_code=US§ion=Music' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"detail": "Could not get trending videos for US"
},
"requestId": "bcb49c86-61c9-4a4f-9fbf-8380b6fb9536"
}π€ 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.
Language code, default: en
Country code, default: US
Category, default: Now. Options: Music, Gaming, Movies
The response is of type object.