tiktok/
top-search

Use the TikTok Top Search API to search TikTok videos and photo carousels by keyword, with captions, creator details, media links and engagement counts returned together in one JSON list.

TikTok Top Search API

Videos and photo carousels
Keyword search
Sorting and publication filters
0.7 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

TikTok Top Search

TikTok Top search brings together videos and photo carousels, which are posts made up of multiple images, around a keyword or phrase. Captions, creator identities, media and interaction counts help you compare how the same topic appears across those different content formats.

TikTok Top Search API Features

  • Find videos and image posts in one searchOne keyword query to the TikTok Top Search API can return video posts and photo carousels, with the type field identifying the format so you can keep both in one dataset or separate them for review.
  • Choose the ordering and publication rangeSort matching content by relevance, publication date or likes and add a publication-time filter to focus the returned selection on the kind of content you want to inspect.
  • Read the content together with its creator and countersEach TikTok Top Search API result brings the caption, creator information, media links and available interaction counts together, so you can relate a post’s subject and format to the account that published it.

TikTok Top Search API Parameters

ParametersRequiredDescription
queryRequiredRequired keyword or phrase describing what you want to find, such as coffee or home workout; enter search text rather than a TikTok post URL.
sort_byOptionalOptional ordering: relevance puts matching relevance first, date uses publication-date ordering, and likes uses like-count ordering; the default is relevance.
published_withinOptionalOptional publication-time range: day selects yesterday, week this week, month this month, three_months the last three months, and six_months the last six months; leave it blank to apply no additional publication-time filter.
regionOptionalOptional two-letter region code, such as US or GB, that changes which content is accessible for the search; it does not prove that returned posts or creators are located in that country.
results_limitOptionalOptional maximum number of content records, from 1 to 2000, with a default of 100; videos and photo carousels both count toward this total, and fewer results can be returned.

How to Use the TikTok Top Search API

Each TikTok Top Search API request starts a background collection task, so its first response gives you a task ID rather than the finished data; use that ID to check progress and retrieve the results.

  1. Enter a subject keyword for the TikTok Top Search API, choose whether relevance, date or likes is most useful, and set a result limit; add a publication range or region only when you need those options.
  2. Before running the example, replace $SOCQ_API_KEY with your own API key or set that environment variable. Send the JSON input to POST /v1/tiktok/top-search with the Authorization header shown below, then save the task_id from the response.
  3. Use GET /v1/tasks/{task_id} with the saved ID to check progress. queued means waiting, running means collection is in progress, and retrying means another attempt is underway. Wait for succeeded before reading the results; if the task is failed, read error_message for the reason.
  4. When the task succeeds, read data.results.items: each item in this TikTok Top Search API list describes one video or photo-carousel post. An empty list means the task completed without returning any records.
  5. If data.results.has_more is true, the next_cursor value is the marker for another page of saved results. Copy it unchanged into the cursor parameter of GET /v1/tasks/{task_id}?cursor=... and continue until has_more is false.
curl -X POST "https://api.socq.ai/v1/tiktok/top-search" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"coffee","sort_by":"relevance","results_limit":20}'

TikTok Top Search API Use Cases

  • Build a topic-based content collection: Search a subject such as coffee with the TikTok Top Search API, then save captions, creator handles, links and content types into a review table containing both video and image-post examples.
  • Compare interaction counts across the returned posts: Combine the available likes, comments and shares with each post’s format and publication time to prepare a comparison sheet, keeping the query and filters so you know how the examples were selected.

TikTok Top Search API Pro Tips

  • When displaying a TikTok Top Search API result, inspect type and media first: photo_carousel means an image post and should use an image gallery rather than a video player.
  • When collecting several keywords, use the post ID to deduplicate repeated matches and keep the keyword associated with each collection so the same post is not counted several times by accident.
  • If your workflow only accepts videos, use TikTok Search; if you need both videos and image posts, keep the TikTok Top Search API and handle both formats in your display.
  • When a photo result has no duration or playback count, leave that measurement empty instead of interpreting it as a zero-second video or an unviewed post.

Beyond the TikTok Top Search API, use these APIs when you need a different type of public TikTok data.

  • TikTok Profiles API — Retrieve public profile identity, biographies, account flags, and audience counts by username.
  • TikTok Hashtags API — Collect public videos, creators, media, sound, and engagement for specified hashtags.
  • TikTok Comments API — Collect public top-level comments, authors, engagement, mentions, and creator interaction flags.
  • TikTok Videos API — Retrieve creator, caption, media, music, tags, mentions, and engagement from video URLs.
  • TikTok Search API — Search public videos by keyword with supported sorting and publication filters.
  • TikTok Live Room Info API — Look up one known live room by paired room and owner IDs, returning status, owner context, cover media, and audience counts.

Explore other platforms

Combine TikTok data with public data from other supported social platforms.

TikTok Top Search API — FAQ

TikTok Top Search API is a programmatic interface for finding public TikTok videos and photo carousels from a keyword or phrase. It returns captions, creators, media links and interaction counts, with optional sorting and publication-time filters.

It is a TikTok image post containing multiple pictures that viewers can move through. In the results, type=photo_carousel identifies that format and media contains the image entries.

TikTok Search returns videos only, while Top Search can include both videos and photo carousels. Choose based on whether your collection or display needs to handle image posts as well.

There is no photo-only input filter. After retrieval, select the records whose type is photo_carousel; the result limit applies before your own format filtering, so the remaining photo count can be lower.

No. region changes content availability for the search, not the geographic origin of every result; do not use it as a substitute for a creator-location or post-location field.

No. results_limit is a cap on the returned selection, not a guarantee that every matching TikTok post will be included. A search can return fewer records than the requested limit.

Each returned content record costs 0.7 credits, whether it is a video or a photo carousel. There is no base charge; a limit of 100 estimates 70 credits, while 20 returned records cost 14 credits.

By SocQ · Updated

From the official TikTok API documentation:

“Qualified researchers in the U.S., Europe, Canada, and Brazil can apply to study public data about TikTok content and accounts.”
TikTok for Developers: Research API · accessed November 2026