# How to Scrape TikTok Search Results

To scrape TikTok search results, put your search terms in the keywords input of apidojo's TikTok Scraper on Apify, choose a sortType and a location country, and run it.

[![apidojo](/blog/authors/apidojo.png)**Apidojo** *15+ years of experience in data retrieval.*](/blog/authors/apidojo/)

**12 October 2026** Published

**3 min** Read

![Cover card reading 'How to Scrape TikTok Search Results'](/blog/covers/tiktok-scrape-search-results.png)

**To scrape TikTok search results, put your search terms in the `keywords` input of apidojo’s [TikTok Scraper](https://apify.com/apidojo/tiktok-scraper) on Apify, choose a `sortType` and a `location` country, and run it.** It returns every matching video with its views, likes, comments, shares, saves, hashtags, sound and the creator’s profile, at $0.30 per 1,000 posts. You can also paste TikTok search page URLs into `startUrls`.

TikTok search shows results one swipe at a time and can’t be exported. This guide covers keyword inputs, sorting and country targeting, turning video results into a list of creators, and costs. Searching in the app is covered in [how to search on TikTok](/blog/tiktok-search/how-to-search-on-tiktok/). Every other collection task is mapped in [how to scrape TikTok data](/blog/tiktok-scraping/how-to-scrape-tiktok/).

## How Do You Scrape TikTok Search Results by Keyword?

**You scrape search results by listing one or more keywords and letting the actor run each search.** Listed below are the 4 steps.

1.  **Open** TikTok Scraper.
2.  **Add** your search terms to `keywords`, one per line.
3.  **Set** `sortType`, `location` and `maxItems`.
4.  **Run** it and download the results as JSON, CSV, Excel or XML.

```
{
  "keywords": ["protein breakfast", "high protein snacks"],
  "sortType": "MOST_LIKED",
  "location": "GB",
  "includeSearchKeywords": true,
  "maxItems": 2000
}
```

`includeSearchKeywords` adds the keyword that found each video, so results from several searches stay separable (Apify).

## How Do You Sort and Target TikTok Search Results?

**The `sortType` and `location` inputs mirror TikTok’s own search filters and country targeting.** The table shows the options (Apify).

| Input | Options | Use it for |
| --- | --- | --- |
| sortType | RELEVANCE | What TikTok’s search shows first |
| sortType | MOST_LIKED | The best-performing videos on a topic |
| sortType | DATE_POSTED | The newest videos, for trends and monitoring |
| location | ISO country code, such as US, GB, DE | Results as seen in that country |

`sortType` applies only to `keywords`, not to `startUrls`. Each search should return at least 10 posts.

## How Do You Scrape TikTok Search Page URLs?

**If you’ve already built a search on tiktok.com, paste its URL into `startUrls`; search URLs are one of the URL types the actor accepts, alongside profiles, hashtags, sounds and locations.** Use `keywords` when you want to control sorting and country from the input instead.

## How Do You Turn Video Results Into a List of Creators?

**Every video result carries a `channel` object with the creator’s username, follower count, bio and verification, so de-duplicating those objects turns a keyword search into a creator list.** This is the fastest way to find accounts active in a niche.

```
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("apidojo/tiktok-scraper").call(run_input={
    "keywords": ["sourdough baking"],
    "sortType": "MOST_LIKED",
    "maxItems": 1000,
})

creators = {}
for post in client.dataset(run.default_dataset_id).iterate_items():
    ch = post["channel"]
    c = creators.setdefault(ch["username"], {"followers": ch["followers"], "videos_found": 0, "views": 0})
    c["videos_found"] += 1
    c["views"] += post["views"]

for name, c in sorted(creators.items(), key=lambda x: -x[1]["views"])[:20]:
    print(name, c)
```

Narrowing that list to the right creators is covered in [how to find TikTok influencers by niche with data](/blog/tiktok-scraping/find-influencers/), and checking individual accounts in [how to find someone on TikTok](/blog/tiktok-search/find-someone-on-tiktok/).

## What Does Scraping TikTok Search Results Cost?

**TikTok Scraper costs $0.30 per 1,000 posts, so 10 keywords with 1,000 results each cost $3.** For many small, frequent searches, [TikTok Scraper API](https://apify.com/apidojo/tiktok-scraper-api) charges $0.006 per query, including the first 10 to 20 posts, then $0.0003 per post (Apify).

| Searches | Results each | TikTok Scraper cost |
| --- | --- | --- |
| 1 | 1,000 | $0.30 |
| 10 | 1,000 | $3 |
| 50 | 2,000 | $30 |

## Why Does a TikTok Search Scrape Return Few Results?

**A search returns few results when `maxItems` is low, the keyword is very narrow, or the country has little content for it.** The actor’s documentation suggests checking `maxItems`, testing a broader or more popular term, and checking the location code (Apify). Splitting a broad topic into several specific keywords also helps each search stay relevant. More on limits is in [TikTok scraping limits](/blog/tiktok-scraping/limits-pagination/).

## The scrapers behind this

-   [TikTok Scraper Profiles, videos, hashtags, music and locations; 460 posts/sec measured $0.30 / 1K posts](/scrapers/tiktok-scraper/)
-   [TikTok User Scraper Users, followers and following lists by username or URL $0.005 / query + $0.50 / 1K users](/scrapers/tiktok-user-scraper/)

## Questions people ask

### Can you scrape TikTok search results for hashtags?

Yes, but hashtag pages give fuller results; see [how to scrape TikTok hashtag pages](/blog/tiktok-scraping/scrape-hashtags/).

### Can you scrape TikTok user search results?

Collect video results and de-duplicate the creators, as shown above, or check known profiles by URL with [TikTok User Scraper](https://apify.com/apidojo/tiktok-user-scraper).

### Can you scrape TikTok search results by date?

Yes, the `dateRange` input applies TikTok's own search date filter to keyword searches, with options such as `YESTERDAY`, `THIS_WEEK`, `THIS_MONTH`, `LAST_THREE_MONTHS` and `LAST_SIX_MONTHS`. Combine it with `sortType: DATE_POSTED` for the newest first, and filter by `uploadedAtFormatted` in the export ([Apify](https://apify.com/apidojo/tiktok-scraper/input-schema)).

### Where do you start?

At [how to scrape TikTok data in 2026](/blog/tiktok-scraping/how-to-scrape-tiktok/).

## More on scraping TikTok data

-   [How to Scrape TikTok Data in 2026 What TikTok data you can scrape, the 3 ways to collect it, which apidojo actor fits each task, limits, costs and Python code.](/blog/tiktok-scraping/how-to-scrape-tiktok/)
-   [How to Scrape TikTok Comments and Replies Export every comment and reply on any public TikTok video with text, likes, language and commenter profile, plus Python code.](/blog/tiktok-scraping/scrape-comments/)
-   [How to Scrape TikTok Profiles and Their Videos Scrape TikTok profiles by username with apidojo's actors, get every video's stats and the creator's details, and turn them into creator benchmarks.](/blog/tiktok-scraping/scrape-profiles/)
-   [How to Scrape TikTok Followers and Following Lists Export TikTok follower and following lists with profile details, the limits on large and hidden lists, and how to use the data.](/blog/tiktok-scraping/scrape-followers/)
-   [How to Scrape TikTok Hashtag Pages Collect every video on a TikTok hashtag with views, likes and creators, measure the hashtag's daily growth, and find who drives it.](/blog/tiktok-scraping/scrape-hashtags/)
-   [How to Scrape TikTok Sounds and Music Data Scrape the videos using any TikTok sound, read the song fields, measure a sound's growth, and extract audio from your own videos.](/blog/tiktok-scraping/scrape-sounds/)
-   [How to Scrape Location-Tagged TikTok Videos Scrape TikTok videos tagged at a venue or landmark, target results by country, and use location data for local research.](/blog/tiktok-scraping/scrape-locations/)
-   [How to Download TikTok Videos in Bulk Collect TikTok video links in bulk, download the files with Python, keep their details, and follow the rules on rights and reuse.](/blog/tiktok-scraping/bulk-download-videos/)
-   [How to Collect TikTok Data With Python A Python script that searches TikTok videos, scrapes comments on the best ones, cleans the data and saves it, with costs and limits.](/blog/tiktok-scraping/tiktok-python/)
-   [TikTok Scraping Limits: Pagination and Rate Limits The documented limits of apidojo's TikTok actors, how pagination and maxItems work, and fixes for runs that return too few results.](/blog/tiktok-scraping/limits-pagination/)
-   [Why geotagged TikTok posts arrive without a geotag TikTok Location Scraper returns posts filed under a place, and not one field in the output names that place. Here is how to keep the provenance.](/blog/tiktok/tiktok-location-provenance/)
-   [TikTok date windows that return nothing, and why TikTok Profile Scraper's since and until mean the opposite of what almost everyone assumes. Swap them and the run returns an empty dataset.](/blog/tiktok/tiktok-since-until/)
-   [Why your TikTok user run cost three queries getFollowers and getFollowing are both on by default, and each is its own charge on top of the profile lookup. An unconfigured run bills three times.](/blog/tiktok/tiktok-user-defaults/)

![apidojo](/blog/authors/apidojo.png)

## [Apidojo](/blog/authors/apidojo/)

15+ years of experience in data retrieval.

API Dojo is always ready for you. With 15+ years of experience, data acquisition has never been that easy. Cheapest prices with high availability.

-   🏯 15+ years of experience in data retrieval.
-   💰 Cheapest prices, qualified data.
-   ⚙️ High availability, extreme maintenance.
-   🐉 Hyper communicative, excellent support.

-   [apify.com](https://apify.com/apidojo)
-   [x.com](https://x.com/apidojo_)
-   [github.com](https://github.com/apidojo-io)
