Get the videos trending on TikTok in a country
Fetch the videos TikTok's trending feed shows in one country now, each a full video. One page, which changes from call to call. Use this to see what is spreading.
https://api.scrapefield.com/v1/tiktok/trendinghttps://api.scrapefield.com/v1/tiktok/trendingIn your code
const params = new URLSearchParams({
"region": "US"
});
const res = await fetch(`https://api.scrapefield.com/v1/tiktok/trending?${params}`, {
headers: { Authorization: `Bearer ${process.env.SCRAPEFIELD_KEY}` },
});
const { data, meta } = await res.json();
console.log(data, meta.credits_charged);Parameters
| Parameter | What it does |
|---|---|
region | Two-letter country code, e.g. US, GB, DE.default US |
fresh | Skip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it. default false |
Response
Returns an array of tiktok_video. This is the demo’s answer, the one the playground above returns, in full rather than abbreviated — including the fields that come back null, because a field is null when the platform does not show it and you should know which ones those are before you build on them. A call with your key returns the account you ask for.
{
"data": [
{
"id": "7497290239006786522",
"share_url": "https://www.tiktok.com/@creator0/video/7497290239006786522",
"username": "creator0",
"video_description": "We rebuilt the whole thing and it is faster now. #baking #filmphoto #fyp",
"create_time": "2026-09-07T15:01:30.000Z",
"duration": 40,
"cover_image_url": "https://cdn.example/tt/7497290239006786522.jpeg",
"play_url": "https://cdn.example/tt/7497290239006786522.mp4",
"view_count": 624030,
"like_count": 2153,
"comment_count": 14,
"share_count": 43,
"favorites_count": 80,
"hashtag_names": [
"baking",
"filmphoto",
"fyp"
],
"region_code": "PT",
"music": {
"id": "7211942095868614472",
"title": "original sound - creator0",
"author": "creator0",
"original": true
},
"duet_enabled": true,
"stitch_enabled": true
},
{
"id": "7412874915365617780",
"share_url": "https://www.tiktok.com/@creator1/video/7412874915365617780",
"username": "creator1",
"video_description": "Everything I learned about this in one minute. #sourdough #baking #fyp",
"create_time": "2026-06-09T12:19:36.000Z",
"duration": 66,
"cover_image_url": "https://cdn.example/tt/7412874915365617780.jpeg",
"play_url": "https://cdn.example/tt/7412874915365617780.mp4",
"view_count": 3754526,
"like_count": 43287,
"comment_count": 185,
"share_count": 1148,
"favorites_count": 4412,
"hashtag_names": [
"sourdough",
"baking",
"fyp"
],
"region_code": "US",
"music": {
"id": "7258240846865632406",
"title": "original sound - creator1",
"author": "creator1",
"original": true
},
"duet_enabled": true,
"stitch_enabled": true
}
],
"meta": {
"request_id": "req_7f3ac1e94b2d40f8a1c6e5d2",
"credits_charged": 3,
"credits_remaining": 74218,
"cached": false,
"fetched_at": "2026-09-20T09:12:03Z",
"next_cursor": null
}
}Fields of tiktok_video
A TikTok video. Named after TikTok's Display and Research APIs.
| Field | What it is |
|---|---|
id | TikTok's numeric id — the number at the end of the URL. |
share_url | The video. |
username | Who posted it. |
video_description | The caption. |
create_time | When it was posted. null when the source does not say. |
duration | Seconds. null when the source does not give it. |
cover_image_url | The video's cover image. |
play_url | The video file on TikTok's CDN. TikTok signs it and it stops working after a while, so fetch it soon. We do not rehost videos. |
view_count | null when the source does not give it. |
like_count | null when the source does not give it. |
comment_count | null when the source does not give it. |
share_count | null when the source does not give it. |
favorites_count | Saves. null where the page does not show them. |
hashtag_names | Without the #. |
region_code | Where it was posted from, ISO 3166-1 alpha-2. |
music | The sound. |
music.id | TikTok's id for the sound. |
music.title | The sound's name, as TikTok shows it. |
music.author | Who the sound is credited to. |
music.original | An original sound rather than a track. |
duet_enabled | null where that is not known. |
stitch_enabled | null where that is not known. |
What it costs
3 credits per successful call, whether we fetch it or serve it from cache — you pay for the answer, not for how we produced it. Responses are cached for 30 minutes and a cached one tells you when the data was actually fetched. A call we fail costs 0 and is refunded automatically.
On the smallest pack that is $2.34 per 1,000 calls; on the largest, $1.32. The full table.
Questions
How much does the TikTok trending videos API cost?
3 credits a call: $2.34 per 1,000 calls on the smallest pack and $1.32 on the largest. A call that fails costs nothing, and the refund is automatic. A cached answer costs the same as a fresh one. Credits are bought in packs and never expire; there is no subscription.
Do I need a TikTok account, a login or cookies?
No. You need a key from us and nothing from TikTok. We never take a customer's login, cookies or session, at any price, and no account of yours is ever at risk.
Can I try it without signing up?
Yes. Add demo=true and leave the key out, or press Send request in the playground on this page. The demo answers with a real answer about TikTok's trending feed in the US, captured once a week, in exactly the shape a live call returns, whatever you ask, and charges nothing.
How fresh is the data?
An answer is kept for up to 30 minutes, and a cached one says when it was fetched, in meta.fetched_at. Add fresh=true to fetch it again now, at the same price; it needs any purchase, not the trial.
What does it return?
A list of tiktok_video objects. Its fields are named after TikTok's Display and Research APIs. A field is null when TikTok does not show it, never missing. Every field is described on this page.
Can an AI agent call it?
Yes: it is the MCP tool get_tiktok_trending on our MCP server, with the same parameters, answer and price. Without a key, the tool answers from the demo.