Social media5 min readBy Purrkey teamUpdated

How to expand TikTok search suggestions by keyword

Get the search terms TikTok suggests for a keyword with language and relative weight for query planning

On this page

You have five seed keywords for a short video calendar and need 30 TikTok search suggestions from them. Run one call per seed through anyapi.tiktok.search_suggestions and line the returned terms up by language and relative weight. The worksheet below is the deliverable: one row per suggestion, with the seed keyword that produced it and a found flag. No run has been executed for this guide, so the table is a design and the values are placeholders

Example input and worksheet design

Example input: query: "creatine gummies". The keyword is invented for this guide; replace it with your own seed. The tool takes one seed per call, so a five seed plan means five calls

FoundSuggestionLanguageRelative weightSeed keyword
true(returned text)en(score)creatine gummies
false(empty)(empty)(empty)creatine gummies

Values here are placeholders showing the shape. Keep one row per returned suggestion, and add a row with Found false when a seed returns no result. The Found column carries the top-level found value for that call. Keep the seed keyword on each row so you can sort and group by seed or language after the run. That also lets a no-result call stay visible in the same worksheet. The table feeds which keyword clusters to test in the next content sprint

Step 1: send one seed keyword per call

Agents call it through POST /v1/runs with toolId anyapi.tiktok.search_suggestions. The input contract lists query as a required string and describes it as the seed keyword to expand. Put the seed in that field and run one call for each seed you want to compare. The contract does not state a batch input, so one call carries one query. A companion guide covers Google search autocomplete keywords for a different query source

Step 2: read the output fields that drive the table

The top-level found boolean tells you whether the source returned a result. When found is true, data.suggestions is the array to read. The contract says the array is ordered most relevant first. Each item carries text, language and score

  • text: the suggested search term
  • language: BCP-47 language code TikTok assigns the suggestion, e.g. en
  • score: TikTok's relative weight for the suggestion

The score limit belongs next to this step: score is comparable within one response only, and the contract says it is not a search volume. You cannot compare scores from different seed calls as if they share a scale. Use the score to order suggestions inside one response, then use language to split the rows you want to test. Use language as a filter column rather than a replacement for the seed. The table keeps the seed keyword on each row so you can trace a term back to its call and group by language

When found is false, reason is present and has the value not_found. The contract defines that as the source stating the target does not exist or returning nothing for it. A found: false answer is a successful call, not an error. Write one row with Found false and leave Suggestion, Language and Relative weight empty

After the calls, group the worksheet by Seed keyword first, then by Language. Review the ordered suggestions inside each seed group and mark the rows that fit the short video calendar. Because the relative weight is response-local, a high score in one seed group does not mean higher demand than a high score in another group; use it to choose within a group

The agent prompt

The five seeds below are examples; replace them with your own. The prompt tells the agent to check the current inputs and price before it runs the tool

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to expand five
example seed keywords with anyapi.tiktok.search_suggestions. Check the
current inputs and price of anyapi.tiktok.search_suggestions before
running anything. Call the tool once per seed keyword. Return a table
with Found, Suggestion, Language, Relative weight and Seed keyword.
Keep one row per returned suggestion. If a call returns found false,
add one row for that seed with Found false and leave the other columns
empty. Do not rank suggestions across seed calls by score, because the
score is comparable only within one response.

creatine gummies
protein powder
desk setup
meal prep
morning stretch

Estimated tool cost

The catalog lists the unit as maximum per call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The price is up to $0.0012 per call. The totals below are ceilings. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
Expand one seed keywordcalls x max priceup to $0.0012 per call1$0.0012
Compare five seed keywordscalls x max priceup to $0.0012 per call5$0.0060

A five seed plan is five calls, one per seed. If you run one seed first, the ceiling is $0.0012 for that call. The table design does not add calls for rows; each returned suggestion is part of the response from its seed call

Next step

Open the TikTok search suggestions tool page to check the current listing and start with one seed

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with TikTok.
Explore TikTok tools and pricing

FAQ

How do I expand TikTok search suggestions by keyword?

Run a seed keyword through anyapi.tiktok.search_suggestions once per seed. The response returns each suggested search term with its language and relative weight, and you line the terms up by seed in a table.

What input does anyapi.tiktok.search_suggestions take?

The contract lists query as a required string and describes it as the seed keyword to expand. You supply your own seed keyword for each call.

What does anyapi.tiktok.search_suggestions return?

It returns a found boolean and data. When a result exists, data.suggestions holds suggested searches ordered most relevant first, with text, language and score for each suggestion.

What does the score field mean in TikTok search suggestions?

The contract calls score TikTok's relative weight for the suggestion. It is comparable within one response only and is not a search volume.

What happens when TikTok returns no suggestions for a seed?

The response has found: false and a reason of not_found. The contract says a found: false answer is a successful call, not an error.

How many calls does it take to compare five seed keywords?

One call per seed keyword. Comparing five seeds takes five calls, and the planned ceiling is $0.0060 at up to $0.0012 per call.

How much does it cost to expand one seed keyword?

One call is at most $0.0012. The catalog lists the unit as maximum per call, and successful runs settle at the actual AnyAPI charge.

Next step

Try this with TikTok

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See TikTok tools

Share this article