TikTok hub

TikTok Top search API

The posts TikTok shows on its Top tab for a keyword, videos and photo slideshows together, as JSON.

GET /v1/tiktok/search/top

1 credit A not-found answer is still charged Service failures are free

About this endpoint

GET /v1/tiktok/search/top takes a required query and returns TikTok's Top results for it under data.items. Each item is a video or a photo slideshow (mediaType), with its id, caption, createdAt, URL, thumbnail and duration, stats (views, likes, comments, shares and saves), media download URLs and slideshowImages, and an author block with handle, display name, avatar and verified flag.

Optional filters: datePosted (yesterday, this-week, this-month, last-3-months, last-6-months or all-time), sortBy (relevance, most-liked or date-posted) and region, a two-letter country code for localized results. Pass labels=true for free AI labels on each row: question, complaint, purchaseIntent, sponsored and sentiment. When data.page.hasMore is true, send data.page.nextCursor as cursor for the next page. TikTok can repeat a post id across rows, so keep the row order rather than deduplicating.

This route has no lookupStatus: an empty data.items with hasMore: false means no results, not a failed call. For videos only, use GET /v1/tiktok/search. For one tag use GET /v1/tiktok/search/hashtags, and for accounts GET /v1/tiktok/users/search.

Price

From $1.35 per 1,000 requests

1 credit per request, including when nothing is found. Errors are free.

Scale pack
$1.64 / 1,000
Growth pack
$2.36 / 1,000

The lowest rate is on annual plans; packs are pay as you go.

Example request

Send your API key in the x-api-key header. New accounts get 100 free credits, no card needed.

Request
cURL

Example response

A 200 response. Live responses have the same shape with current data.

Request
JSON

TikTok Top search API FAQ

How do I get TikTok Top search results via API?

Call GET /v1/tiktok/search/top with your Social Fetch API key in x-api-key and a query. Read data.items and data.page. Add datePosted, sortBy, region or cursor as needed.

How is Top search different from TikTok video search?

Top search returns what TikTok's Top tab shows, which mixes videos and photo slideshows. GET /v1/tiktok/search returns videos only. Check mediaType on each Top result and read media.slideshowImages for slideshows.

What does region do on TikTok Top search?

It asks for localized results for a two-letter country code. With a region other than US and a datePosted filter or sortBy=date-posted, results combine the newest matching posts worldwide with posts found from that region, filtered to the date window and sorted as asked.

What are the AI labels on TikTok Top search?

Pass labels=true and each row gets labels with question, complaint, purchaseIntent and sponsored (true or false) and sentiment (positive, neutral or negative). Labels are model estimates and are never charged. A row not labelled within 2.5 seconds has labels: null.

How much does TikTok Top search cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.

How does pagination work on TikTok Top search?

When data.page.hasMore is true, pass data.page.nextCursor as cursor on the next request with the same query and filters. The cursor is opaque.