TikTok profile videos API
The newest videos of a public account, from TikTok's embed page for it.
GET /v1/tiktok/profile/videos
GET /v1/tiktok/profile/videos
The newest videos of a public account, from TikTok's embed page for it. 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.
- Cost: 1 credit
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
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 | no | Order of results. Changing it restarts the cursor chain. One of latest, popular. Default latest. Also accepted as sort_by, sortBy, order. |
include_pinned | boolean | no | Set false to drop the pinned videos that can be told from the page order. Default true. |
Send at least one of handle, id. If you send several, the first listed is used and the rest are ignored.
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:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.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/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)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 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}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
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=9a190ea0&x-expires=1793527200&x-signature=pU1CEsEIAzaj33MU4u87Qew1F5I%3D&t=4d5b047...",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&x-signature=1f%2F2xH5jvSiwRT9X%2Fd3Fr98M9gQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&...",45 "video_url": "https://v16m.tiktokcdn-us.com/c90fce4f8f05c4e89e031b8ed08154e0/6ae715a5/video/tos/useast8/tos-useast8-pve-0068-tx2/okAtBQJDE2EBABOobPVaUIr8ztS8Vii6QRmMZ/?a=1233&bti=ODszNWYuMDE6&&bt=1050&ft=aEKfuqT0mIoPD12wO_9I3wU-ZgAbMeF~O5&mime_type=video...",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&x-signature=KvXSUAZZIdwRw8YTwBGZE%2FJXFng%3D&t=4d5b0474&ps=13740610&shp=81f88b70&sh...",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=9a190ea0&x-expires=1793527200&x-signature=pU1CEsEIAzaj33MU4u87Qew1F5I%3D&t=4d5b047...",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&x-signature=KjVM2VKdtYrvbLYqOG2GxP2cIVU%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shc...",100 "video_url": "https://v16m.tiktokcdn-us.com/0b7b258fdf623905ea05c507479b77e7/6ae715ba/video/tos/useast8/tos-useast8-ve-0068c003-tx2/oEmjGeelIIxqIXxkjgVALC6HQxj4AfTSTISIkK/?a=1233&bti=ODszNWYuMDE6&&bt=1189&ft=aEKfuqT0mIoPD12wO_9I3wU-ZgAbMeF~O5&mime_type=v...",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&x-signature=bWMdNHEPUHdEpLWVpLMYWWxdksk%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shc...",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=9a190ea0&x-expires=1793527200&x-signature=pU1CEsEIAzaj33MU4u87Qew1F5I%3D&t=4d5b047...",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}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.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The 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.
Example error:
1{2 "ok": false,3 "error": {4 "code": "not_found",5 "message": "The platform says this profile, post or item does not exist.",6 "retryable": false7 },8 "credits_charged": 0,9 "request_id": "req_7d2efc6374815888e4938aca"10}Also served at#
These paths answer the same request, so code written for other APIs keeps working: /v3/tiktok/profile/videos. See Switching from ScrapeCreators.
Related endpoints#
- TikTok profile (
GET /v1/tiktok/profile) - TikTok collection videos (
GET /v1/tiktok/collection/videos) - TikTok video details (
GET /v1/tiktok/video) - TikTok video transcript (
GET /v1/tiktok/video/transcript) - TikTok video comments (
GET /v1/tiktok/video/comments) - TikTok comment replies (
GET /v1/tiktok/video/comment/replies) - TikTok user search (
GET /v1/tiktok/search/users) - TikTok search suggestions (
GET /v1/tiktok/search/suggestions)