Endpoint

Instagram Hashtag API

Get a hashtag's post count and its top posts, and search for hashtags by keyword.

GET https://api.klupt.io/v1/hashtags/{tag}
GET https://api.klupt.io/v1/hashtags/{tag}/posts
GET https://api.klupt.io/v1/search/hashtags?q=
  • GET /v1/hashtags/{tag}: A hashtag and its post count
  • GET /v1/hashtags/{tag}/posts: Top posts for a hashtag
  • GET /v1/search/hashtags?q=: Find hashtags

Cost: 1 credit per successful call (0.5 from cache). Failed calls and private accounts are free.

Try itsandbox data · no key needed
GET /v1/hashtags/coffee/posts

Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.

Parameters

ParameterInDescription
tagpathHashtag, with or without # (URL-encode # as %23).
qquerysearch: what to look for.
cursorquerypagination.next_cursor from the previous page.
freshquerytrue skips the cache (full price).

Response

{{SAMPLE_hashtag_posts}}

Examples

curl "https://api.klupt.io/v1/hashtags/coffee/posts" -H "X-Api-Key: $KLUPT_API_KEY"
import os, requests
r = requests.get("https://api.klupt.io/v1/hashtags/coffee/posts",
                 headers={"X-Api-Key": os.environ["KLUPT_API_KEY"]}, timeout=30)
r.raise_for_status()
for p in r.json()["data"]:
    print(p["url"], p["counts"]["likes"])
const res = await fetch("https://api.klupt.io/v1/hashtags/coffee/posts", {
  headers: { "X-Api-Key": process.env.KLUPT_API_KEY },
});
const { data: posts } = await res.json();

FAQ

How many posts does an Instagram hashtag have?

Call GET /v1/hashtags/{tag}: post_count is the number Instagram shows.

Updated 2026-11-29 · Markdown · Questions? [email protected]