TikTok profile videos API
The newest videos of a public account, from TikTok's embed page for it (no login).
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
One page of about 10 (pinned videos first, then newest first), and no cursor: has_more is false because more cannot be fetched logged out, 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.
You send one of handle or id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/tiktok/profile/videos" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'handle=khaby.lame'import os
import requests
params = {
"handle": "khaby.lame",
}
res = requests.get(
"https://api.socialscrape.io/v1/tiktok/profile/videos",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/tiktok/profile/videos");
url.search = new URLSearchParams({
handle: "khaby.lame",
}).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);
}{
"nodes": [
{
"name": "SocialScrape TikTok profile videos",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/tiktok/profile/videos",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "khaby.lame"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}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 public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_a590f5665490570e7ca4a43f",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "tiktok",
"id": "7697307919943060767",
"url": "https://www.tiktok.com/@khaby.lame/video/7697307919943060767",
"type": "video",
"author": {
"id": null,
"handle": "khaby.lame",
"name": "Khabane lame",
"url": "https://www.tiktok.com/@khaby.lame",
"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...",
"verified": true
},
"title": null,
"text": "I guess is time to retire #learnfromkhaby #comedy 🥊",
"published_at": "2026-10-16T16:45:57Z",
"duration_seconds": null,
"language": null,
"hashtags": [
"learnfromkhaby",
"comedy"
],
"mentions": null,
"stats": {
"views": 4900000,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oYRtUztSmZA4BIFDN9PBaVS1EiAX8iBIbVJ26~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200&...",
"video_url": "https://v16m.tiktokcdn-us.com/c90fce4f8f05c4e89e031b8ed08154e0/6ae715a5/video/tos/useast8/tos-useast8-pve-0068-tx2/okAtBQJDE2EBABOobPVaUIr8ztS8Vii6QRmMZ/?a=1...",
"audio_url": null,
"image_urls": null,
"width": 720,
"height": 1280
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"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&...",
"is_private": false,
"published_at_from_id": true,
"ratio": "720p",
"views_rounded": true,
"warnings": [
"The actions in this video are performed or supervised by professionals. Do not attempt."
]
}
},
{
"object": "post",
"platform": "tiktok",
"id": "7694335322922044703",
"url": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703",
"type": "video",
"author": {
"id": null,
"handle": "khaby.lame",
"name": "Khabane lame",
"url": "https://www.tiktok.com/@khaby.lame",
"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...",
"verified": true
},
"title": null,
"text": "Was the ball out, or was it just my imagination? 🤨#learnfromkhaby #comedy",
"published_at": "2026-10-08T16:30:45Z",
"duration_seconds": null,
"language": null,
"hashtags": [
"learnfromkhaby",
"comedy"
],
"mentions": null,
"stats": {
"views": 7100000,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUTRfAf9VxIBJxRXESASIJFEObmyVqHVD7E8Bc~tplv-tiktokx-origin.image?dr=9636&x-expires=1793527200...",
"video_url": "https://v16m.tiktokcdn-us.com/0b7b258fdf623905ea05c507479b77e7/6ae715ba/video/tos/useast8/tos-useast8-ve-0068c003-tx2/oEmjGeelIIxqIXxkjgVALC6HQxj4AfTSTISIkK/...",
"audio_url": null,
"image_urls": null,
"width": 720,
"height": 1280
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"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...",
"is_private": false,
"published_at_from_id": true,
"ratio": "720p",
"views_rounded": true
}
}
],
"cursor": null,
"has_more": false,
"parent": {
"object": "profile",
"platform": "tiktok",
"id": null,
"handle": "khaby.lame",
"name": "Khabane lame",
"headline": null,
"url": "https://www.tiktok.com/@khaby.lame",
"kind": "creator",
"bio": "Se vuoi ridere sei nel posto giusto😎 If u wanna laugh u r in the right place😎",
"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...",
"banner_url": null,
"verified": true,
"is_private": false,
"external_url": null,
"links": null,
"location": null,
"category": null,
"created_at": null,
"stats": {
"followers": 163000000,
"following": 82,
"posts": null,
"likes": null,
"views": null
},
"extra": null
}
},
"cursor": null,
"has_more": false
}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 preview Python client has client.tiktok.profile_videos(...) and the TypeScript client client.tiktok.profileVideos(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.