Skip to content
tiktokapi.io
Search & Discovery Guide7 min read·Updated 2026-10-29

TikTok Search API Guide: Search Videos, Creators & Commercial Ads by Keyword

Build real-time trend discovery, social listening, influencer outreach, and ad intelligence pipelines with keyword search across TikTok videos, creators, hashtags, and Creative Center ads.

Key Engineering Takeaways (TL;DR)

  • ✓Use GET /v1/videos/search (or /v1/video/search) to search public videos by keyword with filters for region (US, GB, JP, DE, etc.), publish_time (yesterday, 7d, 30d, 90d, 180d), and sort_by (Relevance, Most Liked, Newest).
  • ✓Every video item returned in search results already includes direct no-watermark MP4 playback links (play) and full engagement counters — no second N+1 lookup required.
  • ✓Use GET /v1/users/search to discover creators filtered by follower count tier (follower_tier) and verification badge (verified_only).
  • ✓Use GET /v1/ads/search to query TikTok Creative Center top-performing commercial ads by keyword, country, time period, and ranking metric (impression, ctr, like).

1. Choosing the Right TikTok Search Endpoint

TikTokAPI.io provides four specialized search endpoints depending on whether you are discovering organic videos, creators, hashtags, or paid commercial creatives:

Comparison of the 4 search endpoints on TikTokAPI.io
Search TargetEndpointFilter ParametersMax Page SizeCredit Cost
Organic Videos by KeywordGET /v1/videos/searchquery (or keywords), region, publish_time (0/1/7/30/90/180), sort_by (0=Relevance, 1=Likes, 3=Newest)30 videos / call2 Credits / video (min 10)
Creator AccountsGET /v1/users/searchquery (or keywords), follower_tier (0–4), verified_only (0/1)30 users / call1 Credit / user (min 10)
Hashtag ChallengesGET /v1/hashtags/info + /v1/hashtags/videoshashtag (e.g. skincare) -> hashtag_id30 videos / call2 Credits / video (min 10)
Commercial Ads (Creative Center)GET /v1/ads/searchkeyword, country_code (US, GB, etc.), period (7/30/180), sort_by (impression/ctr/like)20 ads / call10 Credits / ad (min 10)

2. Paginated Keyword Video Search (Python & TypeScript)

When paginating through search results, pass cursor=0 on the first request, then read data.cursor and data.hasMore from each response. Our gateway includes built-in stuck-cursor protection that automatically sets hasMore: false if upstream repeats a cursor.

Search TikTok Videos by Keyword, Region & Time Window (GET /v1/videos/search)

Search US TikTok videos matching 'ai tools' published in the past 7 days, sorted by relevance, with safe multi-page cursor pagination.

curl -sS "https://api.tiktokapi.io/v1/videos/search?query=ai+tools&limit=20&cursor=0&region=US&publish_time=7&sort_by=0" \
  -H "x-api-key: tk_your_api_key_here"

3. Filter Parameter Reference (publish_time, sort_by, follower_tier)

Use these exact integer codes to filter video search and creator search results at the API level:

Valid filter enum values for /v1/videos/search and /v1/users/search
EndpointParameterAllowed ValuesMeaning
/v1/videos/searchpublish_time0, 1, 7, 30, 90, 1800 = All time, 1 = Yesterday, 7 = Past 7 days, 30 = Past 30 days, 90 = Past 3 months, 180 = Past 6 months
/v1/videos/searchsort_by (or sort_type)0, 1, 30 = Relevance, 1 = Most Liked (digg_count), 3 = Newest first
/v1/videos/searchregionISO 3166-1 alpha-2US, GB, CA, DE, FR, JP, KR, BR, MX, ID, VN, etc.
/v1/users/searchfollower_tier (or follower_count)0, 1, 2, 3, 40 = Any, 1 = 0–1K, 2 = 1K–10K, 3 = 10K–100K, 4 = 100K+ followers
/v1/users/searchverified_only (or profile_type)0, 10 = All accounts, 1 = Verified blue-check accounts only

Frequently Asked Questions

Does /v1/videos/search return no-watermark video download URLs directly inside the search list?
Yes. Every item in data.videos[] includes data.videos[i].play (direct no-watermark MP4 stream) plus play_count, digg_count, comment_count, share_count, author, and music_info. You do not need to call /v1/videos/detail for each search result unless you specifically need the 1080p hdplay stream.
How is credit billing calculated on /v1/videos/search?
Video search is billed per item returned: 2 Credits per video ($0.20 per 1,000 videos at base rate, or $0.08 per 1,000 videos on Business Monthly), with a 10-Credit minimum per successful call.
Can I pass either query or keywords as the search parameter?
Yes. Our gateway accepts both query=... (standardized V1 style) and keywords=... (legacy style), as well as both limit=... and count=....