- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 1 day
- Failed requests
- 0 credits
The feed is not stable, so pages can repeat.
Part of the TikTok Scraper API: 24 TikTok endpoints on one key.
Request
Send your key in the x-api-key header.
1curl -G "https://api.socialscrape.dev/v1/tiktok/trending" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'region=US'1import os2import requests34params = {5 "region": "US",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/tiktok/trending",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/tiktok/trending");2url.search = new URLSearchParams({3 region: "US",4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape TikTok trending feed",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/tiktok/trending",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "region",19 "value": "US"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}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 examples, not your data.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_316e82cd676e9d176a38a5b6",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "tiktok",14 "id": "7689116773324541214",15 "url": "https://www.tiktok.com/@yifeng.su.ii/video/7689116773324541214",16 "type": "video",17 "author": {18 "id": "7414635498722214954",19 "handle": "yifeng.su.ii",20 "name": "YiFeng Su II",21 "url": "https://www.tiktok.com/@yifeng.su.ii",22 "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...",23 "verified": false24 },25 "title": null,26 "text": "9月24日,华盛顿DC街头,中国人以最热烈的方式“欢迎”习近平访美。欢迎央视新闻报道。",27 "published_at": "2026-09-24T15:00:21Z",28 "duration_seconds": 8,29 "language": "zh-Hans",30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": 2400000,34 "likes": 48600,35 "comments": 2753,36 "shares": 3643,37 "saves": 4089,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUEA1qSEYCTAzAREymIACFEEsODsytAF3ffBwV~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400...",42 "video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-ve-0068c002-tx2/oQ17q41MAAFIpAiI7ivEB0bQBWCkAcfKt2OBiW/?a=1988&bti=ODszNWYuMDE6&&bt=1899...",43 "audio_url": null,44 "image_urls": null,45 "width": 848,46 "height": 46447 },48 "song": {49 "id": "7689116813015272223",50 "title": "原声",51 "artist": "YiFeng Su II",52 "url": "https://www.tiktok.com/music/%E5%8E%9F%E5%A3%B0-7689116813015272223"53 },54 "location": null,55 "is_pinned": null,56 "is_sponsored": false,57 "extra": {58 "ai_label_shown": true,59 "author_followers": 24700,60 "category_type": 120,61 "comments_disabled": false,62 "duet_enabled": true,63 "is_private": false64 }65 },66 {67 "object": "post",68 "platform": "tiktok",69 "id": "7686898662663802126",70 "url": "https://www.tiktok.com/@tdhfgxb.cm/video/7686898662663802126",71 "type": "video",72 "author": {73 "id": "7643873318437176334",74 "handle": "tdhfgxb.cm",75 "name": "tdhfgxb cm",76 "url": "https://www.tiktok.com/@tdhfgxb.cm",77 "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=...",78 "verified": false79 },80 "title": null,81 "text": "KevinLangue FUNNIESTMOMENT#kevinlangue #tv #viral #fyp #foryoupage",82 "published_at": "2026-09-18T15:32:37Z",83 "duration_seconds": 353,84 "language": "en",85 "hashtags": [86 "kevinlangue",87 "tv",88 "viral"89 ],90 "mentions": null,91 "stats": {92 "views": 10400000,93 "likes": 720100,94 "comments": 1912,95 "shares": 12800,96 "saves": 49237,97 "dislikes": null98 },99 "media": {100 "thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/ookMePblQNBCQ0XAVlQJisr8eMmDCrgWaIHe2b~tplv-tiktokx-origin.image?dr=9636&x-expires=179349840...",101 "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...",102 "audio_url": null,103 "image_urls": null,104 "width": 720,105 "height": 1280106 },107 "song": {108 "id": "7686898800807414541",109 "title": "original sound",110 "artist": "tdhfgxb cm",111 "url": "https://www.tiktok.com/music/original-sound-7686898800807414541"112 },113 "location": null,114 "is_pinned": null,115 "is_sponsored": false,116 "extra": {117 "ai_label_shown": true,118 "author_followers": 34200,119 "caption_languages": [120 "eng-US"121 ],122 "category_type": 101,123 "comments_disabled": false,124 "duet_enabled": true125 }126 }127 ],128 "cursor": "c6",129 "has_more": true,130 "parent": null131 },132 "cursor": "c6",133 "has_more": true134}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 Python client has client.tiktok.trending(...) and the TypeScript client client.tiktok.trending(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.