Trending Videos
Content Discovery
Trending Videos
GET
Trending Videos
Fetch currently trending videos from YouTube.
Query Parameters
Maximum number of trending videos to return (1-50)
Response
Array of trending video objects
Example Request
Example Response
Error Responses
500 Internal Server Error
Returned when unable to fetch trending videos.Implementation Notes
- Fetches from YouTube’s trending feed (
https://www.youtube.com/feed/trending) - Falls back to popular music search if trending feed is unavailable
- Results are capped at the
max_resultsparameter value - May vary by region (currently optimized for Spain with global fallback)
- Uses yt-dlp’s extract_flat mode for efficient metadata retrieval