Introducing the Instagram APIRead more →

TikTok Hashtag Posts API. Top videos and photo posts, page by page.

Top videos and photo posts under a hashtag. We handle the proxies, blocks and platform changes.

TikTok Hashtag Posts API at a glance

Returns the top public videos and photo posts under a TikTok hashtag, in TikTok's own order, from the hashtag's link, its name or its share link. Each post comes with its caption, hashtags, author username, play count, cover and a video link that plays without TikTok's cookies. A hashtag TikTok doesn't have returns not_found.

GET /v1/tiktok/hashtag_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 10 top videos and photo posts per page, TikTok's ranking of the hashtag's top posts (the order its embed shows)
  • url is all it needs, e.g. https://www.tiktok.com/tag/cooking

Send one request. Get up to 10 top videos and photo posts 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/hashtag_postsTry in
const params = new URLSearchParams({
  url: "https://www.tiktok.com/tag/cooking",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/hashtag_posts?${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, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/tiktok/hashtag_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 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, Instagram, Facebook and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the TikTok Hashtag Posts API.

  • See which posts lead a hashtag right now

  • Find creators posting under a campaign hashtag

  • Monitor a branded or trending hashtag's top posts

Good to know before you build.

  • Logged out, TikTok shows a hashtag's posts only in its embed: one page of its top posts, so the page ends at platform_limit. TikTok's own hashtag page asks visitors to sign in to see more.
  • TikTok's US servers fail some real hashtags, popular ones included, so those are read from its servers in Asia, whose last few top posts can differ. A few fail there too: those return upstream_error rather than an empty list, and aren't charged. The TikTok Hashtag API still returns their counts.
  • Posts come in TikTok's order for the hashtag, not by date: since and until filter the page.
  • published_at is when the post was uploaded, read from its ID, and TikTok rounds play counts: both are listed in approximate_fields.
  • Each post names its author by username only, and has no like, comment or share counts: the TikTok Post API returns every field for a post's url.
  • A hashtag TikTok doesn't have, or one it hides (banned tags), returns not_found.

1 credit per page. Failed requests are free.

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

SourcePrice per successful pagePer 1,000 pages
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 Posts API.

More in the API reference.

How much does the TikTok Hashtag Posts API cost?
A page of up to 10 top videos and photo posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

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