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 ~7 credits (0.7/result) per call — no OAuth, scraping or platform SDKs. Videos from TikTok's /tag/{name} challenge feed — not keyword or username search. Cursor + hasMore.

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. 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=skincare" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

What the response looks like

{
  "success": true,
  "data": {
    "hashtag": "comedy",
    "totalReturned": 2,
    "hasMore": true,
    "nextCursor": 2,
    "results": [
      {
        "platform": "tiktok",
        "url": "https://www.tiktok.com/@comedy7092/video/7608140015578746142",
        "id": "7608140015578746142",
        "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,
          "viewsIsApproximate": true,
          "likesIsApproximate": true,
          "commentsIsApproximate": false,
          "sharesIsApproximate": true,
          "savesIsApproximate": false
        },
        "hashtags": [],
        "musicName": "original sound"
      },
      {
        "platform": "tiktok",
        "url": "https://www.tiktok.com/@comedy7092/video/7607028622318259487",
        "id": "7607028622318259487",
        "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,
          "viewsIsApproximate": true,
          "likesIsApproximate": true,
          "commentsIsApproximate": false,
          "sharesIsApproximate": false,
          "savesIsApproximate": true
        },
        "hashtags": [],
        "musicName": "original sound"
      }
    ]
  }
}

Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.

Request parameters

NameTypeRequiredDescription
qstring YesSingle hashtag token for the /tag/{name} challenge feed, with or without # (min 2). Spaces are 400 — use /v1/tiktok/top-search for a keyword query.
limitintegerNoMax items to return (default 10, 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 code. Default US. Accepted for compatibility; does not filter results by country.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

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 7 credits (0.7 per result). Billing scales with how many results you request. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. 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 access, 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 cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. 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