Skip to main content
GET
/
v1
/
youtube
/
get_trending_videos
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/youtube/get_trending_videos?language_code=en&country_code=US&section=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"
}
πŸͺ™3 creditsper request

Copy for AI

πŸ€– 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.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

language_code
string
default:en

Language code, default: en

country_code
string
default:US

Country code, default: US

section
string
default:Now

Category, default: Now. Options: Music, Gaming, Movies

Response

The response is of type object.