TikTok API
Search Users
Search TikTok for user accounts matching a keyword query.
POST
$0.01/call/v1/tiktok/search-userUsage
const res = await fetch('https://api.yepapi.com/v1/tiktok/search-user', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ keywords: 'cooking' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/tiktok/search-user \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keywords": "cooking"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keywords | string | Yes | Search query for users | — |
cursor | string | No | Pagination cursor from previous response | — |
count | number | No | Number of results to return | 20 |
Response
{
"ok": true,
"data": {
"has_more": true,
"cursor": "20",
"users": [
{
"unique_id": "chefmaria",
"nickname": "Chef Maria",
"avatar": "https://p16-sign.tiktokcdn.com/...",
"signature": "Professional chef sharing quick recipes",
"follower_count": 1250000,
"following_count": 342,
"video_count": 487,
"is_verified": true
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.has_more | boolean | Whether more results are available |
data.cursor | string | Cursor for fetching the next page |
data.users | object[] | Array of user results |
data.users[].unique_id | string | User's unique handle |
data.users[].nickname | string | User's display name |
data.users[].avatar | string | Profile picture URL |
data.users[].signature | string | User bio text |
data.users[].follower_count | number | Number of followers |
data.users[].following_count | number | Number of accounts followed |
data.users[].video_count | number | Total number of videos posted |
data.users[].is_verified | boolean | Whether the user is verified |
Use the cursor value from the response to paginate through results.