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
  • rank is the position on the page, starting at 1
  • Failed calls and empty results are not charged.

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

  1. 1Request

    POST /api/v1/social
    {
      "platform": "tiktok",
      "action": "search_suggest",
      "params": {
        "keyword": "coffee"
      }
    }
  2. 2JSON response

    {
      "results": [
        {
          "rank": number,
          "keyword": …
        },
        …
      ]
    }
  3. 3Fields

    rankkeyword
    number…
  4. 4CSV

    tiktok-search_suggest-sample.csv rank,keyword,platform

A request with 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.

FieldTypeMeaning
ranknumberRank, 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).
platformstringSource 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 keyword of every row as new words to check, in the order of rank.

  • 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 search to read the videos for it.

Limits and gotchas

  • keyword is 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.

CallsCost
10,000$5.56
100,000$55.56
1,000,000$555.56

Totals use the list price per call.

Code samples

#
bash
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.

POST

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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYestiktokPlatform identifier, fixed value.
actionbodystringYessearch_suggestCapability identifier, fixed value.
keywordbody.paramsstringYes-The search term, 1 to 100 characters.
limitbody.paramsinteger (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

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "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.

FieldMeaning
rankRank, starting from 1 (music_chart / shop_hot_products); in search_suggest, the order of the term among the page's related searches.
keywordA related search term (search_suggest).
platformSource 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.

Errors

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.

You can call the other TikTok endpoints with the same EveryInfra API key, for example search.

Google Analytics needs consent. Privacy