TikTok Keyword Suggestions & Autocomplete Scraper avatar

TikTok Keyword Suggestions & Autocomplete Scraper

Pricing

from $1.12 / 1,000 item extracteds

Go to Apify Store
TikTok Keyword Suggestions & Autocomplete Scraper

TikTok Keyword Suggestions & Autocomplete Scraper

Get TikTok search autocomplete keyword suggestions for any topic, localized by country through real local IPs. A–Z, 0–9 and question expansion, keyword trees up to 2 levels, ranks and metadata. No made-up volume.

Pricing

from $1.12 / 1,000 item extracteds

Rating

0.0

(0)

Developer

Automation Lab

Automation Lab

Maintained by Community

Actor stats

0

Bookmarked

12

Total users

4

Monthly active users

3 days ago

Last modified

Features

Limited permissionsMulti-tenantServer interface

Share

Turn seed topics into ranked TikTok keyword suggestions (TikTok search autocomplete) for social SEO, short-form video ideas and repeatable content planning. The Actor asks TikTok's public search-preview endpoint from a real IP in the country you choose, so you get the phrases people in that country see, and exports each phrase with its rank, query context, search link and public metadata.

  • Per-country results: requests exit through a residential proxy in your region (US, GB, DE, BR …). TikTok localizes autocomplete by IP, not by a request parameter.
  • Long-tail at scale: A–Z, 0–9 and question expansion, plus keyword trees up to 2 levels deep (expansionDepth), up to 5,000 phrases per run.
  • Fast: queries run 10 at a time.
  • Honest data: TikTok's own rank and flags; no invented volume score.

It does not estimate or claim search volume. TikTok's preview response does not provide volume, so the output keeps source rank and public metadata separate from unsupported estimates.

What does TikTok Keyword Suggestions Scraper do?

Provide plain keywords, TikTok search URLs, or both. The Actor extracts the search URL query, optionally expands each seed, requests autocomplete suggestions, deduplicates phrases within each seed, and saves typed rows to the default dataset.

Use a base query for a quick snapshot, A–Z or A–Z/0–9 suffixes for long-tail research, question prefixes for educational content ideas, or full for all of them. Set expansionDepth to 1 or 2 to send every new phrase back to TikTok and build a keyword tree. maxItems places a hard limit on saved (and charged) results.

Who is it for?

  • Social SEO specialists building topic and caption research sheets.
  • Creators turning broad themes into specific video ideas.
  • Content strategists comparing autocomplete snapshots on a schedule.
  • Agencies preparing repeatable briefs across several client topics.
  • Data teams feeding public phrase suggestions into spreadsheets or pipelines.

Why use this Actor?

The dataset preserves both the original seed and the exact expansion query, so every phrase has traceable context. It also distinguishes TikTok's per-query position (queryRank) from the deduplicated order collected for a seed (seedRank).

The implementation uses lightweight HTTP requests rather than loading video pages or downloading media. Requests run 10 at a time through a residential proxy in your chosen country and are retried on a fresh proxy session after upstream failures. Residential proxy traffic is included in the price.

What data can I extract?

FieldMeaning
seedKeywordOriginal keyword or query extracted from a TikTok search URL
queryExact base or expansion query sent to TikTok
suggestionAutocomplete phrase returned by TikTok
normalizedSuggestionNormalized phrase used for deduplication
queryRankOne-based position in the source response for this query
seedRankOne-based unique result order for the seed
depth0 for the seed and its expansion queries; 1 or 2 when the query was a phrase found one or two levels earlier
searchUrlTikTok search URL for the suggestion
region, languageCountry and language requested
exitCountryCountry of the proxy exit TikTok saw (decides localization); null without Apify Proxy
suggestionLanguageLanguage TikTok assigned to the phrase, when returned
groupId, wordsSource, suggestionTypePublic source metadata when returned
cutQuerySource-provided tokenized phrase parts
recallReasonSource recall labels when returned
isPersonalized, isHistorySuggestionSource flags when returned
fetchedAtISO timestamp for the extraction

Nullable metadata stays null when TikTok omits it.

How to get started

  1. Open the Actor input page.
  2. Add one or more real topics under Seed keywords, or add TikTok search URLs.
  3. Keep Base suggestions only for a fast first run.
  4. Set the global maximum number of results.
  5. Choose the country (region) and language.
  6. Start the run and open the Suggestions dataset view.
  7. Export the dataset as JSON, CSV, Excel, XML, or RSS through Apify.

The prefilled skincare routine and meal prep topics provide a useful first run.

Input parameters

InputTypeDefaultNotes
keywordsstring arrayprefilled topicsUp to 100 unique, non-empty seeds
searchUrlsrequest listnoneTikTok /search?q=... URLs
expansionModeenumnonenone, alphabet, alphanumeric, questions, or full
expansionDepthinteger00–2; feeds new phrases back as queries (keyword tree)
maxSuggestionsPerQueryinteger10Between 1 and 20
maxItemsinteger20Global output limit from 1 to 5,000
deduplicateAcrossSeedsbooleanfalseSave a phrase only once across all seeds
regionstringUSTwo-letter country code; requests exit through a proxy in this country
languagestringen-USLanguage hint such as en, en-US, or es
proxyConfigurationobjectResidential Apify ProxyKeep the default for per-country results; without a proxy the country has no effect

At least one valid keyword or TikTok search URL is required. Invalid URLs without a q parameter do not become seeds.

Expansion modes

  • none: one TikTok request for each seed.
  • alphabet: base query plus seed a through seed z.
  • alphanumeric: base query plus A–Z and 0–9 suffixes.
  • questions: base query plus how, what, when, where, and why prefixes.
  • full: questions, A–Z and 0–9 together (42 queries per seed).

expansionDepth: 1 sends every new phrase from that first level back to TikTok as its own query; 2 repeats this once more. One seed in alphabet mode gives about 200 phrases at depth 0 and well over 1,000 at depth 1. Results are deduplicated for each seed (or across seeds with deduplicateAcrossSeeds). The Actor stops asking TikTok when maxItems is reached.

Example input

{
"keywords": ["skincare routine", "meal prep"],
"expansionMode": "none",
"maxSuggestionsPerQuery": 10,
"maxItems": 20,
"region": "US",
"language": "en-US"
}

A long-tail keyword tree for the UK market:

{
"keywords": ["skincare routine"],
"expansionMode": "questions",
"expansionDepth": 1,
"maxItems": 300,
"region": "GB",
"language": "en-GB"
}

A source-URL workflow can instead use:

{
"searchUrls": [
{ "url": "https://www.tiktok.com/search?q=budget%20travel" }
],
"maxItems": 10
}

Example output

This abbreviated row reflects the current output shape from a local source-backed run:

{
"seedKeyword": "meal prep",
"query": "meal prep",
"suggestion": "meal prep ideas",
"normalizedSuggestion": "meal prep ideas",
"queryRank": 1,
"seedRank": 1,
"depth": 0,
"source": "tiktok_search_preview",
"searchUrl": "https://www.tiktok.com/search?q=meal%20prep%20ideas",
"region": "US",
"language": "en-US",
"exitCountry": "US",
"suggestionLanguage": "en",
"groupId": "2042627834678721152",
"wordsSource": "sug",
"suggestionType": null,
"cutQuery": ["meal", "prep", "ideas"],
"recallReason": "tiktok_index_global_active_7d_query",
"isPersonalized": true,
"isHistorySuggestion": false,
"fetchedAt": "2026-11-27T12:00:00.000Z"
}

Exact phrases and metadata change as TikTok changes its public suggestions.

How much does it cost to extract TikTok keyword suggestions?

Pay-per-event pricing has a $0.005 start fee plus the active tier's price for each unique suggestion saved. At the BRONZE rate of $0.00186 per suggestion:

  • 10 suggestions cost about $0.0236 including the start fee.
  • 100 suggestions cost about $0.191 including the start fee.
  • 1,000 suggestions cost about $1.865 including the start fee.

Higher platform tiers receive lower per-suggestion rates. Failed, duplicate, empty, and unsaved candidate rows do not create item charges, a run with bad input costs nothing, and a valid run that finds no suggestions pays only the start fee. Apify compute and residential proxy traffic are included; check the live pricing tab for your tier before a large run.

From December 12, 2026 the price moves onto our standard plan curve: $0.00186 per suggestion on the Free and Starter (BRONZE) plans, $0.001674 on Scale (SILVER) and $0.001488 on Business (GOLD) and higher. The start fee stays $0.005.

Schedule recurring social SEO research

Create an Apify Schedule with stable seeds and expansionMode: "none" for compact snapshots. Export each run to your warehouse, compare by normalizedSuggestion, and identify added, removed, or rank-shifted phrases downstream.

The Actor reports the current response only. It does not maintain history, calculate changes, or send alerts itself. Apify integrations or your own workflow should perform those steps.

Export to spreadsheets and data pipelines

Use Apify's dataset integrations to send rows to Google Sheets, Make, Zapier, webhooks, or cloud storage. A practical flow is:

  1. Run broad seeds in base mode.
  2. Select promising returned phrases.
  3. Run selected phrases with alphabet expansion.
  4. Export seedKeyword, query, suggestion, and ranks.
  5. Add editorial priority and campaign ownership in your destination system.

CSV is convenient for editorial review; JSON preserves booleans, arrays, and null values.

Run through the Apify API with cURL

Replace YOUR_TOKEN with your Apify API token:

curl -X POST \
"https://api.apify.com/v2/acts/automation-lab~tiktok-keyword-suggestions/runs?token=YOUR_TOKEN&waitForFinish=120" \
-H "Content-Type: application/json" \
-d '{"keywords":["home workout"],"expansionMode":"none","maxItems":10}'

Fetch results from the run's defaultDatasetId, or use the synchronous dataset-items endpoint when appropriate.

JavaScript API example

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/tiktok-keyword-suggestions').call({
keywords: ['small business marketing'],
expansionMode: 'alphabet',
maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python API example

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("automation-lab/tiktok-keyword-suggestions").call(run_input={
"keywords": ["budget travel"],
"expansionMode": "questions",
"maxItems": 30,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)

Use with MCP and AI agents

Add the Actor to Claude Code through Apify MCP:

claude mcp add --transport http apify \
"https://mcp.apify.com?tools=automation-lab/tiktok-keyword-suggestions"

For Claude Desktop, Cursor, and VS Code, add this equivalent JSON configuration to the client's MCP settings:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=automation-lab/tiktok-keyword-suggestions"
}
}
}

Example prompts:

  • "Find current TikTok autocomplete phrases for meal prep and home workouts."
  • "Expand small business marketing with A–Z suffixes and return at most 50 rows."
  • "Use this TikTok search URL as a seed and group the results by exact query."
  • "Build a 2-level TikTok keyword tree for 'budget travel' in Brazil (region BR, language pt-BR)."

Limits and reliability

TikTok can change, throttle, localize, or remove its anonymous preview endpoint. The Actor uses bounded retries and fails visibly if the source response is blocked or malformed; it does not turn an upstream failure into a successful empty dataset.

TikTok localizes autocomplete by the visitor's IP. By default the Actor sends every request through a residential Apify Proxy exit in your region, and each row records that exitCountry. If you turn the proxy off, TikTok answers for the Actor server's location and region has no effect. Autocomplete is dynamic, and repeated runs can differ. Some valid topics naturally return few suggestions. A query that fails after retries is skipped and not charged; the final status message says how many rows were saved against maxItems and why the run stopped.

The Actor does not scrape videos, profiles, comments, hashtags, engagement metrics, trend history, or search volume.

Responsible use and legality

Only public anonymous suggestion data is requested. Use the output in accordance with TikTok's terms, applicable law, and your organization's policies. Avoid excessive expansion, respect intellectual property, and do not use suggestions to infer sensitive traits about individuals.

You are responsible for deciding whether your intended collection and downstream use are lawful. This Actor is a technical data-extraction tool, not legal advice.

Troubleshooting

Why did my run return no results?

Check that the seed is a public, meaningful topic. Try base mode with a common phrase. If TikTok is temporarily throttling or changing its response, rerun later rather than increasing expansion immediately.

Why does a TikTok search URL not work?

It must use tiktok.com/search and include a non-empty q query parameter. Copy the full URL rather than a generic TikTok home page.

Why are there fewer rows than maxItems?

maxItems is a ceiling, not a promise. TikTok may return fewer suggestions, and duplicates within the same seed are saved only once. For more phrases, use a wider expansionMode or set expansionDepth to 1 or 2. The run's status message shows "Got X of Y" and the reason.

FAQ

Does this include TikTok search volume? No. The public preview response does not provide search volume, and the Actor does not invent a volume proxy.

Is queryRank a volume score? No. It is the phrase's one-based position in the exact autocomplete response.

Can I combine keywords and search URLs? Yes. Valid seeds from both inputs are normalized and deduplicated.

Can I get results for a specific country? Yes. Set region (for example GB or BR) and keep the default residential proxy; requests exit from that country, and exitCountry on each row confirms it.

Is there a volume or popularity score? No. TikTok's response has no volume, and we do not invent one. Use queryRank (TikTok's own order) and how often a phrase appears across expansion queries as signals.

Are duplicates charged? No. An item event is charged only for a unique row accepted and saved for a seed.

Use TikTok Comments Scraper when your workflow starts from known videos and needs public comment records. Use TikTok Trends Scraper for supported trend-list workflows rather than autocomplete expansion.

These Actors solve separate jobs. This Actor remains focused on seed-to-autocomplete discovery and can provide phrases for downstream research.

Diagnostics and privacy

When a run fails, this Actor sends sanitized diagnostic input, the error, and the Actor, build and run IDs to our private GlitchTip service so we can repair it. Secret fields and URL query strings are removed, and reports are kept for 30 days.

Server API: get one keyword's suggestions over HTTP

TikTok Keyword Suggestions Scraper is also a Server Actor. Besides normal runs, it answers short HTTP requests directly, without starting a run for each keyword. Copy the server URL from the Actor's Server tab (do not build it from the Actor name) and authenticate with your Apify token. Use normal Actor runs for many keywords, keyword trees (expansionDepth) and up to 5,000 rows.

curl -sS "$SERVER_URL/suggestions?keyword=meal%20prep" -H "Authorization: Bearer $APIFY_TOKEN"
curl -sS "$SERVER_URL/suggestions?keyword=skincare%20routine&region=GB&language=en-GB&expansionMode=questions" -H "Authorization: Bearer $APIFY_TOKEN"
Method and pathInputOutput and charge
GET /Noneready: true, the routes and limits; no scraping or charge
GET /suggestionsQuery keyword: one seed keyword (up to 200 characters); optional region (two letters; default US; the request exits through a residential IP there), language (such as en, en-US or es; default en-US), expansionMode (none 1 query, questions 6, alphabet 27, alphanumeric 37, full 42; default none), maxSuggestionsPerQuery (1–20; default 10){ok,count,results} with one row per unique phrase, the same record as a normal dataset item at depth 0; one item event per row; no start fee

A keyword with no suggestions returns an error and is free. Each request has a 45-second deadline and a 1 MiB response cap, and one server works on at most six requests at once. Nothing is cached. Errors use { "ok": false, "error": { "code": "...", "message": "...", "retryable": false } }: 400 INVALID_INPUT; 402 spending limit; 404 NO_SUGGESTIONS or unknown route; 405 wrong method; 413 RESPONSE_TOO_LARGE; 502 UPSTREAM_ERROR or charging failure; 503 server busy or stopping; 504 TIMEOUT. Failed requests are free. Retry only when retryable is true. The Server tab shows the full OpenAPI description.