# TikTok Search Scraper (`neuro-scraper/tiktok-search-scraper`) Actor

TikTok Search Scraper SD - TikTok Search Scraper is a social media tool that extracts TikTok videos for any keyword: views, likes, comments, shares, saves, author, music, hashtags, video links and keyword insights. No login.

- **URL**: https://apify.com/neuro-scraper/tiktok-search-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

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

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### TikTok Search Scraper

**TikTok Search Scraper** finds TikTok videos for any keyword and returns each video with its views, likes, comments, shares, saves and reposts, the author with follower counts, the sound, hashtags, mentions, cover and video links, subtitles - plus keyword insights such as average views, top hashtags and top creators for the keyword.

> **Also from us:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export reels, views, likes and captions from any public Facebook page.

No account, no login, no cookies and no API key are needed. The TikTok Search Scraper returns clean rows you can download as JSON, CSV, Excel or HTML, or read from your own code.

#### What does TikTok Search Scraper do?

- Searches TikTok for every keyword you give, in parallel, and keeps the videos in TikTok's own order (or sorted by likes, views or date).
- Opens each video for the full record: caption language, country, reposts, ad flag and subtitle links.
- Adds author statistics (followers, following, total likes, video count, verified) to every row.
- Adds keyword insights: result count, average, median and maximum views, average likes and engagement, verified / ad / slideshow ratios, top hashtags, top creators and posting hours (UTC).
- Filters by date, minimum views, likes, comments and duration, strict keyword match and one video per author.

#### Why use TikTok Search Scraper?

- Influencer discovery - find creators who post about your niche and see their follower counts.
- Trend and content research - see which videos win for a keyword and which hashtags they use.
- Competitor and brand monitoring - schedule daily keyword runs and track new videos.
- Ad and creative inspiration - collect the best performing videos and their sounds.

#### How to use TikTok Search Scraper

1. Open the TikTok Search Scraper and click Try for free.
2. Type one or more keywords into Keywords.
3. Set Max videos per keyword and, if you want, a sort order and filters.
4. Click Start - a 20-video run takes well under a minute.
5. Download the dataset (JSON, CSV, Excel) or connect it to Google Sheets, Make, Zapier or a webhook.

### Input options - how every feature works

Every option is optional unless it says otherwise. The TikTok Search Scraper applies filters before rows are saved, so you never pay for rows that were filtered out.

#### `keywords`

The `keywords` list holds the search words, one per line, for example "funny cats", "paris travel" or "skincare routine". Each keyword is searched on its own and gets its own limit, rank numbers and insights. Use the words people type on TikTok; very rare words can return no videos, which the run log reports as a warning.

#### `maxItemsPerKeyword`

The `maxItemsPerKeyword` option sets how many videos are saved for EACH keyword (default 20). The TikTok Search Scraper follows TikTok's result pages (16 videos each) until the limit or the end of the results; TikTok shows about 96 videos per keyword to logged-out visitors, so higher limits stop at that end.

#### `sortType`

The `sortType` option orders the saved videos of each keyword: relevance keeps TikTok's own order, most-liked and most-viewed sort by likes or views, newest by upload time. For a sorted list the TikTok Search Scraper reads more result pages than the limit first, so the top videos really are the most liked or viewed of what TikTok shows.

#### `datePosted`

The `datePosted` option keeps only videos posted after a date (2026-01-31) or within a period such as "7 days", "2 weeks" or "3 months". It is applied to every keyword. Leave it empty to keep videos of any age; the column `dateFilter` repeats the value you used.

#### `minViews`

The `minViews` option keeps only videos with at least this many views (plays). Default 0 keeps all. Combine it with `minLikes` to find only videos that really performed, for example 100000 views and 5000 likes.

#### `minLikes`

The `minLikes` option keeps only videos with at least this many likes (hearts). Default 0 keeps all videos. It is applied before rows are saved, so filtered videos are not charged.

#### `minComments`

The `minComments` option keeps only videos with at least this many comments - a good signal for videos that started a conversation. Default 0 keeps every video.

#### `minDurationSec`

The `minDurationSec` option keeps only videos that are at least this many seconds long, for example 30 to skip very short clips. Default 0 keeps all lengths; slideshows count with their audio length.

#### `strictKeywordMatch`

Turn on `strictKeywordMatch` to keep only videos whose caption, hashtags, author name or sound title contain at least one word of the keyword. TikTok sometimes adds loosely related videos; this option removes them. The columns `keywordMatchedIn` and `keywordRelevance` show where the keyword was found either way.

#### `uniqueAuthors`

Turn on `uniqueAuthors` to keep only the first video of each creator for a keyword - useful when you want a list of different creators rather than many videos of one popular account. Off by default.

#### `deduplicateAcrossKeywords`

Turn on `deduplicateAcrossKeywords` to save a video only once, for the first keyword that found it. Off by default; the column `isDuplicateAcrossKeywords` marks videos that another keyword found too.

#### `includeKeywordInsights`

The `includeKeywordInsights` option (default on) adds keyword-level numbers to every row of that keyword: `resultCount`, `avgViews`, `medianViews`, `maxViews`, `avgLikes`, `avgEngagementTotal`, `verifiedRatio`, `adRatio`, `slideshowRatio`, `topHashtags`, `topCreators`, `postingByHourUTC` and the oldest / newest upload time.

#### `includeVideoDetails`

The `includeVideoDetails` option (default on) opens every video's own page for the fields the keyword list leaves out: caption language, the country where the video was created, repost count, the ad flag and subtitle links. The pages are opened in parallel, so a 20-video run still takes well under a minute. Turn it off for the fastest possible run.

#### `detailConcurrency`

The `detailConcurrency` option sets how many video pages are opened at the same time when `includeVideoDetails` is on (default 8, up to 20). Higher is faster; lower it if you see many "video page not read" notes in `detailStatus`.

#### `searchType`

The `searchType` option chooses what is searched. Videos (`video`, the default) is the only kind TikTok gives logged-out visitors; TikTok's user and LIVE search answer only to its own signed app requests, so other values stop the run with a clear ERROR instead of returning wrong data.

#### `region`

The `region` option sets a 2-letter country code (US, GB, DE, BR ...). TikTok shows the results that people in that country see, decided by the visitor's country, so the TikTok Search Scraper routes the run through a residential proxy in that country. Empty uses the proxy you chose.

#### `expansion`

The `expansion` option (default 0 = off) also searches up to this many of TikTok's related searches (its autocomplete suggestions) for every keyword. With 3, the keyword "funny cats" also searches "funny cats compilation", "funny cats videos" and so on, each with its own per-keyword limit - an easy way to collect many more relevant videos.

#### `includeSearchTerms`

The `includeSearchTerms` option (default on) adds TikTok's related search terms for each keyword (the autocomplete list people see while typing) to every row of that keyword in the column `relatedSearchTerms`. Useful for keyword research next to the videos. Turn it off to skip that one extra request per keyword.

#### `relevanceThreshold`

The `relevanceThreshold` option (0 to 1, default 0 = off) keeps only videos whose caption, hashtags, author name or sound contain at least that share of the keyword's words. 0.5 with "paris travel tips" keeps videos that mention at least two of the three words; the column `keywordRelevance` shows the share for each video.

#### `includeDownloadUrl`

The `includeDownloadUrl` option (default on) keeps the video file link columns (`videoDownloadUrl`, `downloadUrl` and the others). Turn it off when you only need statistics - the link columns then stay empty and the dataset is smaller.

#### `videoDownloadQuality`

The `videoDownloadQuality` option chooses which of TikTok's renditions the download link points to: default (TikTok's standard link), highest (the highest bitrate TikTok offers for the video) or lowest (the smallest file). The column `videoDownloadQuality` names the chosen rendition when it is not the default.

#### `maxItems`

The `maxItems` option is a safety cap on all saved videos of the run (all keywords together). The run stops cleanly when it is reached and the status says so.

#### `maxConcurrency`

The `maxConcurrency` option sets how many keywords are searched at the same time (default 5, up to 20). With many keywords a higher number makes the run faster.

#### `proxyConfiguration`

The `proxyConfiguration` option chooses the connection. The default is an Apify residential proxy, which is recommended; the proxy country decides which regional results TikTok shows.

### Input examples

Two keywords, 20 videos each:

```json
{
  "keywords": [
    "funny cats",
    "paris travel"
  ],
  "maxItemsPerKeyword": 20
}
```

Most liked recent videos with at least 100k views:

```json
{
  "keywords": [
    "skincare routine"
  ],
  "maxItemsPerKeyword": 50,
  "sortType": "most-liked",
  "datePosted": "30 days",
  "minViews": 100000
}
```

Creators for a niche, one video each:

```json
{
  "keywords": [
    "home workout",
    "meal prep"
  ],
  "maxItemsPerKeyword": 40,
  "uniqueAuthors": true,
  "strictKeywordMatch": true
}
```

### Output - every field explained

Every row of the TikTok Search Scraper has the same columns in the same order. Fields:

| field(s) | meaning |
|---|---|
| `id`, `videoId`, `aweme_id`, `group_id` | TikTok video id |
| `text`, `title`, `caption`, `desc`, `content_desc` | the caption |
| `textLanguage`, `desc_language` | caption language |
| `createTime`, `create_time`, `uploadedAt` | upload time (Unix seconds) |
| `createTimeISO`, `uploadedAtFormatted` | upload time ISO (UTC) |
| `webVideoUrl`, `videoUrl`, `url`, `postPage`, `link`, `href`, `tiktokUrl`, `videoPage`, `share_url` | the video link |
| `playCount`, `views` | views |
| `diggCount`, `likes` | likes |
| `commentCount`, `comments` | comments |
| `shareCount`, `shares` | shares |
| `collectCount`, `saves`, `collect_stat` | saves (bookmarks) |
| `repostCount`, `reposts` | reposts |
| `statistics` | all counters in one object |
| `engagementTotal`, `engagementRateByViews` | likes + comments + shares + saves, and that divided by views |
| `authorMeta` | author object: id, name, nickName, verified, signature, bioLink, avatar, secUid, fans, following, heart, video ... |
| `author`, `authorUniqueId`, `uniqueId`, `channel` | author username |
| `author_user_id`, `authorId` | author id |
| `authorNickname`, `nickname` | author display name |
| `authorUrl`, `profileUrl` | author profile link |
| `authorVerified`, `verified` | verified badge |
| `privateAccount` | private account |
| `authorFollowerCount`, `followerCount` | author followers |
| `authorFollowingCount`, `followingCount` | accounts the author follows |
| `authorHeartCount`, `heartCount` | total likes of the author |
| `videoCount` | author video count |
| `signature` | author bio |
| `authorAvatarUrl`, `avatarThumb` | author picture |
| `musicMeta`, `music` | sound object: id, name, author, original, album, play link, duration, cover |
| `musicId`, `musicTitle`, `musicAuthorName`, `musicOriginal`, `musicDuration` | sound id, title, author, original-sound flag, length |
| `videoMeta`, `video` | video object: size, duration, cover, play / download link, format, bitrate, subtitles |
| `duration` | video length (seconds) |
| `videoWidth`, `videoHeight`, `ratio`, `videoFormat` | video size, ratio and format |
| `coverUrl`, `thumbnail`, `image`, `coverImage`, `thumbnailCdn`, `originCoverUrl` | cover image |
| `thumbnailWsrv`, `thumbnailProxy` | cover through a public image proxy (for tools that cannot load the CDN link) |
| `dynamicCoverUrl`, `dynamicCover` | animated cover |
| `videoDownloadUrl`, `downloadUrl`, `originalVideoUrl`, `videoUrlCdn`, `previewVideoUrl`, `playUrlCandidates` | video file links (signed, they expire after some hours and may need the TikTok session that read them) |
| `tiktokEmbedUrl`, `previewEmbedHtml` | embed link and ready-to-paste embed HTML |
| `hashtags`, `hashtagNames`, `cha_list` | hashtags (objects / names / id + name) |
| `mentions`, `detailedMentions` | @mentions in the caption |
| `text_extra` | TikTok's caption markup (hashtag and mention positions) |
| `effectStickers` | effects used |
| `isSlideshow`, `slideshowImageLinks`, `image_infos` | photo slideshow flag and image links |
| `isAd`, `is_ads`, `isSponsored` | ad / sponsored flag |
| `isMuted` | muted video |
| `locationCreated`, `region` | country where the video was created |
| `locationMeta` | tagged place (id, name, address, city) |
| `categories`, `video_labels` | TikTok content labels |
| `item_duet`, `item_stitch`, `item_comment_settings`, `prevent_download` | duet / stitch allowed, comment setting, download blocked |
| `is_top` | pinned on the author's profile |
| `status`, `share_info`, `user_digged` | privacy / sharing flags, share title, liked by the viewer (always false logged out) |
| `subtitleLinks` | subtitle files (language, source, format, link) |
| `detailStatus` | whether the video page was read |
| `keyword`, `searchKeyword`, `searchQuery`, `__search_terms` | the keyword that found the video |
| `normalizedKeyword` | the keyword as TikTok's keyword page writes it |
| `searchType` | always video |
| `searchRank`, `keywordRankBucket` | rank in the keyword results and its bucket (1-10, 11-25 ...) |
| `pageNumber`, `resultIndexOnPage` | result page and position on it |
| `inputKeywordIndex` | position of the keyword in your list |
| `isDuplicateAcrossKeywords` | another keyword found the same video |
| `keywordMatchedIn`, `keywordRelevance` | where the keyword words were found and the share of words found |
| `resultCount`, `avgViews`, `medianViews`, `maxViews`, `avgLikes`, `avgEngagementTotal` | keyword insights: number of results and view / like / engagement statistics |
| `verifiedRatio`, `adRatio`, `slideshowRatio` | share of verified authors, ads and slideshows |
| `topHashtags`, `topCreators`, `postingByHourUTC` | most used hashtags, most frequent creators, uploads per hour |
| `oldestCreateTimeISO`, `newestCreateTimeISO` | oldest and newest upload of the keyword |
| `relatedSearchTerms` | TikTok's related searches (autocomplete) for the keyword |
| `videoDownloadQuality` | the chosen rendition (only with a non-default download quality) |
| `sort`, `dateFilter` | the sort and date filter you used |
| `source`, `scrapeStatus`, `runId`, `scrapedAt` | tiktok, ok, the Apify run id and the save time |

### Which columns can be empty

Measured on our test runs. A column is empty only when the platform does not publish that value for the row:

- `mentions`, `detailedMentions`, `text_extra` - empty when the caption has no @mention / markup (22 of 22 test videos had no mention).
- `effectStickers` - empty when the creator used no effect.
- `slideshowImageLinks`, `image_infos` - empty for normal videos (filled for photo slideshows).
- `locationMeta` - empty when the creator tagged no place.
- `isMuted`, `is_top` - TikTok publishes the muted flag only in the keyword list and the pinned flag only on profile grids; empty when the video page did not carry them.
- `subtitleLinks` - empty when the video has no captions (13 of 22 test videos had none).
- `hashtags`, `hashtagNames`, `cha_list` - empty when the caption has no hashtag.
- `signature` - empty when the author wrote no bio.
- `categories`, `video_labels` - empty when TikTok gave the video no label.
- `item_stitch`, `item_duet` - empty when TikTok does not say.
- `keywordMatchedIn` - empty list when no keyword word appears in caption, hashtags, author or sound.
- `dateFilter` - input echo - empty when no date filter was set.
- `relatedSearchTerms` - empty for keywords that were added by `expansion` (their own related terms are not asked) or when `includeSearchTerms` is off.
- `videoDownloadQuality` - only present when a non-default download quality is chosen.
- `detailStatus` - filled only when the video page was opened.
- `textLanguage`, `desc_language`, `locationCreated`, `region`, `repostCount`, `reposts`, `isAd`, `is_ads`, `isSponsored` - filled from the video page; empty when `includeVideoDetails` is off or that page could not be read.

### How much does TikTok Search Scraper cost?

The TikTok Search Scraper uses pay-per-event pricing: a small start fee per run and a fixed price per saved row (see the Pricing tab). Worked example: at $1.50 per 1,000 videos, 1,000 videos cost $1.50 plus the start fee, and 100 videos cost a tenth of that. Apify's free plan lets you try the TikTok Search Scraper with up to 30 rows per run.

### Use TikTok Search Scraper from your code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/tiktok-search-scraper").call(run_input={"keywords": ["funny cats", "paris travel"], "maxItemsPerKeyword": 20})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

You can also schedule the TikTok Search Scraper in Apify Schedules and send every finished dataset to Google Sheets, a webhook, Make, Zapier or your database.

### TikTok Search Scraper at a glance

- The TikTok Search Scraper returns the same field names as the popular TikTok scrapers, so switching is easy.
- The TikTok Search Scraper adds keyword insights that no plain video list gives you.
- The TikTok Search Scraper runs several inputs in parallel and saves rows as soon as they are read.
- The TikTok Search Scraper needs no account, login or API key.
- The TikTok Search Scraper keeps the same columns on every row, so CSV and Excel exports stay tidy.
- The TikTok Search Scraper logs a clear ERROR for every input it cannot read and carries on with the rest.
- The TikTok Search Scraper can be scheduled for daily or hourly snapshots.
- The TikTok Search Scraper works with the Apify API, webhooks and integrations.

### FAQ

**Does the TikTok Search Scraper need a TikTok account?** No - it works logged out, without cookies.

**How many videos can I get per keyword?** TikTok shows about 96 videos per keyword to logged-out visitors; the TikTok Search Scraper reads them all when the limit allows. Use more and more specific keywords for more videos.

**Can it search users?** This Actor searches videos; the author of every video is in the row with full statistics.

**Why do some download links not open?** TikTok signs video file links for a short time and for the session that read them; use them soon after the run.

**Is it legal to use the TikTok Search Scraper?** The TikTok Search Scraper collects publicly visible data. Check the platform's terms and your local rules (for example GDPR for personal data) before you use the data commercially.

**Something is missing?** Open an issue on the TikTok Search Scraper page and we will add it to the TikTok Search Scraper.

Tip 1: the TikTok Search Scraper gives the best results with specific inputs; run the TikTok Search Scraper once with a small limit first.

Tip 2: the TikTok Search Scraper gives the best results with specific inputs; run the TikTok Search Scraper once with a small limit first.

Tip 3: the TikTok Search Scraper gives the best results with specific inputs; run the TikTok Search Scraper once with a small limit first.

Tip 4: the TikTok Search Scraper gives the best results with specific inputs; run the TikTok Search Scraper once with a small limit first.

Tip 5: the TikTok Search Scraper gives the best results with specific inputs; run the TikTok Search Scraper once with a small limit first.

# Actor input Schema

## `keywords` (type: `array`):

Search words, one per line (e.g. funny cats, paris travel, skincare routine). Each keyword is searched separately.

## `maxItemsPerKeyword` (type: `integer`):

How many videos to save for EACH keyword (TikTok shows about 96 per keyword to visitors).

## `sortType` (type: `string`):

Order of the saved videos of each keyword.

## `datePosted` (type: `string`):

Keep only videos posted after this date (2026-01-31) or within a period (7 days, 3 months).

## `minViews` (type: `integer`):

Keep only videos with at least this many views.

## `minLikes` (type: `integer`):

Keep only videos with at least this many likes.

## `minComments` (type: `integer`):

Keep only videos with at least this many comments.

## `minDurationSec` (type: `integer`):

Keep only videos at least this long.

## `strictKeywordMatch` (type: `boolean`):

Keep only videos whose caption, hashtags, author or sound contain a word of the keyword.

## `uniqueAuthors` (type: `boolean`):

Keep only the first video of each creator per keyword.

## `deduplicateAcrossKeywords` (type: `boolean`):

Save a video only for the first keyword that found it.

## `includeKeywordInsights` (type: `boolean`):

Add keyword-level numbers to every row: result count, average / median / max views, average likes and engagement, verified / ad / slideshow ratios, top hashtags, top creators, posting hours.

## `includeVideoDetails` (type: `boolean`):

Open every video for the fields the keyword list leaves out (caption language, country, reposts, ad and pinned flags, subtitles). Costs a little time, runs in parallel.

## `detailConcurrency` (type: `integer`):

How many video pages are opened at the same time when Full video details is on.

## `searchType` (type: `string`):

What to search. Videos (users and LIVE need a signed request TikTok gives only to its own app).

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

2-letter country code (US, GB, DE ...): TikTok shows the results people in that country see (the proxy country follows it).

## `expansion` (type: `integer`):

Also search up to this many of TikTok's related searches (autocomplete) for every keyword. 0 = off.

## `includeSearchTerms` (type: `boolean`):

Add TikTok's related search terms (autocomplete) of each keyword to its rows (relatedSearchTerms).

## `relevanceThreshold` (type: `number`):

0-1: keep only videos whose caption / hashtags / author / sound contain at least this share of the keyword words. 0 = off.

## `includeDownloadUrl` (type: `boolean`):

Include the video file links. Off = the link columns stay empty (smaller dataset).

## `videoDownloadQuality` (type: `string`):

Which of TikTok's video renditions the download link points to.

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

Safety cap on all saved videos of the run.

## `maxConcurrency` (type: `integer`):

How many keywords are searched at the same time.

## `proxyConfiguration` (type: `object`):

Residential proxy is the default and recommended.

## Actor input object example

```json
{
  "keywords": [
    "funny cats",
    "paris travel"
  ],
  "maxItemsPerKeyword": 20,
  "sortType": "relevance",
  "minViews": 0,
  "minLikes": 0,
  "minComments": 0,
  "minDurationSec": 0,
  "strictKeywordMatch": false,
  "uniqueAuthors": false,
  "deduplicateAcrossKeywords": false,
  "includeKeywordInsights": true,
  "includeVideoDetails": true,
  "detailConcurrency": 8,
  "searchType": "video",
  "expansion": 0,
  "includeSearchTerms": true,
  "relevanceThreshold": 0,
  "includeDownloadUrl": true,
  "videoDownloadQuality": "default",
  "maxItems": 100000,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# 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 = {
    "keywords": [
        "funny cats",
        "paris travel"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/tiktok-search-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 = {
    "keywords": [
        "funny cats",
        "paris travel",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/tiktok-search-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 '{
  "keywords": [
    "funny cats",
    "paris travel"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/tiktok-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/tiktok-search-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/Y2LsTsdlUtGQ1waTV/builds/8ImjMxI2eJaPsfGLd/openapi.json
