Docs menu

TikTok trending feed

Beta GET /v1/tiktok/trending

GET /v1/tiktok/trending

The anonymous 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
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • 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).

curl
curl -G "https://api.socialscrape.io/v1/tiktok/trending" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "region=US"
Python
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,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
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);
}
n8n
{
  "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": {}
}

Example response#

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

{
  "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=123d880f&x-expires=1793498400&x-signature=GLFwnOtGBcucbtbb88wfTK5%2BF70%3D&t=4d5b0...",
          "verified": false
        },
        "title": null,
        "text": "9月24日,华盛顿DC街头,中国人以最热烈的方式“欢迎”习近平访美。欢迎央视新闻报道。",
        "published_at": "2026-09-24T15:00:21Z",
        "duration_seconds": 8.0,
        "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&x-signature=aOvlWWGBu7zvJfKpQGCAtY%2BZUvo%3D&t=4d5b0474&ps=13740610&shp=81f88b70&s...",
          "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...",
          "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,
          "music_is_original": true,
          "reposts": 0,
          "stitch_enabled": true,
          "video_definition": "480p"
        }
      },
      {
        "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=b35612fc&x-expires=1793498400&x-signature=zS02u5OVzKVsvcVZ%2FEiFSq7Vido%3D&t=4d5b04...",
          "verified": false
        },
        "title": null,
        "text": "KevinLangue FUNNIESTMOMENT#kevinlangue #tv #viral #fyp #foryoupage",
        "published_at": "2026-09-18T15:32:37Z",
        "duration_seconds": 353.0,
        "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=1793498400&x-signature=k9mLCJueR6uaMUX9uHjkOZSbmjQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&sh...",
          "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...",
          "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,
          "is_private": false,
          "music_is_original": true,
          "reposts": 0,
          "stitch_enabled": true,
          "video_definition": "720p"
        }
      }
    ],
    "cursor": "c6",
    "has_more": true,
    "parent": null
  },
  "cursor": "c6",
  "has_more": true
}

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.