- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 1 day
- Failed requests
- 0 credits
period and sort are accepted for compatibility and not applied; category picks an Explore category.
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/videos/popular" \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/videos/popular",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/videos/popular");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 Popular TikTok videos",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/videos/popular",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 |
|---|---|---|---|
period | string | Accepted for compatibility; the Explore feed has no time window. | |
sort | string | Accepted for compatibility; not applied. Also accepted as sort_by, sortBy, order. | |
category | string | TikTok's numeric Explore category id (default 1). | |
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_f64ceef95a71479395ed042a",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "tiktok",14 "id": "7694032058280119583",15 "url": "https://www.tiktok.com/@bbykitty38/video/7694032058280119583",16 "type": "video",17 "author": {18 "id": "7657915122313528334",19 "handle": "bbykitty38",20 "name": "Bbykitty",21 "url": "https://www.tiktok.com/@bbykitty38",22 "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/262858978cba062bcf89c7975ff729ac~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",23 "verified": false24 },25 "title": null,26 "text": "#CapCut Toc Toc 😂 |⬆️ Tap on the template anchor to recreate yours #CapCut #capcutpioneer #pioneertemplate",27 "published_at": "2026-10-07T20:54:17Z",28 "duration_seconds": 11,29 "language": "en",30 "hashtags": [31 "capcut",32 "capcutpioneer",33 "pioneertemplate"34 ],35 "mentions": null,36 "stats": {37 "views": 155900,38 "likes": 3758,39 "comments": 38,40 "shares": 1526,41 "saves": 345,42 "dislikes": null43 },44 "media": {45 "thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/osE3XcQAVeAFSErYuuRm2xfgBFD6EB8QjHvqDN~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400...",46 "video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-ve-0068c001-tx2/oYEADEA7XwBxazBVKCQgBIaJsgGxSRbiYzisP/?a=1988&bti=ODszNWYuMDE6&&bt=2069&...",47 "audio_url": null,48 "image_urls": null,49 "width": 720,50 "height": 126051 },52 "song": {53 "id": "7690651570417060641",54 "title": "son original",55 "artist": "CASTING GASTRO",56 "url": "https://www.tiktok.com/music/son-original-7690651570417060641"57 },58 "location": null,59 "is_pinned": null,60 "is_sponsored": false,61 "extra": {62 "ai_label_shown": true,63 "author_followers": 161200,64 "category_type": 106,65 "comments_disabled": false,66 "duet_enabled": true,67 "is_private": false68 }69 },70 {71 "object": "post",72 "platform": "tiktok",73 "id": "7697318897640377631",74 "url": "https://www.tiktok.com/@naohh_ark765/video/7697318897640377631",75 "type": "video",76 "author": {77 "id": "7697305375733744653",78 "handle": "naohh_ark765",79 "name": "naohh_ark765",80 "url": "https://www.tiktok.com/@naohh_ark765",81 "avatar_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/c9da8fd5fb244ed6b39b85a95976a185~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",82 "verified": false83 },84 "title": null,85 "text": "Noah's Ark - did the legendary vessel really survive the Great Flood, and where is it today??? Noah's Ark, Great Flood, Ancient Mysteries, Mount Ararat, Bibl...",86 "published_at": "2026-10-16T17:28:54Z",87 "duration_seconds": 10,88 "language": "en",89 "hashtags": [90 "noahsark",91 "greatflood",92 "ancienthistory"93 ],94 "mentions": null,95 "stats": {96 "views": 24000000,97 "likes": 1800000,98 "comments": 42200,99 "shares": 91300,100 "saves": 126147,101 "dislikes": null102 },103 "media": {104 "thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oQBSISw21Eq1CYi9XAairHeiIiBBtWAuCAPat9~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400...",105 "video_url": "https://video-ttp2-bp.us.tiktok.com/e165591be397843d1478b88c828c51f5/6ae6a142/kmoat/mps/logo/v2/r/p/v15044gf0000db95s27og65tmvcas1o0/b12fdccdc8734fc1b9a7e444...",106 "audio_url": null,107 "image_urls": null,108 "width": 576,109 "height": 1024110 },111 "song": {112 "id": "7265056503707044614",113 "title": "الصوت الأصلي",114 "artist": "حسين مالك |🇮🇶",115 "url": "https://www.tiktok.com/music/%D8%A7%D9%84%D8%B5%D9%88%D8%AA-%D8%A7%D9%84%D8%A3%D8%B5%D9%84%D9%8A-7265056503707044614"116 },117 "location": null,118 "is_pinned": null,119 "is_sponsored": false,120 "extra": {121 "ai_label_shown": true,122 "author_followers": 118800,123 "category_type": 120,124 "comments_disabled": false,125 "duet_enabled": true,126 "is_private": false127 }128 }129 ],130 "cursor": "c16",131 "has_more": true,132 "parent": null133 },134 "cursor": "c16",135 "has_more": true136}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?
invalid_params (do not retry), 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.videos_popular(...) and the TypeScript client client.tiktok.videosPopular(). 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.