Morning trend scan
Pull the current public trend list before an editorial or social planning meeting.
YouTube trending API
Fetch trending public YouTube videos for a country, with cursor pagination and per-video metrics.
Input: Optional country. Returns: a page of results with a cursor for the next, in YouTube's own field names. Price: 1 credit per call; failed reads are free.
GET /v1/youtube/trending
See it in action
The endpoint can run without a URL. Add optional region parameters only when you need a regional trend list.
Start from a valid shape, then replace the sample value with your public target.
Selected country=US
Open
Use a server-side key and send parameters as query values.
https://api.sourcevine.io/v1/youtube/trending curl -G 'https://api.sourcevine.io/v1/youtube/trending' \
-H 'Authorization: Bearer sv_live_...' \
--data-urlencode 'country=US' \
--data-urlencode 'limit=20' const params = new URLSearchParams({
"country": "US",
"limit": "20",
});
const res = await fetch('https://api.sourcevine.io/v1/youtube/trending?' + params, {
headers: { Authorization: 'Bearer sv_live_...' },
});
const body = await res.json();
console.log(body.data); import requests
r = requests.get(
"https://api.sourcevine.io/v1/youtube/trending",
params={"country": "US", "limit": "20"},
headers={"Authorization": "Bearer sv_live_..."},
)
body = r.json()
print(body["data"]) Every success includes availability, a fetch timestamp and billing context.
Hit Show sample response to see the response.
An illustrative response. This endpoint has no verified capture yet.
{
"success": true,
"available": true,
"data": {
"items": [
{
"videoId": "9wq3VHsL_bE",
"title": "Launch teardown",
"views": 943820,
"likes": 28440,
"comments": 3120,
"cached": false
}
],
"nextCursor": "CDIQAA",
"fetchedAt": "2026-08-28T09:41:44Z",
"cached": false,
"cacheAgeSeconds": 0
}
} Ship it anywhere
We build and maintain theseFirst-party surfaces, versioned with the API.
Works anywhere that can make an HTTP requestNo plugin to install, and none to wait for.
Response
Each response includes typed availability, a fetch timestamp, and only the public fields this API promises.
| Field | Type | Meaning |
|---|---|---|
| items | array | Trending public YouTube videos. |
| items[].videoId | string | YouTube video id. |
| items[].title | string | null | Public video title after scrubbing. |
| items[].views | integer | null | Public view count when reported. |
| nextCursor | string | null | Pass as cursor to request the next page. |
| fetchedAt | ISO datetime | When Sourcevine read the public page. |
| sourceTimestamp | ISO datetime | null | The platform timestamp when it is available. |
| cached | boolean | True when this answer repeats an identical request made moments earlier. |
| cacheAgeSeconds | integer | Seconds since the reading was taken. |
Request flow
Call /v1/youtube/trending directly for a current YouTube list. Optional region parameters stay explicit in the request.
Optional parameters are validated before any fetch.
The public data is read when you call. An identical request moments earlier is answered again, free.
Deleted, private and unsupported resources return explicit statuses, so clients can stop retrying facts about the world.
YouTube names stay intact, so your code reads videoId instead of reverse-engineering a generic schema.
fetchedAtcreditsChargedavailableEvery response carries fetchedAt and the platform timestamp, so you know how old a reading is before you act on it. YouTube Trending API fits recurring trending checks in dashboards, spreadsheets, workflows and agents.
Boundaries
Bios, email addresses, phone numbers, postal addresses and messenger handles are outside the response contract.
Private accounts, restricted content and unavailable resources return typed availability instead of guessed data.
Trend APIs return what the platform publishes now. They do not forecast future rank, reach or revenue.
Use cases
Pull the current public trend list before an editorial or social planning meeting.
Watch for topics that match a brand, competitor or campaign phrase.
Use trend rows as seeds, then inspect matching posts, creators or sounds.
Keep a dated record of what was trending when a report or decision was made.
Pricing
The response and X-Credits-Charged header tell you what
happened, including when it is zero.
Charged1 credit
Not charged0 credits
FAQ
Fetch trending public YouTube videos for a country, with cursor pagination and per-video metrics.
A call costs 1 credit, including an empty result. Retrieval failures are not charged.
The request returns available=false with a typed availability status. Not-found and private results are charged like any lookup; unsupported URLs and retrieval failures are not.
No. Bios, emails, phone numbers, postal addresses and private or restricted content are outside the public response contract.
No. Your integration authenticates with a Sourcevine API key. You do not need to supply YouTube credentials or a session.