TikTok Search suggestions API
Read the related searches TikTok shows for a search term: each row has rank, keyword and platform, for $0.56 per 1,000 calls.
- One call returns the whole list, usually 4 terms, with no paging and no
limit rankis the position on the page, starting at 1- Failed calls and empty results are not charged.
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
1Request
POST /api/v1/social { "platform": "tiktok", "action": "search_suggest", "params": { "keyword": "coffee" } }2JSON response
{ "results": [ { "rank": number, "keyword": … }, … ] }3Fields
rank keyword number … 4CSV
tiktok-search_suggest-sample.csv rank,keyword,platform
keyword goes in, and a list comes back; each row has rank, keyword and platform, listed as a field table and a CSV file.What data you get
Each row is one related search. This endpoint has no public real sample yet. The table lists the fields, types and meanings that each row returns, with no values.
| Field | Type | Meaning |
|---|---|---|
| rank | number | Rank, starting from 1 (music_chart / shop_hot_products); in search_suggest, the order of the term among the page's related searches. |
| keyword | — | A related search term (search_suggest). |
| platform | string | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Use cases
See the related searches for a word
Pass a seed word and read the related searches TikTok shows for it.
Widen a keyword list
Run each seed word and use the
keywordof every row as new words to check, in the order ofrank.Watch how the list changes
The same word queried later can return different terms and a different order, so keep the time of each call.
Then search the videos
Pass a related term to
searchto read the videos for it.
Limits and gotchas
keywordis required: the search term, 1 to 100 characters.- One call returns the whole list, usually 4 terms, in one response. There is no paging and no
limit. - Querying the same term later can return different terms and a different order.
- When no related searches could be read, the call returns 503, is not charged and can be retried.
Pricing
You pay $0.000556 per call. One call reads one result. Failed calls and empty results are not charged.
| Calls | Cost |
|---|---|
| 10,000 | $5.56 |
| 100,000 | $55.56 |
| 1,000,000 | $555.56 |
Totals use the list price per call.
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "tiktok",
"action": "search_suggest",
"params": {
"keyword": "coffee"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
API reference
See the parameters, response fields, errors and billing for search_suggest, and copy the page or open it as Markdown for an AI assistant.
AI prompt
#Please help me write a data collection script with the EveryInfra TikTok Search suggestions endpoint (tiktok/search_suggest).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to tiktok and action to search_suggest, and put the parameters inside params.
- Required parameters:
- keyword: The search term, 1 to 100 characters.
- Optional parameters:
- limit: The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows.
- Returns a list of records. Main fields of each record: rank (Rank, starting from 1 (music_chart / sh…), keyword (A related search term (search_suggest)).
- Example request body:
{
"platform": "tiktok",
"action": "search_suggest",
"params": {
"keyword": "coffee"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | tiktok | Platform identifier, fixed value. |
action | body | string | Yes | search_suggest | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | The search term, 1 to 100 characters. |
limit | body.params | integer (1–) | No | - | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |
Response example
#{ "id": "req_…", "platform": "tiktok", "action": "search_suggest", "results": [ { "rank": …, "keyword": …, "platform": … } ], "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| Field | Meaning |
|---|---|
rank | Rank, starting from 1 (music_chart / shop_hot_products); in search_suggest, the order of the term among the page's related searches. |
keyword | A related search term (search_suggest). |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
FAQ
What does the TikTok related searches API return?
A list with one row per related search: rank (the position on the page, from 1), keyword and platform.
Why do the terms differ when I query the same word later?
The terms and their order change over time, so a later call can return a different list.
What happens if no related searches could be read?
The call returns 503, is not charged and can be retried.
How much does one lookup cost?
It costs $0.000556 per call, or $0.56 per 1,000 calls. One call reads one result. Failed calls and empty results are not charged.
Related TikTok endpoints
You can call the other TikTok endpoints with the same EveryInfra API key, for example search.
- Search
search$0.56 per 1,000 callsSearch TikTok by keyword across the video, account or top tab. - Details
profile$0.56 per 1,000 callsLook up a TikTok account by handle. - Videos by user
user_videos$0.56 per 1,000 callsList a TikTok creator's videos with caption, publish time and like, comment, share and view counts. - Video details
video$0.56 per 1,000 callsFetch one TikTok video's caption, author, publish time and like, comment, share and view counts from its URL. - Comments
comments$0.56 per 1,000 callsRead the comments on a TikTok video. - Hashtag
hashtag$0.56 per 1,000 callsBrowse TikTok videos posted under a hashtag. - Followers
followers$0.56 per 1,000 callsCheck a TikTok account's follower, following, post and like totals by handle, with a precision flag for rounded numbers. - Transcript
transcript$0.56 per 1,000 callsExtract the transcript of a TikTok video from its URL. - Shop product search
shop_search$0.56 per 1,000 callsFind TikTok Shop products by keyword. - Shop creator details
shop_creator$0.56 per 1,000 callsSize up a TikTok Shop creator by handle. - Hashtag search
hashtag_search$0.81 per 1,000 callsSearch TikTok hashtags bykeyword. - Music search
music_search$0.81 per 1,000 callsSearch TikTok's sound library bykeyword, such as a song or artist. - Music chart
music_chart$0.81 per 1,000 callsRead a TikTok music chart:top50(default) orviral50. - Account search
user_search$0.56 per 1,000 callsSearch TikTok accounts bykeyword, in the order TikTok search ranks them. - Videos using a sound
sound_videos$0.56 per 1,000 callsList the TikTok videos that use one sound, from itsmusic_idor sound page link. - Comment replies
comment_replies$0.56 per 1,000 callsRead the replies under one comment on a TikTok video, from the videourland the comment'sidreturned bycomments. - Shop best sellers
shop_hot_products$0.81 per 1,000 callsRead the TikTok Shop best-seller list for one market: ID, JP, MX, MY (default), PH, SG, TH or VN. - Shop products by category
shop_category_products$0.81 per 1,000 callsList TikTok Shop products in one category bycategory_id, such as 601450 for beauty and personal care, in a chosen market. - Following
following$0.64 per 1,000 callsList the accounts a TikTok user follows, by handle. - Video download links
video_download$0.64 per 1,000 callsGet the download links for one TikTok video from itsurl, without the watermark. - Live room
live_room$0.81 per 1,000 callsCheck whether a TikTok account is live right now, by handle. - Shop store products
shop_products$0.81 per 1,000 callsList the products of one TikTok Shop store from itsshop_idor store link, in a chosen market. - Shop product reviews
shop_product_reviews$0.76 per 1,000 callsRead buyer reviews of one TikTok Shop product from itsproduct_idor product link. - Trending hashtags
trending_hashtags$0.81 per 1,000 callsRead the trending hashtags on TikTok for one market over the last 7, 30 or 90 days. - Username to user ID
resolve_user$0.56 per 1,000 callsTurn a TikTokusername(with or without @), a profile link or asec_uidinto the account's numericuser_id, itssec_uid, currentusernameand profileurl. - Link recognition
resolve_links$0.56 per 1,000 callsRead the video ID from one TikTok link inurl, including vm.tiktok.com and vt.tiktok.com share links. - Hashtag detail
hashtag_detail$0.56 per 1,000 callsRead one TikTok hashtag fromhashtag(its name, with or without #, a tag link or the numeric ID):hashtag_id,hashtag_name,url, exactvideo_countandview_count, andis_commercial. - Music detail
music_detail$0.56 per 1,000 callsRead one TikTok sound bymusic_idor music link:title,author_name,album,duration_seconds, how many videos use it (use_count),is_original,is_copyrighted, a cover link and a preview audio link that expires. - Photo post images
photos$0.56 per 1,000 callsGet every image of a TikTok photo post (photo mode or carousel) from itsurl, in the post's order:imageswith each image'surl,widthandheightin pixels, plusimage_urls, the same links as a list. - Profile contact
profile_contact$0.56 per 1,000 callsRead the bio text an account wrote on its own TikTok profile, and the link in it, fromusername(a handle with or without @, a profile link or asec_uid):user_id,sec_uid,username,display_name,url,bioandexternal_url, as written, not reworded or guessed.