TikTok API
User Profile
Get profile information for a TikTok user by their unique handle.
POST
$0.01/call/v1/tiktok/userUsage
const res = await fetch('https://api.yepapi.com/v1/tiktok/user', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ unique_id: 'chefmaria' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/tiktok/user \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"unique_id": "chefmaria"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
unique_id | string | Yes | TikTok username (without @) | — |
Response
{
"ok": true,
"data": {
"user_id": "6842123456789012345",
"unique_id": "chefmaria",
"nickname": "Chef Maria",
"avatar": "https://p16-sign.tiktokcdn.com/...",
"signature": "Professional chef sharing quick recipes. New videos daily!",
"is_verified": true,
"region": "US",
"language": "en",
"follower_count": 1250000,
"following_count": 342,
"heart_count": 28500000,
"video_count": 487,
"digg_count": 12300
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.user_id | string | Unique numeric user identifier |
data.unique_id | string | User's unique handle |
data.nickname | string | User's display name |
data.avatar | string | Profile picture URL |
data.signature | string | User bio text |
data.is_verified | boolean | Whether the user is verified |
data.region | string | User's region/country code |
data.language | string | User's language |
data.follower_count | number | Number of followers |
data.following_count | number | Number of accounts followed |
data.heart_count | number | Total likes received across all videos |
data.video_count | number | Total number of videos posted |
data.digg_count | number | Number of videos the user has liked |