TikTok Top Search API
Search TikTok's top mixed results for a keyword — videos and related hits ranked the way TikTok's search ranks them.
GET request to /v1/tiktok/top-search that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the TikTok Top Search API?
Pass a keyword and get TikTok's top mixed search results as structured JSON — the same style of ranked hits you see in TikTok search, not a single content type only. Each result includes the fields TikTok exposes for that hit (URL, caption or title, author, engagement when available). Flat 2 credits per call.
What you get
- Ranked, structured result list
- Title, URL, author, and thumbnail per result when available
- Engagement metrics where the platform exposes them
- Configurable result limit
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/tiktok/top-search?q=nasa" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"query": "nasa",
"totalReturned": 5,
"results": [
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@latinus_us/video/7667344380310670599",
"id": "7667344380310670599",
"caption": "Video obtenido por la NASA muestra la verdadera forma de la Tierra según su gravedad. Para que las diferencias sean visibles, fueron exageradas 10 mil veces y se elaboró con información recopilada por 19 satélites durante 15 años. #Latinus #InformaciónParaTi",
"description": "Video obtenido por la NASA muestra la verdadera forma de la Tierra según su gravedad. Para que las diferencias sean visibles, fueron exageradas 10 mil veces y se elaboró con información recopilada por 19 satélites durante 15 años. #Latinus #InformaciónParaTi",
"publishedAt": "2026-07-27T22:52:21.000Z",
"durationSeconds": 47,
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/owknk3giAYK0AIIE0Bi1A4BBwVUmAgNJvfMB7x~tplv-tiktokx-origin.image?dr=9636&x-expires=1785517200&x-signature=bnHCVenSGV0TB7nhxBq8lfWKVe0%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"author": {
"username": "latinus_us",
"displayName": "Latinus",
"url": "https://www.tiktok.com/@latinus_us",
"followers": 22700000,
"verified": true,
"profileImage": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/9b1bc4bbfedb3bd917a27ff590234ca0~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=97b8bbe5&x-expires=1785517200&x-signature=1ZGx4llDfPF1ly3oJa0XsXinyoY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
},
"engagement": {
"views": 8400000,
"likes": 810400,
"comments": 19000,
"shares": 145400,
"saves": 65900
},
"hashtags": [
"latinus",
"informaciónparati",
"Latinus",
"InformaciónParaTi"
],
"musicName": "original sound - Latinus"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@missionartemisnasa/video/7628631080752450849",
"id": "7628631080752450849",
"caption": "ARTEMIS II Edit #nasa #artemis2 #fy #fyp #fyptt",
"description": "ARTEMIS II Edit #nasa #artemis2 #fy #fyp #fyptt",
"publishedAt": "2026-04-14T15:04:52.000Z",
"durationSeconds": 13,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/oAmD8QOCEOzBQ5FQpRIAuVlfpcnRBWE3eIDjrC~tplv-tiktokx-origin.image?dr=9636&x-expires=1785517200&x-signature=JK5MGls0OQFL2ENmqkVKSBo3ajU%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"author": {
"username": "missionartemisnasa",
"displayName": "MissionArtemis",
"url": "https://www.tiktok.com/@missionartemisnasa",
"followers": 69,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/fbdd74ed519afa76388646251f24ded1~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=6f41b39b&x-expires=1785517200&x-signature=vpJCW3%2B4khpTq%2FDSdGTddKAFRPk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
},
"engagement": {
"views": 14800,
"likes": 375,
"comments": 9,
"shares": 11,
"saves": 150
},
"hashtags": [
"nasa",
"artemis2",
"fy",
"fyp",
"fyptt"
],
"musicName": "sonido original"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@nasa/video/7665775952454061326",
"id": "7665775952454061326",
"caption": "Mission accomplished. On April 10, 2026, the Artemis II crew safely returned to Earth after a 10-day journey around the Moon, splashing down off the California coast. 🌎",
"description": "Mission accomplished. On April 10, 2026, the Artemis II crew safely returned to Earth after a 10-day journey around the Moon, splashing down off the California coast. 🌎",
"publishedAt": "2026-07-23T17:26:20.000Z",
"durationSeconds": 36,
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/ok5iHxgYfAI772ZXADRqcrBpTEDSFEK3fk8IY1~tplv-tiktokx-origin.image?dr=9636&x-expires=1785517200&x-signature=9L4vadOW5auReX39p9TTdHmWw%2Fw%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"author": {
"username": "nasa",
"displayName": "NASA",
"url": "https://www.tiktok.com/@nasa",
"followers": 305800,
"verified": true,
"profileImage": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=573cc2c1&x-expires=1785517200&x-signature=VsELKHyBLl0thL%2FtAwlBnrOsPzQ%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
},
"engagement": {
"views": 127200,
"likes": 5846,
"comments": 139,
"shares": 61,
"saves": 539
},
"musicName": "original sound"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@astrokobi/video/7667293385178270998",
"id": "7667293385178270998",
"caption": "China’s Rocket just got STRUCK BY LIGHTNING #space #nasa #china #rocket #astrokobi",
"description": "China’s Rocket just got STRUCK BY LIGHTNING #space #nasa #china #rocket #astrokobi",
"publishedAt": "2026-07-27T19:34:20.000Z",
"durationSeconds": 68,
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-no1a-p-0037-no/oATsrBh419CRTg1nA6iiwyBUCMAIR4cIIVv4ye~tplv-tiktokx-dmt-logom:tos-no1a-i-0068-no/o8BiksDrEh0CSzMBWntBfCLIldAiAA9wA5G1I4.image?dr=9634&x-expires=1785517200&x-signature=xnwkLDp1%2FMiV5%2FZEL%2Bu5DMqGS0c%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"author": {
"username": "astrokobi",
"displayName": "AstroKobi",
"url": "https://www.tiktok.com/@astrokobi",
"followers": 3100000,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/975e8c09236aff1c5b7d93b89c178a37~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=340fcfa3&x-expires=1785517200&x-signature=1YbxI2murKyQ6YRmBU0KewhMWL4%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
},
"engagement": {
"views": 228900,
"likes": 42900,
"comments": 283,
"shares": 1104,
"saves": 3558
},
"hashtags": [
"space",
"nasa",
"china",
"rocket",
"astrokobi"
],
"musicName": "Everything In Its Right Place"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@nasa/video/7665725247332601118",
"id": "7665725247332601118",
"caption": "You’re listening to one of the sounds the Artemis II crew heard on the eve of splashing down on Earth. That steady knocking isn’t a problem, it’s Orion’s reentry thrusters firing in short, precise bursts to keep the spacecraft on the correct path at nearly 25,000 mph through Earth’s atmosphere.",
"description": "You’re listening to one of the sounds the Artemis II crew heard on the eve of splashing down on Earth. That steady knocking isn’t a problem, it’s Orion’s reentry thrusters firing in short, precise bursts to keep the spacecraft on the correct path at nearly 25,000 mph through Earth’s atmosphere.",
"publishedAt": "2026-07-23T14:09:41.000Z",
"durationSeconds": 16,
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/os18qBiPEAUIRAiIwiKI0KdBTMCAAWfhkBIBiI~tplv-tiktokx-origin.image?dr=9636&x-expires=1785517200&x-signature=7Ebgeeo8FYL58CUHPtyylYnVMPY%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"author": {
"username": "nasa",
"displayName": "NASA",
"url": "https://www.tiktok.com/@nasa",
"followers": 305800,
"verified": true,
"profileImage": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=573cc2c1&x-expires=1785517200&x-signature=VsELKHyBLl0thL%2FtAwlBnrOsPzQ%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
},
"engagement": {
"views": 5900000,
"likes": 367800,
"comments": 3883,
"shares": 6882,
"saves": 25400
},
"musicName": "original sound"
}
]
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Top-level fields
queryThe search query you sent.totalReturnedNumber of items returned in this response.
Results
Each item in results contains:
platformPlatform identifier (e.g. youtube, instagram).urlCanonical URL of the item.idStable platform ID for the item.captionPost caption.descriptionDescription text.publishedAtPublish date (ISO 8601).durationSecondsLength in seconds.thumbnailUrlThumbnail image URL.authorObject with username, displayName, url, followers, verified, profileImage.engagementObject with views, likes, comments, shares, saves.hashtagsHashtags extracted from the text.musicNameName of the soundtrack used.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search query or keywords (min 2 characters). |
| limit | integer | No | Max items to return (default 20, max 200). Billed per result. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.
How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/tiktok/top-searchand parse the JSON response.
Use cases
Trend Discovery
Find trending content by keyword or hashtag.
Content Sourcing
Build feeds and playlists programmatically.
Monitoring
Track topics, brands, and competitors.
Research
Sample large sets of content for analysis.
Frequently asked questions
What does the TikTok Top Search API do?+
The TikTok Top Search API lets you search and return matching results from a public TikTok query using one GET request to /v1/tiktok/top-search. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the TikTok Top Search API cost?+
Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.
Do I need a TikTok API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the TikTok Top Search API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
More TikTok APIs
Ready to use the TikTok Top Search API?
Sign up, grab your key, and make your first call in 60 seconds.