TikTok profile API
Public profile of a TikTok account: name, bio, bio link, verification and exact counts.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Pass handle or the numeric user id as id (a secUid cannot be looked up logged out).
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" \
-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",
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");
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",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/tiktok/profile",
"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. |
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_7115b8735eb56e7912694547",
"data": {
"object": "profile",
"platform": "tiktok",
"id": "127905465618821121",
"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:1080:1080.jpeg?dr=9640&refresh_tok...",
"banner_url": null,
"verified": true,
"is_private": false,
"external_url": null,
"links": null,
"location": null,
"category": null,
"created_at": null,
"stats": {
"followers": 162967647,
"following": 82,
"posts": 1359,
"likes": 2691641827,
"views": null
},
"extra": {
"comment_setting": 0,
"download_setting": 0,
"duet_setting": 0,
"following_visible": true,
"friends": 77,
"is_commerce_user": false
}
},
"cursor": null,
"has_more": null
}Fields
One Profile in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "profile" | ||
platform | Platform | yes | |
id | string or null | ||
handle | string or null | ||
name | string or null | ||
headline | string or null | a short tagline apart from the bio (LinkedIn's headline) | |
url | string or null | ||
kind | "person" or "creator" or "channel" or "page" or "company" or "artist" or "organization" or "shop" or "unknown" | ||
bio | string or null | ||
avatar_url | string or null | ||
banner_url | string or null | ||
verified | boolean or null | ||
is_private | boolean or null | ||
external_url | string or null |
Show the other 6 fields
| Field | Type | Always | Notes |
|---|---|---|---|
links | Link[] or null | ||
location | string or null | ||
category | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
stats | ProfileStats | ||
extra | object or null |
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.
Is there an SDK call for it?
The preview Python client has client.tiktok.profile(...) and the TypeScript client client.tiktok.profile(). 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.