Skip to main content

Query Parameters

gl
string
default:"US"
Content region (ISO 3166-1 alpha-2) whose trending feed to fetch. Examples: US, GB, DE, JP.
hl
string
default:"en"
UI / interface language (BCP-47). Examples: en, de, fr, ja.
type
string
default:"now"
Which trending tab to return.
ValueDescription
nowTrending now (default)
musicTrending music
gamingTrending gaming
moviesTrending movies
continuation
string
Continuation token from a previous response to fetch the next page.

Response

gl
string
The region the feed was fetched for (nullable).
type
string
The trending tab that was returned (nullable).
items
array
Array of trending items.
continuation
string
Token to fetch the next page (nullable when no more pages).

Example Response

{
  "gl": "US",
  "type": "now",
  "items": [
    {
      "position": 1,
      "category": "Now",
      "video_id": "abc123XYZ_0",
      "title": "The video everyone is watching today",
      "url": "https://www.youtube.com/watch?v=abc123XYZ_0",
      "thumbnail": "https://i.ytimg.com/vi/abc123XYZ_0/hqdefault.jpg",
      "duration": "12:08",
      "view_count": 4200000,
      "view_count_text": "4.2M views",
      "published_time_text": "18 hours ago",
      "channel_name": "Trending Creator",
      "channel_is_verified": true,
      "is_live": false
    }
  ],
  "continuation": "4qmFsgKZARIYRkV0cmVuZGlu..."
}
EndpointReturns
GET /v1/youtube/trending/shortsThe trending Shorts shelf (items of Shorts).
GET /v1/youtube/homeThe guest home / recommendations feed (HomeResponse).
Each trending or home request costs 5 credits. Failed requests are not charged.