Sources › Social media › Instagram › Hashtag Posts

Instagram Hashtag Posts API

Recent public posts for an Instagram hashtag (shortcode, caption, image, author), ~8 per page, page 1-10.

InstagramGET /hashtag-postsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:instagram-scraper/hashtag-posts/:name

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.

Parameters

NameTypeInRequiredDescription
namestringpathYesNama hashtag, dengan atau tanpa # Example: tniad
pagenumberqueryNoNomor halaman. Default 1, max 10. Per page ±8–12 post

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:instagram-scraper/hashtag-posts/tniad?page=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:instagram-scraper/hashtag-posts/tniad?page=", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:instagram-scraper/hashtag-posts/tniad",
    params={"page":""},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Frequently asked questions

How do I call the Instagram Hashtag Posts API?

Send a GET request to https://api.zapi.ink/v1/social-media:instagram-scraper/hashtag-posts/tniad with your Zapi key in the x-api-key header. Parameters — required: name; optional: page. The response is JSON in the { project, data, timestamp } envelope.

What does the Instagram Hashtag Posts API return?

Recent public posts for an Instagram hashtag (shortcode, caption, image, author), ~8 per page, page 1-10.

Is the Instagram Hashtag Posts API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Instagram Hashtag Posts API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "instagram-scraper" and endpoint "hashtag-posts".

What other Instagram API endpoints are there?

It has 8 endpoints. Besides Hashtag Posts: Get User Profile, Get User Posts, Get Detail Post, Get Post Comments, Get User Stories, Get User Reels, and 1 more.