TikTok
GET /v1/tiktok/search/hashtag

TikTok Search by Hashtag API

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.

14 credits per request (0.7 per result)
TL;DR
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. The TikTok Search by Hashtag API (TikTok) is a single authenticated GET request to /v1/tiktok/search/hashtag that responds with clean JSON, costs 14 credits, and is cached for 24 hours (repeat calls are free). Start with 100 free credits — no credit card.

What is the TikTok Search by Hashtag API?

Pass a hashtag (with or without the #) and the TikTok Search by Hashtag API returns the videos posted under that tag as clean, structured JSON. Each result includes the video URL, caption, publish date, duration, thumbnail, the author's profile, and full engagement counts — views, likes, comments, shares, and saves — plus the hashtags and sound used. Need more than the first page? Pass the nextCursor value from the previous response to keep paging, and use hasMore to know when you've reached the end. An optional region parameter sets which country the scraping proxy exits from (it does not filter results by country). Use it to track a campaign or branded hashtag, discover trending content in a niche, or build a themed content feed. No TikTok login and no scraping setup on your side. Billed per result — about 0.7 credits each.

What you get

  • Public videos posted under your hashtag
  • Video URL, caption, thumbnail, duration, and publish date
  • Author profile plus view / like / comment / share / save counts
  • Cursor pagination (nextCursor + hasMore) through every result

Try it

Fill in the parameters below and copy a ready-to-run request in your language of choice.

Parameters

curl "https://api.captapi.com/v1/tiktok/search/hashtag?q=skincare" \
  -H "Authorization: Bearer capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "query": "skincare",
    "totalReturned": 2,
    "hasMore": true,
    "nextCursor": 20,
    "results": [
      {
        "platform": "tiktok",
        "url": "https://www.tiktok.com/@kiyokobeauty/video/7653529024362237205",
        "id": "7653529024362237205",
        "caption": "Not all skincare ingredients play well together 👀 #kbeauty #serum #serumviral #retinol",
        "description": "Not all skincare ingredients play well together 👀 #kbeauty #serum #serumviral #retinol",
        "publishedAt": "2026-06-20T17:21:36.000Z",
        "durationSeconds": 46,
        "thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o84EbWFABZ1GTe6fAAAjD9egIoDLtmIUAIgQoz~tplv-tiktokx-origin.image?dr=9636&x-expires=1783267200&x-signature=X5LtS2EYdm6766uGn77A1pxHweg%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
        "videoUrl": null,
        "author": {
          "username": "kiyokobeauty",
          "displayName": "Kiyoko Beauty",
          "url": "https://www.tiktok.com/@kiyokobeauty",
          "followers": 197400,
          "verified": false,
          "profileImage": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/a5295edb170033395d63b8582a0c2b18~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=24d9f8a7&x-expires=1783267200&x-signature=kIZECYZ2vIovzwy5wUSklbelCkg%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
        },
        "engagement": {
          "views": 207700,
          "likes": 14100,
          "comments": 96,
          "shares": 904,
          "saves": 7196
        },
        "hashtags": [
          "kbeauty",
          "serum",
          "serumviral",
          "retinol"
        ],
        "musicName": "original sound"
      },
      {
        "platform": "tiktok",
        "url": "https://www.tiktok.com/@itsedonna/video/7647568358941953301",
        "id": "7647568358941953301",
        "caption": "My skin after 7 days of targeting dark spots  #inaweek #glassskin #darkspots #skintransformation #tipsskincare @Redence",
        "description": "My skin after 7 days of targeting dark spots  #inaweek #glassskin #darkspots #skintransformation #tipsskincare @Redence",
        "publishedAt": "2026-06-04T15:51:11.000Z",
        "durationSeconds": 19,
        "thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oIRC7FB3A4tfAfInuqdIAIUhNAEEIATNDZnXEg~tplv-tiktokx-origin.image?dr=9636&x-expires=1783267200&x-signature=W2r3YLMUxz1dtIMVCxkWs97SdAw%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
        "videoUrl": null,
        "author": {
          "username": "itsedonna",
          "displayName": "Itsedonna | Skincare",
          "url": "https://www.tiktok.com/@itsedonna",
          "followers": 163600,
          "verified": false,
          "profileImage": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/cc0a588649800a2c61ca8dba4a383f3f~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=8e5cdd97&x-expires=1783267200&x-signature=TrRI44hlANqwthHul0wDsh7w8lM%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5"
        },
        "engagement": {
          "views": 1300000,
          "likes": 40600,
          "comments": 269,
          "shares": 4245,
          "saves": 17070
        },
        "hashtags": [
          "inaweek",
          "glassskin",
          "darkspots",
          "skintransformation",
          "tipsskincare"
        ],
        "musicName": "Originalton"
      }
    ]
  }
}

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.
  • hasMoreWhether more results are available beyond this page. When true, pass nextCursor to fetch the next page.
  • nextCursorCursor to pass for the next page of results.

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.
  • videoUrlDirect video file URL (CDN link); may be null when a download URL isn't exposed — use the platform's download endpoint for the file.
  • 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

NameTypeRequiredDescription
qstringYesHashtag to search for, with or without the # (min 2 characters).
limitintegerNoMax items to return (default 20, max 100). Billed per result.
cursorintegerNoPagination 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.
regionstringNoTwo-letter ISO 3166-1 country the scraping proxy is routed through. Default US. This only sets the proxy location — it does not filter results by country.
cachebooleanNoSet 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 14 credits — billed per result, so the exact amount scales with how many items you request. Repeat calls for the same request are served from cache for free (metrics refresh within ~1 hour).

Using an AI agent? This endpoint is the MCP tool tiktok_search_by_hashtag via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/tiktok/search/hashtag and 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 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 scraping setup required.

How many credits does the TikTok Search by Hashtag API cost?+

Each successful call costs 14 credits. Responses are cached for 24 hours, and cached results cost 0 credits. 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, and Rumble. 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, automatic retries, and a shared 24-hour cache. Use it for RAG pipelines, analytics, monitoring, and content automation.

More TikTok APIs

Ready to use the TikTok Search by Hashtag API?

Sign up, grab your key, and make your first call in 60 seconds.