Overview
Instagram data over a REST API, billed per successful call.
herascrape reads Instagram's public data through 39 REST endpoints. One call fetches one Instagram page. Responses are Instagram's own JSON, passed through untouched.
Start here
Quickstart
A key, a call, and a paging loop.
Migrating from HikerAPI
Path-by-path translation, plus a prompt that rewrites your client.
API reference
Every endpoint, with a playground.
Pricing
$0.0004 per call. Failed calls are free.
The basics
Base URL is https://api.herascrape.com. Every endpoint is a GET.
Authentication is the X-Api-Key header. Keys come from the
dashboard. See
Authentication.
Responses are Instagram's own JSON, in full. Fields are not renamed or trimmed. Every reference page shows a real example under What comes back.
So the shape follows Instagram, not us. Most endpoints read from Instagram's REST API and look alike. A few read from a different internal source and look different: one post's data can arrive split across two parts of a single response, and the token that turns the page is not always called the same thing. Nothing is missing when that happens — but reading one key and assuming the rest matches the last endpoint will quietly lose data. Skim the endpoint's own What comes back before you map it, and treat that page as authoritative over any pattern you inferred elsewhere.
Every response has the same envelope. A success is
{"status": "success", "data": ...} and a failure is
{"status": ..., "error_code": ..., "detail": ...}; see
Errors.
Most lists paginate on one opaque cursor. Their data has the same shape:
{
"status": "success",
"data": {
"items": [],
"next_cursor": "eyJtYXhfaWQiOiIyNSJ9",
"has_more": true
}
}Pass next_cursor back as ?cursor= and stop when has_more is false.
A few endpoints put Instagram's own list shape in data instead and name their
own paging token; each says so on its page. See
Pagination.
Limits
These are Instagram's own limits, not ours — paging harder does not get past them.
- Rate. Up to 50 requests per second per key.
- Follower / following pages. Instagram fixes the page at ~25 and the size is not tunable. For chronological (newest-first) follower/following access, contact us on Telegram or at support@herascrape.com.
- Account search depth. Instagram caps
/search/usersand/search/topat roughly 40 results. - Hidden follower lists. A public account can hide its follower/following
list; the response is then an empty page with
list_hidden: true. (A private account is a403, not an empty page.) - Counts vs. retrievable.
comment_count/child_comment_count/like_countinclude items Instagram filters (deleted, hidden, spam) and serves to no one, so a full walk returns fewer. For a post's total like count, read the post'slike_countrather than counting likers.
Endpoint groups
| Group | Endpoints | What it covers |
|---|---|---|
| Users | 11 | Profiles, followers, posts, reels, stories, highlights |
| Posts | 3 | A post, its comments, its likers |
| Comments | 2 | Threaded replies and comment likers |
| Search | 5 | Users, hashtags, audio, places, blended top |
| Hashtags | 4 | Hashtag info, top, recent, reels |
| Locations | 3 | Location info, top, recent |
| Stories and highlights | 2 | A story by media pk, a highlight's media |
| Audio | 3 | Track info, reels using it, trending |
| Utility | 4 | pk⇄code, oEmbed, balance, health |
Two surfaces, one API
These pages are the reference. The API also serves a generated OpenAPI (Swagger) UI at api.herascrape.com/docs — the same endpoints with no prose, useful for poking the live service.