YepAPI
TikTok API

Search Users

Search TikTok for user accounts matching a keyword query.

POST/v1/tiktok/search-user
$0.01/call

Usage

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

ParameterTypeRequiredDescriptionDefault
keywordsstringYesSearch query for users
cursorstringNoPagination cursor from previous response
countnumberNoNumber of results to return20

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

FieldTypeDescription
okbooleanWhether the request succeeded
data.has_morebooleanWhether more results are available
data.cursorstringCursor for fetching the next page
data.usersobject[]Array of user results
data.users[].unique_idstringUser's unique handle
data.users[].nicknamestringUser's display name
data.users[].avatarstringProfile picture URL
data.users[].signaturestringUser bio text
data.users[].follower_countnumberNumber of followers
data.users[].following_countnumberNumber of accounts followed
data.users[].video_countnumberTotal number of videos posted
data.users[].is_verifiedbooleanWhether the user is verified

Use the cursor value from the response to paginate through results.

On this page