TikTok · Guide

How to run a TikTok search by hashtag

TL;DR
To run a TikTok search by hashtag, sign up for a free Captapi key, then send one GET request to /v1/tiktok/search/hashtag with your input. You get clean JSON back in seconds for 14 credits 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. 1

    Get a free API key

    Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.

  2. 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. 3

    Read the JSON response

    Parse the clean JSON response. Results are cached for 24 hours, so repeat calls are free.

Code example

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

What the response looks like

{
  "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 (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.

Request parameters

NameTypeRequiredDescription
qstring YesHashtag 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.

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.

Ready to run a TikTok search by hashtag?

Start free with 100 credits — no credit card required.

Get your free API key