TikTok trending feed API
The anonymous For You feed: a handful of videos per call, different on every call.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 1 day
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
The feed is not stable, so pages can repeat.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/tiktok/trending" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'region=US'import os
import requests
params = {
"region": "US",
}
res = requests.get(
"https://api.socialscrape.io/v1/tiktok/trending",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/tiktok/trending");
url.search = new URLSearchParams({
region: "US",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape TikTok trending feed",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/tiktok/trending",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "region",
"value": "US"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. | |
region | string | Two-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_316e82cd676e9d176a38a5b6",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "tiktok",
"id": "7689116773324541214",
"url": "https://www.tiktok.com/@yifeng.su.ii/video/7689116773324541214",
"type": "video",
"author": {
"id": "7414635498722214954",
"handle": "yifeng.su.ii",
"name": "YiFeng Su II",
"url": "https://www.tiktok.com/@yifeng.su.ii",
"avatar_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/76769c8ef2f3d91f6c4cc97ecdb6f20f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",
"verified": false
},
"title": null,
"text": "9月24日,华盛顿DC街头,中国人以最热烈的方式“欢迎”习近平访美。欢迎央视新闻报道。",
"published_at": "2026-09-24T15:00:21Z",
"duration_seconds": 8,
"language": "zh-Hans",
"hashtags": null,
"mentions": null,
"stats": {
"views": 2400000,
"likes": 48600,
"comments": 2753,
"shares": 3643,
"saves": 4089,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUEA1qSEYCTAzAREymIACFEEsODsytAF3ffBwV~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400...",
"video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-ve-0068c002-tx2/oQ17q41MAAFIpAiI7ivEB0bQBWCkAcfKt2OBiW/?a=1988&bti=ODszNWYuMDE6&&bt=1899...",
"audio_url": null,
"image_urls": null,
"width": 848,
"height": 464
},
"song": {
"id": "7689116813015272223",
"title": "原声",
"artist": "YiFeng Su II",
"url": "https://www.tiktok.com/music/%E5%8E%9F%E5%A3%B0-7689116813015272223"
},
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"ai_label_shown": true,
"author_followers": 24700,
"category_type": 120,
"comments_disabled": false,
"duet_enabled": true,
"is_private": false
}
},
{
"object": "post",
"platform": "tiktok",
"id": "7686898662663802126",
"url": "https://www.tiktok.com/@tdhfgxb.cm/video/7686898662663802126",
"type": "video",
"author": {
"id": "7643873318437176334",
"handle": "tdhfgxb.cm",
"name": "tdhfgxb cm",
"url": "https://www.tiktok.com/@tdhfgxb.cm",
"avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ea809f9b8b8a5ab1176c8a62c26ca639~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=...",
"verified": false
},
"title": null,
"text": "KevinLangue FUNNIESTMOMENT#kevinlangue #tv #viral #fyp #foryoupage",
"published_at": "2026-09-18T15:32:37Z",
"duration_seconds": 353,
"language": "en",
"hashtags": [
"kevinlangue",
"tv",
"viral"
],
"mentions": null,
"stats": {
"views": 10400000,
"likes": 720100,
"comments": 1912,
"shares": 12800,
"saves": 49237,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/ookMePblQNBCQ0XAVlQJisr8eMmDCrgWaIHe2b~tplv-tiktokx-origin.image?dr=9636&x-expires=179349840...",
"video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-v-85c255-tx/oY3tIJA1Bw3E8yAPZiEnfQ0CtKbBVi8zqpmWoY/?a=1988&bti=ODszNWYuMDE6&&bt=599&ft=4...",
"audio_url": null,
"image_urls": null,
"width": 720,
"height": 1280
},
"song": {
"id": "7686898800807414541",
"title": "original sound",
"artist": "tdhfgxb cm",
"url": "https://www.tiktok.com/music/original-sound-7686898800807414541"
},
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"ai_label_shown": true,
"author_followers": 34200,
"caption_languages": [
"eng-US"
],
"category_type": 101,
"comments_disabled": false,
"duet_enabled": true
}
}
],
"cursor": "c6",
"has_more": true,
"parent": null
},
"cursor": "c6",
"has_more": true
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.tiktok.trending(...) and the TypeScript client client.tiktok.trending(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.