{"error":"Invalid country code. Use ISO 3166-1 alpha-2 format.","code":400}
รหัสตอบกลับ
รหัส
คำอธิบาย
200 Success
คำขอดำเนินการสำเร็จ
400 Bad Request
การตรวจสอบข้อมูลนำเข้าล้มเหลว
401 Unauthorized
API Key หายไปหรือไม่ถูกต้อง
403 Forbidden
Key ไม่ทำงานหรือไม่ได้รับอนุญาต
429 Rate Limit
คำขอมากเกินไป
500 Server Error
ข้อผิดพลาดที่ไม่คาดคิด
Trending List
youtube/trending0.0100 credits
Parameters
API Key
body · string
· required
Country
body · string
Category
body · string
Limit
body · string
Code Samples
Response
Status:—
Headers
Body
YouTube Trending API — Practical Guide
A hands-on guide to building “what’s hot now” experiences with YouTube Trending:
when to use it, the few parameters that matter, how to read the payload,
and how to turn results into cards, playlists, and editorial blocks.
Last updated: 07 มี.ค. 2026, 08:51
API Version: v1
Burst: 20 req/s
Latency: 80.9 msCost: 0.01 credits/req
youtube/trending gives a live snapshot of the most popular videos per country,
optionally focused on a specific YouTube category (e.g., 10 = Music).
Use it for landing pages, auto-curated playlists, “Top Today” widgets, and weekly editorial picks.