TikTok Search API
Search TikTok videos by keyword with sorting and filtering. Content discovery and trend research from $0.01/call.
Search for TikTok videos by keyword. Supports pagination with cursor-based navigation. Returns video metadata, engagement stats, and author information.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"videos": [
{
"id": "7234567890",
"desc": "Easy pasta recipe",
"author": {
"uniqueId": "chefmike"
},
"stats": {
"playCount": 150000,
"diggCount": 12000
}
}
],
"cursor": "20",
"hasMore": true
}
}Features
Pass any keyword phrase like "cooking recipes" and receive a ranked list of matching TikTok videos with descriptions, IDs, and author handles.
Each response includes a numeric cursor and a hasMore flag, so you can page through thousands of results by feeding the previous cursor into your next request.
Every video carries a stats object with playCount, diggCount, and related figures so you can rank results by performance, not just relevance.
Results embed the author's uniqueId and profile details, letting you jump straight from a video to the creator without a second lookup.
Use cases
Content Discovery
Find trending TikTok videos for any topic or niche.
Trend Research
Research what content is trending for specific keywords on TikTok.
Competitive Analysis
Monitor competitors' TikTok content performance by searching related keywords.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/tiktok/search', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"keywords": "cooking recipes",
"cursor": "0",
"count": "20"
}),
});
const data = await res.json();
console.log(data);TikTok Search API for keyword-based video discovery
The YepAPI TikTok Search API turns a keyword into a structured feed of matching TikTok videos. Send a phrase like "dance challenge" or "product unboxing" and get back video IDs, descriptions, author handles, and engagement stats as clean JSON — no headless browsers, no parsing HTML.
It is built for content discovery and trend research workflows where you need to query TikTok by topic on demand. Pair it with the TikTok Video API to enrich any result, or with the TikTok User Profile API to vet the creators behind the top hits.
What is a TikTok Search API?
A TikTok Search API takes a search keyword and returns the videos TikTok surfaces for that query as machine-readable data instead of a web page. Because TikTok does not offer an open public search endpoint, YepAPI provides this capability directly: you POST your keywords to /v1/tiktok/search and receive an array of videos, each with an id, desc, author, and stats block, plus a pagination cursor. It saves you from scraping the search results page yourself and gives you a stable JSON contract you can build dashboards, alerts, and research tools on top of.
Build your own TikTok keyword research tool
With one endpoint you can build a TikTok keyword research tool: accept a topic from a user, call the Search API with cursor and count parameters to gather a few hundred results, then aggregate playCount and diggCount to find what is working. Add a scheduled job that re-runs popular keywords daily and you have a trend tracker. Because YepAPI uses one key across TikTok, YouTube, Instagram, SEO, and AI endpoints, you can cross-reference the same topic on multiple platforms inside a single app.
TikTok Search API pricing — $0.01 per call
Search costs $0.01 per call, where one call returns a page of results (default count of 20) plus a cursor for the next page. There are no monthly minimums and no per-seat fees — you pay only for the searches you run. A deep crawl of 1,000 videos across 50 pages costs about $0.50, which makes systematic trend research affordable even for indie projects.
Sorting and filtering for trend research
Beyond plain keyword matching, the Search API returns engagement metrics on every result so you can sort client-side by views or likes to separate viral content from filler. Use the count parameter to control page size and the cursor to walk results in order. This makes it straightforward to surface the top-performing videos for a niche, monitor a competitor's keyword space, or assemble a leaderboard of trending content for any topic.
Try the TikTok Search API free
Start with $5 in free credit — no credit card required. That covers 500 search calls, enough to prototype a full trend-research tool before you ever pay. Sign up, grab your key, and POST your first keyword in minutes.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Search for TikTok videos by keyword. Supports pagination with cursor-based navigation. Returns video metadata, engagement stats, and author information.
Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/tiktok/search. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More tiktok api endpoints
Search Users
$0.01Search TikTok users by keyword. Find creators and influencers from $0.01/call.
Search Challenges
$0.01Search TikTok challenges and hashtag trends. Trend tracking from $0.01/call.
Search Photos
$0.01Search TikTok photo posts by keyword. Photo content discovery from $0.01/call.