curl --request GET \
--url https://api.example.com/api/trending{
"results": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"duration": 123,
"uploader": "<string>",
"url": "<string>",
"view_count": 123
}
]
}curl --request GET \
--url https://api.example.com/api/trending{
"results": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"duration": 123,
"uploader": "<string>",
"url": "<string>",
"view_count": 123
}
]
}curl -X GET "http://localhost:8001/api/trending?max_results=15"
{
"results": [
{
"id": "xyz789abc12",
"title": "Trending Music Video 2026",
"thumbnail": "https://i.ytimg.com/vi/xyz789abc12/hqdefault.jpg",
"duration": 240,
"uploader": "Popular Artist",
"url": "https://www.youtube.com/watch?v=xyz789abc12",
"view_count": 5000000
},
{
"id": "def456ghi78",
"title": "Viral Comedy Sketch",
"thumbnail": "https://i.ytimg.com/vi/def456ghi78/hqdefault.jpg",
"duration": 180,
"uploader": "Comedy Channel",
"url": "https://www.youtube.com/watch?v=def456ghi78",
"view_count": 3200000
}
]
}
{
"detail": "Error obteniendo tendencias: [error message]"
}
https://www.youtube.com/feed/trending)max_results parameter value