TikTok trending feed API
  1. Docs
  2. TikTok
  3. TikTok trending feed API

TikTok trending feed API

A For You feed: a handful of videos per call, different on every call (the feed is not stable, so pages can repeat).

GET /v1/tiktok/trending

GET /v1/tiktok/trending

A For You feed: a handful of videos per call, different on every call (the feed is not stable, so pages can repeat).

  • Cost: 1 credit
  • Cache: Results are kept up to 1 day; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

This endpoint takes no parameters of its own.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).
  • region: two-letter country code for results that vary by country. Changing it restarts the cursor chain.
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

1curl -G "https://api.socialscrape.dev/v1/tiktok/trending" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "region=US"

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

200 OKSample response
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=123d880f&x-expires=1793498400&x-signature=GLFwnOtGBcucbtbb88wfTK5%2BF70%3D&t=4d5b0...",23          "verified": false24        },25        "title": null,26        "text": "9月24日,华盛顿DC街头,中国人以最热烈的方式“欢迎”习近平访美。欢迎央视新闻报道。",27        "published_at": "2026-09-24T15:00:21Z",28        "duration_seconds": 8.0,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&x-signature=aOvlWWGBu7zvJfKpQGCAtY%2BZUvo%3D&t=4d5b0474&ps=13740610&shp=81f88b70&s...",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&ft=4KJMyMzm8Zmo0ISSla4jVRKkQpWrKsd.&mime_type=video_mp4&rc=OmU8aGVlZjQ7ZTs8NmYzPEB...",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": false,64          "music_is_original": true,65          "reposts": 0,66          "stitch_enabled": true,67          "video_definition": "480p"68        }69      },70      {71        "object": "post",72        "platform": "tiktok",73        "id": "7686898662663802126",74        "url": "https://www.tiktok.com/@tdhfgxb.cm/video/7686898662663802126",75        "type": "video",76        "author": {77          "id": "7643873318437176334",78          "handle": "tdhfgxb.cm",79          "name": "tdhfgxb cm",80          "url": "https://www.tiktok.com/@tdhfgxb.cm",81          "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=b35612fc&x-expires=1793498400&x-signature=zS02u5OVzKVsvcVZ%2FEiFSq7Vido%3D&t=4d5b04...",82          "verified": false83        },84        "title": null,85        "text": "KevinLangue FUNNIESTMOMENT#kevinlangue #tv #viral #fyp #foryoupage",86        "published_at": "2026-09-18T15:32:37Z",87        "duration_seconds": 353.0,88        "language": "en",89        "hashtags": [90          "kevinlangue",91          "tv",92          "viral"93        ],94        "mentions": null,95        "stats": {96          "views": 10400000,97          "likes": 720100,98          "comments": 1912,99          "shares": 12800,100          "saves": 49237,101          "dislikes": null102        },103        "media": {104          "thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/ookMePblQNBCQ0XAVlQJisr8eMmDCrgWaIHe2b~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400&x-signature=k9mLCJueR6uaMUX9uHjkOZSbmjQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&sh...",105          "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=4KJMyMzm8Zmo0ISSla4jVRKkQpWrKsd.&mime_type=video_mp4&rc=MzNoZTNoZmg6aWRkOjw1Z0Bpam41...",106          "audio_url": null,107          "image_urls": null,108          "width": 720,109          "height": 1280110        },111        "song": {112          "id": "7686898800807414541",113          "title": "original sound",114          "artist": "tdhfgxb cm",115          "url": "https://www.tiktok.com/music/original-sound-7686898800807414541"116        },117        "location": null,118        "is_pinned": null,119        "is_sponsored": false,120        "extra": {121          "ai_label_shown": true,122          "author_followers": 34200,123          "caption_languages": [124            "eng-US"125          ],126          "category_type": 101,127          "comments_disabled": false,128          "duet_enabled": true,129          "is_private": false,130          "music_is_original": true,131          "reposts": 0,132          "stitch_enabled": true,133          "video_definition": "720p"134        }135      }136    ],137    "cursor": "c6",138    "has_more": true,139    "parent": null140  },141  "cursor": "c6",142  "has_more": true143}

Response#

A list of Post objects in data.items, with data.cursor and data.has_more.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Also served at#

These paths answer the same request, so code written for other APIs keeps working: /v1/tiktok/get-trending-feed. See Switching from ScrapeCreators.