# TikTok Top Search

Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.

|  |  |
| --- | --- |
| Tool id | `anyapi.tiktok-search-general` |
| Platform | [TikTok](https://www.orcarouter.ai/tools/tiktok.md) |
| Capability | [Search posts](https://www.orcarouter.ai/tools/tiktok/search-posts.md) |
| Price | $0.00099 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | no |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Keyword to search for (e.g. "funny"). |
| `cursor` | string | no | Pagination cursor from a previous response. |
| `publishTime` | string | no | Time-frame filter: yesterday, this-week, this-month, last-3-months, last-6-months, all-time. |
| `region` | string | no | 2-letter country code for the proxy location (e.g. US, GB, FR). |
| `sortBy` | string | no | Sort order: relevance, most-liked, date-posted. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/anyapi.tiktok-search-general/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"<query>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/anyapi.tiktok-search-general/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"query":"<query>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [TikTok Keyword Search](https://www.orcarouter.ai/tools/tiktok/search-posts/tiktok-search-videos.md) | — | $0.00077 per call | OK |
| [Search TikTok videos by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/tiktok-search-videos-375fee.md) | — | $0.0011 per call | OK |
| [Search TikTok across all content by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/x-tiktok-app-v3-fetch-general-search-result.md) | — | $0.0011 per call | OK |
| [Search TikTok music by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/x-tiktok-app-v3-fetch-music-search-result.md) | — | $0.0011 per call | OK |
| [Search TikTok across all content by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/x-tiktok-web-fetch-general-search.md) | — | $0.0011 per call | OK |
| [Search TikTok photo posts by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/x-tiktok-web-fetch-search-photo.md) | — | $0.0011 per call | OK |
| [Search TikTok videos by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/tiktok-search-videos-8596f5.md) | — | $0.002068 per credit | OK |
| [Search TikTok posts by keyword](https://www.orcarouter.ai/tools/tiktok/search-posts/tiktok-search-videos-829201.md) | — | $0.016236 per call | OK |

## FAQ

### How much does TikTok Top Search cost?

TikTok Top Search costs $0.00099 per call: 1,000 calls cost $0.99.

### What does a $10 budget buy with TikTok Top Search?

About 10101 calls at $0.00099 per call.

### What inputs does TikTok Top Search need?

Required inputs: query.

### How do I call TikTok Top Search?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/tiktok/search-posts/tiktok-search-general
