- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
One page of about 10 (pinned videos first, then newest first), and no cursor: has_more is false because more cannot be fetched, not because the account has no more. Each video has its id, caption, hashtags, cover, a signed play URL, size and play count (TikTok rounds it to two significant digits; extra.views_rounded), and a date taken from the video id (extra.published_at_from_id). Likes, comments, shares and duration are not on that page and stay null; is_pinned is true for a pinned video that can be told from the order (it never over-reports). parent is the account. sort=popular is refused, and a numeric id cannot be looked up: pass handle. A private account answers private, and an account whose creator limits its audience answers age_restricted.
You send one of handle or id.
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/profile/videos" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'handle=khaby.lame'1import os2import requests34params = {5 "handle": "khaby.lame",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/tiktok/profile/videos",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/profile/videos");2url.search = new URLSearchParams({3 handle: "khaby.lame",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 profile 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/profile/videos",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "handle",19 "value": "khaby.lame"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 |
|---|---|---|---|
handle | string | one of | Username, with or without the leading @. Also accepted as username. |
id | string | one of | TikTok user id (numeric) or secUid. Also accepted as user_id, secUid, sec_uid. |
sort | string | Order of results. Changing it restarts the cursor chain. Also accepted as sort_by, sortBy, order. | |
include_pinned | boolean | Set false to drop the pinned videos that can be told from the page order. | |
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_a590f5665490570e7ca4a43f",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "tiktok",14 "id": "7697307919943060767",15 "url": "https://www.tiktok.com/@khaby.lame/video/7697307919943060767",16 "type": "video",17 "author": {18 "id": null,19 "handle": "khaby.lame",20 "name": "Khabane lame",21 "url": "https://www.tiktok.com/@khaby.lame",22 "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/08987e23b94057953fd4f1738694bf5f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",23 "verified": true24 },25 "title": null,26 "text": "I guess is time to retire #learnfromkhaby #comedy 🥊",27 "published_at": "2026-10-16T16:45:57Z",28 "duration_seconds": null,29 "language": null,30 "hashtags": [31 "learnfromkhaby",32 "comedy"33 ],34 "mentions": null,35 "stats": {36 "views": 4900000,37 "likes": null,38 "comments": null,39 "shares": null,40 "saves": null,41 "dislikes": null42 },43 "media": {44 "thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oYRtUztSmZA4BIFDN9PBaVS1EiAX8iBIbVJ26~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200&...",45 "video_url": "https://v16m.tiktokcdn-us.com/c90fce4f8f05c4e89e031b8ed08154e0/6ae715a5/video/tos/useast8/tos-useast8-pve-0068-tx2/okAtBQJDE2EBABOobPVaUIr8ztS8Vii6QRmMZ/?a=1...",46 "audio_url": null,47 "image_urls": null,48 "width": 720,49 "height": 128050 },51 "song": null,52 "location": null,53 "is_pinned": null,54 "is_sponsored": null,55 "extra": {56 "animated_cover_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oQPPAi2pJ1BROSztUatBIVDI5iZVjmBE28AB6~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200&...",57 "is_private": false,58 "published_at_from_id": true,59 "ratio": "720p",60 "views_rounded": true,61 "warnings": [62 "The actions in this video are performed or supervised by professionals. Do not attempt."63 ]64 }65 },66 {67 "object": "post",68 "platform": "tiktok",69 "id": "7694335322922044703",70 "url": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703",71 "type": "video",72 "author": {73 "id": null,74 "handle": "khaby.lame",75 "name": "Khabane lame",76 "url": "https://www.tiktok.com/@khaby.lame",77 "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/08987e23b94057953fd4f1738694bf5f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",78 "verified": true79 },80 "title": null,81 "text": "Was the ball out, or was it just my imagination? 🤨#learnfromkhaby #comedy",82 "published_at": "2026-10-08T16:30:45Z",83 "duration_seconds": null,84 "language": null,85 "hashtags": [86 "learnfromkhaby",87 "comedy"88 ],89 "mentions": null,90 "stats": {91 "views": 7100000,92 "likes": null,93 "comments": null,94 "shares": null,95 "saves": null,96 "dislikes": null97 },98 "media": {99 "thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUTRfAf9VxIBJxRXESASIJFEObmyVqHVD7E8Bc~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200...",100 "video_url": "https://v16m.tiktokcdn-us.com/0b7b258fdf623905ea05c507479b77e7/6ae715ba/video/tos/useast8/tos-useast8-ve-0068c003-tx2/oEmjGeelIIxqIXxkjgVALC6HQxj4AfTSTISIkK/...",101 "audio_url": null,102 "image_urls": null,103 "width": 720,104 "height": 1280105 },106 "song": null,107 "location": null,108 "is_pinned": null,109 "is_sponsored": null,110 "extra": {111 "animated_cover_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/osAHzWAIipBAxVMie5CIDqxK0ArEREAAEKVSfn~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200...",112 "is_private": false,113 "published_at_from_id": true,114 "ratio": "720p",115 "views_rounded": true116 }117 }118 ],119 "cursor": null,120 "has_more": false,121 "parent": {122 "object": "profile",123 "platform": "tiktok",124 "id": null,125 "handle": "khaby.lame",126 "name": "Khabane lame",127 "headline": null,128 "url": "https://www.tiktok.com/@khaby.lame",129 "kind": "creator",130 "bio": "Se vuoi ridere sei nel posto giusto😎 If u wanna laugh u r in the right place😎",131 "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/08987e23b94057953fd4f1738694bf5f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token...",132 "banner_url": null,133 "verified": true,134 "is_private": false,135 "external_url": null,136 "links": null,137 "location": null,138 "category": null,139 "created_at": null,140 "stats": {141 "followers": 163000000,142 "following": 82,143 "posts": null,144 "likes": null,145 "views": null146 },147 "extra": null148 }149 },150 "cursor": null,151 "has_more": false152}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.profile_videos(...) and the TypeScript client client.tiktok.profileVideos(). 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.