How to run a TikTok search by hashtag
GET request to /v1/tiktok/search/hashtag with your input. You get clean JSON back in seconds for ~14 credits (0.7/result) per call — no OAuth, scraping or platform SDKs. Search TikTok videos by hashtag — video URL, caption, author, and view / like / comment counts for each result, with cursor pagination to page through them all.How to run a TikTok search by hashtag (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the TikTok Search by Hashtag API
Send an authenticated GET request to /v1/tiktok/search/hashtag with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
curl "https://api.captapi.com/v1/tiktok/search/hashtag?q=comedy" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"success": true,
"data": {
"query": "comedy",
"totalReturned": 5,
"hasMore": true,
"nextCursor": 5,
"results": [
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@comedy7092/video/7608140015578746142",
"id": "7608140015578746142",
"caption": null,
"description": null,
"publishedAt": "2026-02-18T09:50:20.000Z",
"durationSeconds": 32,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/oIviaAAABRimBWuVioEEIVaURRRniVLt1xZVY~tplv-tiktokx-origin.image?dr=14575&x-expires=1785405600&x-signature=OKU2GXpXqsBhsKCylTn59HMWbDk%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"author": {
"username": "comedy7092",
"displayName": "Comedy",
"url": "https://www.tiktok.com/@comedy7092",
"followers": 281600,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/f4091ee4a3e184d77536b3493fd444a7~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=64f29985&x-expires=1785405600&x-signature=jG8jorN693uq%2FHXEnFVyfDrBle0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my"
},
"engagement": {
"views": 2200000,
"likes": 100800,
"comments": 792,
"shares": 26700,
"saves": 9426
},
"hashtags": [],
"musicName": "original sound"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@comedy7092/video/7607028622318259487",
"id": "7607028622318259487",
"caption": null,
"description": null,
"publishedAt": "2026-02-15T09:57:37.000Z",
"durationSeconds": 43,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/oUfpTTR6EmDkARPECmFhLE2JEEovIABfZMAVFA~tplv-tiktokx-origin.image?dr=14575&x-expires=1785405600&x-signature=zhrEEs8JX2GlL1em5RJmsg4bu%2F4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"author": {
"username": "comedy7092",
"displayName": "Comedy",
"url": "https://www.tiktok.com/@comedy7092",
"followers": 281600,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/f4091ee4a3e184d77536b3493fd444a7~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=64f29985&x-expires=1785405600&x-signature=jG8jorN693uq%2FHXEnFVyfDrBle0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my"
},
"engagement": {
"views": 4700000,
"likes": 156100,
"comments": 1140,
"shares": 4276,
"saves": 12400
},
"hashtags": [],
"musicName": "original sound"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@comedyfunj/video/7295949816234839338",
"id": "7295949816234839338",
"caption": "#funnyvideos #funny #indiafunny #trendingfunny #videofunny #sitcomfunny #funnysitcom",
"description": "#funnyvideos #funny #indiafunny #trendingfunny #videofunny #sitcomfunny #funnysitcom",
"publishedAt": "2023-10-31T02:51:39.000Z",
"durationSeconds": 79,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/e93a8ce787c04b99ad162ecaf71e60ac_1698720701~tplv-tiktokx-origin.image?dr=14575&x-expires=1785405600&x-signature=f6xmw0QPK0JnNx5mu6jQGEa%2FZ24%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"author": {
"username": "comedyfunj",
"displayName": "Comedy fun",
"url": "https://www.tiktok.com/@comedyfunj",
"followers": 61200,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/1bf62ed982f71c262c52af4641c712e8~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=d174f855&x-expires=1785405600&x-signature=xBcGo18vBUqAViuVBz6dR69XDuE%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my"
},
"engagement": {
"views": 11200,
"likes": 229,
"comments": 3,
"shares": 14,
"saves": 12
},
"hashtags": [
"funnyvideos",
"funny",
"indiafunny",
"trendingfunny",
"videofunny",
"sitcomfunny",
"funnysitcom"
],
"musicName": "nhạc nền"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@6163864215898comedy/video/6989978097533603073",
"id": "6989978097533603073",
"caption": "لايك _كومنت_ فولو _اكسبلور❤️❤️",
"description": "لايك _كومنت_ فولو _اكسبلور❤️❤️",
"publishedAt": "2021-07-28T14:05:00.000Z",
"durationSeconds": 10,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/dcd96fd241734c0a994710e4fbded915~tplv-tiktokx-origin.image?dr=14575&x-expires=1785405600&x-signature=OS%2BgEHBepdyW3q0pFto9MR%2BvfKI%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"author": {
"username": "6163864215898comedy",
"displayName": "comedy😂",
"url": "https://www.tiktok.com/@6163864215898comedy",
"followers": 207,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/0c373df8f9081b48a1f838534a9839b3~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=0fe3b20c&x-expires=1785405600&x-signature=6tKIUsvXDOPENZdUz5zHsAW05nk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my"
},
"engagement": {
"views": 22400,
"likes": 122,
"comments": 0,
"shares": 1,
"saves": 9
},
"hashtags": [],
"musicName": "Oh No"
},
{
"platform": "tiktok",
"url": "https://www.tiktok.com/@comedyme3/video/7650141917530918151",
"id": "7650141917530918151",
"caption": null,
"description": null,
"publishedAt": "2026-06-11T14:17:51.000Z",
"durationSeconds": 29,
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/o8rDBeSfGGwoLibRfqIwwbI5qFQIlvsAeAG33A~tplv-tiktokx-origin.image?dr=14575&x-expires=1785405600&x-signature=GSsmcd2SoQYe2K8AdHgoIYHjf7M%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"author": {
"username": "comedyme3",
"displayName": "yethro lhamo",
"url": "https://www.tiktok.com/@comedyme3",
"followers": 12000,
"verified": false,
"profileImage": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/89ff2eefdc81e60070085bba1981ab6c~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=4209ccea&x-expires=1785405600&x-signature=kwFJWQjXhwCzLGMmgZY7RMqJ2rk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my"
},
"engagement": {
"views": 2265,
"likes": 159,
"comments": 7,
"shares": 4,
"saves": 4
},
"hashtags": [],
"musicName": "original sound - Don🤣"
}
]
}
}Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Hashtag to search for, with or without the # (min 2 characters). |
| limit | integer | No | Max items to return (default 20, max 100). Billed per result. |
| cursor | integer | No | Pagination offset. Leave at 0 (or omit) for the first page; then pass the nextCursor value returned in the previous response. A null nextCursor means the end of the results. |
| region | string | No | Two-letter ISO 3166-1 country our request is sent from. Default US. Does not filter results by country. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Frequently asked questions
What does the TikTok Search by Hashtag API do?
The TikTok Search by Hashtag API lets you search and return matching results from a public TikTok query using one GET request to /v1/tiktok/search/hashtag. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the TikTok Search by Hashtag API cost?
At the default limit this endpoint costs 14 credits (0.7 per result). Billing scales with how many results you request. 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 Search by Hashtag 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.
Ready to run a TikTok search by hashtag?
Start free with 100 credits — no credit card required.
Get your free API key