TikTok data API

TikTok Search API

Send a keyword and get what TikTok suggests as you type it: the related searches, and the creator accounts that match, each with username, display name, user id, avatar and verified flag. Use it to turn a name into a username before you call the Profile or User Videos API.

Request

GET /v1/tiktok/search · 1 credit per successful call

cURL
curl "https://api.igramapi.com/v1/tiktok/search?q=street+food" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK · application/json
{
  "query": "street food",
  "suggestions": [
    "street food tour",
    "street food india",
    "street food vlog"
  ],
  "users": [
    {
      "username": "example_creator",
      "nickname": "Example Creator",
      "user_id": "6812345678901234567",
      "sec_uid": "MS4wLjABAAAAexample",
      "avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
      "is_verified": true
    }
  ],
  "cached": false
}

All values above are made-up examples. Media links are temporary TikTok CDN addresses.

Parameters

NameInDescription
qrequired query The search keyword, up to 100 characters. query is accepted as an alias.
limit query Number of suggestions, 1 to 20. Default 10. It does not cut the list of accounts.

Response fields

FieldTypeDescription
querystringThe keyword that was searched.
suggestions[]string[]Related searches TikTok suggests for the keyword, at most limit.
users[].usernamestringThe account's username. Pass it to the profile endpoints.
users[].nicknamestring | nullDisplay name.
users[].user_id / sec_uidstring | nullTikTok's numeric user id and secure user id.
users[].avatarstring | nullProfile picture link (temporary CDN link).
users[].is_verifiedbooleanTrue for a verified account.
cachedbooleanTrue when served from the 30-minute cache.

Suggestions and accounts in one call

suggestions are the related searches TikTok offers for the keyword. users are the creator accounts it would show in the same box.

From a name to a username

Search for a creator's display name or brand, then send the username of the right account to the Profile, User Videos or Stories API.

No login, no signature

Nothing to connect on your side. A search is 1 credit on every plan, including Free, and the same keyword is served from a 30-minute cache.

An autocomplete preview, not full results

You get the suggestions TikTok shows while a person types. It does not return videos, sounds or hashtags, and a keyword can come back with no accounts.

What a search returns

TikTok's search box shows related searches and, for some keywords, creator accounts. This endpoint returns exactly that. A keyword that looks like a name or username usually brings accounts; a general word like recipes usually brings suggestions only.

An empty users list is a normal answer and a finished lookup, so it is charged 1 credit. A missing or blank q returns HTTP 400 with the error code missing_parameter and is not charged.

Using the result

Show suggestions as a type-ahead list, or pick an account and send its username to the TikTok Profile API for followers and bio, or to the TikTok User Videos API for the videos. The avatar link is a temporary TikTok CDN link, so show it right away instead of storing it.

Frequently asked questions

Does it search videos or hashtags?

No. It returns search suggestions and matching creator accounts, the same things TikTok shows while a person types in its search box. Video results of a search are not available.

Why is users empty for my keyword?

TikTok only shows accounts for keywords that look like a name or username. A general word usually returns suggestions only. The lookup still completed, so it costs 1 credit.

Is the search result the same every time?

Mostly, but TikTok changes what it suggests. The response for a keyword is kept for up to 30 minutes, and cached tells you when you got a kept copy.

How do I get a creator's videos after searching?

Take the username of the account and call the TikTok User Videos API. Use the Profile API first if you want the follower count and bio.

Is it on the Free plan?

Yes. The Search API works on every plan, including Free, and costs 1 credit per search.

Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.

Try the TikTok Search API free

Create a key and make your first request in minutes. 100 free credits every month.