# See what ranks in TikTok search for a keyword

**Use case:** 

Read TikTok's Top search results for 'how to start a business' in the order TikTok returns them: videos, photo posts and accounts, each with link, creator, caption, plays and likes. Use it for TikTok SEO, to see which creators and formats win a keyword before you make content for it. Change the keyword to your own.

## Input

```json
{
  "queries": [
    "how to start a business"
  ],
  "resultType": "top",
  "maxResultsPerQuery": 30,
  "sortBy": "relevance",
  "includeDownloadUrls": true
}
```

## Output

```json
{
  "query": {
    "label": "Search term"
  },
  "resultType": {
    "label": "Type"
  },
  "placeName": {
    "label": "Place"
  },
  "hashtagName": {
    "label": "Hashtag"
  },
  "postId": {
    "label": "Post ID"
  },
  "videoId": {
    "label": "Video ID"
  },
  "url": {
    "label": "URL"
  },
  "authorUsername": {
    "label": "@handle"
  },
  "description": {
    "label": "Caption"
  },
  "createdAt": {
    "label": "Posted"
  },
  "playCount": {
    "label": "Plays"
  },
  "likeCount": {
    "label": "Likes"
  },
  "username": {
    "label": "Account"
  },
  "nickname": {
    "label": "Name"
  },
  "followerCount": {
    "label": "Followers"
  },
  "musicTitle": {
    "label": "Sound"
  },
  "musicAuthor": {
    "label": "Artist"
  },
  "noWatermarkUrl": {
    "label": "No-watermark link"
  },
  "isCommercialTrack": {
    "label": "Catalogue track"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The TikTok Search Scraper — videos, users, hashtags Actor is ready to run with the inputs already set for "See what ranks in TikTok search for a keyword". [Sign up or log in](https://console.apify.com/create-task-from-example/1u6bLyvKzDMCn1xzX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "See what ranks in TikTok search for a keyword" task

The TikTok Search Scraper — videos, users, hashtags Actor will start running based on the input automatically. You can also change all the input fields, like search terms, what to search for, and more, to match your specific use case.

### 3. Receive the "See what ranks in TikTok search for a keyword" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as search term, type, place, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "See what ranks in TikTok search for a keyword" task via API](https://apify.com/mu0i/tiktok-search-scraper.md).

## FAQ

### What is TikTok's Top search tab?

Top is TikTok's mixed search tab: it ranks videos, photo posts and accounts together. The TikTok search rankings task returns them in TikTok's order, and each row's resultType says which kind it is.

### Are TikTok search rankings the same for everyone?

TikTok re-ranks search results from one request to the next, so the TikTok search rankings task gives a snapshot. Run it a few times or on a schedule to see which videos hold their place.

### How much does the search rankings task cost?

The TikTok search rankings task is billed per result: $2.50 per 1,000 on the Apify Free plan, less on paid plans. A run that finds nothing is free. Free plan accounts get up to 1,000 results a month.

## About this Actor

This example demonstrates how to use [TikTok Search Scraper — videos, users, hashtags](https://apify.com/mu0i/tiktok-search-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mu0i/tiktok-search-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/mu0i/tiktok-search-scraper.md

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`).
