# TikTok Shop Keyword Ideas Scraper (`toolzerhub/tiktok-shop-keyword-ideas-scraper`) Actor

Get the keywords TikTok Shop autocompletes for any seed term. Every row pairs your keyword with a real shopper-suggested query, straight from TikTok Shop's own search bar. Export scraped data, run via API, and feed TikTok Shop demand signals into listing titles and ad targeting.

- **URL**: https://apify.com/toolzerhub/tiktok-shop-keyword-ideas-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** E-commerce, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.23 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Shop Keyword Ideas Scraper

Feed it a seed keyword, get back every suggestion TikTok Shop's own search offers for it.

These are the phrases TikTok autocompletes at shoppers as they type — real demand signals for a listing title, an ad group, or a niche you're not sure has legs yet.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `keyword` | string | — | **Required.** The seed term to get suggestions for. |
| `region` | enum | `US` | `US`, `GB`, `SG`, `MY`, `PH`, `TH`, `VN`, `ID`. |
| `lang` | string | `en-US` | Locale the suggestions come back in. Separate from `region` — one picks the market, the other picks the language of what you read. |
| `maxItems` | integer | `100` | How many suggestions to keep. `0` keeps all of them. |

```json
{
  "keyword": "led strip lights",
  "region": "US",
  "lang": "en-US",
  "maxItems": 100
}
```

### Output

| Field | Holds |
|---|---|
| `suggestion` | One keyword TikTok Shop suggests for your term |
| `keyword` | The seed term this suggestion came from |

```json
{
  "suggestion": "led strip lights for bedroom",
  "keyword": "led strip lights"
}
```

`keyword` rides along on every row on purpose — run five seed terms into the same dataset and you can still tell which suggestion belongs to which search.

### Questions

**Why does `maxItems` just trim instead of getting me more suggestions?**
There's no paging on this endpoint — one request returns TikTok's whole suggestion list for the keyword you gave it. `maxItems` decides how much of that list you keep, not how much gets fetched.

**What's the difference between `lang` and `region`?**
`region` picks the TikTok Shop market you're searching. `lang` picks the language the suggestion text comes back in. They're independent settings — changing one doesn't touch the other, and `lang` defaults to `en-US` regardless of which `region` you pick.

**What if TikTok has nothing to suggest for my keyword?**
Zero rows, and the run still finishes normally. A keyword with no suggestions isn't a failure, it's a real result — usually a sign the term is too narrow, misspelled, or not something shoppers search on TikTok.

**Do I get the same suggestions in every region?**
Not necessarily. `region` is sent with every request the same way it is on the trending and category feeds, so a market with a different shopper base can easily return a different list for the same seed keyword.

### Other TikTok Shop Actors

| Actor | Use when |
|---|---|
| [TikTok Shop Products Scraper](https://apify.com/toolzerhub/tiktok-shop-products-scraper) | You've picked a suggestion and want to search it |
| [TikTok Shop Trending Products Scraper](https://apify.com/toolzerhub/tiktok-shop-trending-products-scraper) | You want to see what's already selling, not just what's searched |
| [TikTok Shop Categories Scraper](https://apify.com/toolzerhub/tiktok-shop-categories-scraper) | You'd rather browse by category than by keyword |

### Support

Questions, bugs, or feature requests: **contact@toolzerhub.com**

Browse the rest: [apify.com/toolzerhub](https://apify.com/toolzerhub)

# Actor input Schema

## `keyword` (type: `string`):

Product keyword to search for on TikTok Shop.

## `lang` (type: `string`):

Locale the keyword suggestions come back in.

## `region` (type: `string`):

TikTok Shop region code.

## `maxItems` (type: `integer`):

Maximum number of products to save in search mode. Set 0 for no limit.

## Actor input object example

```json
{
  "keyword": "phone",
  "lang": "en-US",
  "region": "US",
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Every record collected during this run

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": "LEGO",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/tiktok-shop-keyword-ideas-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keyword": "LEGO",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/tiktok-shop-keyword-ideas-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "LEGO",
  "maxItems": 20
}' |
apify call toolzerhub/tiktok-shop-keyword-ideas-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolzerhub/tiktok-shop-keyword-ideas-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RcBN4OBdCZO6WQTfS/builds/N9L0OKIKPtjzEC3ec/openapi.json
