Introducing the Instagram APIRead more →

TikTok Hashtag API. Send a hashtag or its link.

Exact post and view counts. We handle the proxies, blocks and platform changes.

TikTok Hashtag API at a glance

Returns a TikTok hashtag with its exact post and view counts, from its link, its name (with or without the #) or its ID. You also get TikTok's challenge ID, page link, description, picture and banner, and whether it is an advertiser's Branded Hashtag Challenge.

GET /v1/tiktok/hashtag

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 9 typed fields null when unknown
  • url is all it needs, e.g. https://www.tiktok.com/tag/cooking
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 9 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.tiktok.com/tag/cooking
GET /v1/tiktok/hashtagTry in
const params = new URLSearchParams({
  url: "https://www.tiktok.com/tag/cooking",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/hashtag?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/tiktok/hashtagDocs

One schema on 2 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field TikTok doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    A TikTok hashtag page link (tiktok.com/tag/cooking), the hashtag itself with or without the # (cooking, #cooking), or the app's share link of a hashtag by its ID (m.tiktok.com/h5/share/tag/18973.html).

  • Write one parser

    TikTok and Instagram answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, instagram, …).
idstring
Platform-native hashtag ID (TikTok's challenge ID, Threads' tag ID); on platforms whose public pages key a hashtag by its name (Instagram, YouTube, Facebook, X), the name lowercased.
namestring
The tag without #, as the platform shows it (case kept). Threads tags may contain spaces ("book club").
urlstring
Canonical hashtag page URL (for a multi-word Threads tag, its tag search page).
descriptionstring
The hashtag's description as its page shows it; null when it has none.
thumbnail_urlstring
The hashtag's own picture (not one of its posts' images); null when it has none. Platform CDN URLs can expire.
metricsobject
Counts at fetch time; null = hidden or not exposed, 0 = zero.
approximate_fieldsstring[]
JSON paths of values rounded by the platform or parsed from display text ("36M videos": metrics.post_count). [] when all exact.

What teams build with the TikTok Hashtag API.

  • Size a hashtag before a campaign

  • Track a hashtag's views over time

  • Get a hashtag's challenge ID from its name

  • Spot brands' sponsored hashtag challenges

Good to know before you build.

  • Post and view counts are TikTok's exact all-time counts for the hashtag, not a recent window. The TikTok Trending Hashtags API has trending tags with their counts for a period.
  • An all-digit value (2024) is read as a hashtag's name. To look a hashtag up by its numeric ID, send its share link (m.tiktok.com/h5/share/tag/<id>.html).
  • A hashtag TikTok doesn't have, or one it hides (banned tags), returns not_found.
  • thumbnail_url and banner_url are TikTok CDN links that expire.
  • If TikTok's hashtag detail is down, the answer comes from the hashtag's embed page: its counts can lag by a few hours, and is_promoted is null.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Any source1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the TikTok Hashtag API.

More in the API reference.

How much does the TikTok Hashtag API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs