herascrape

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

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/users and /search/top at 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 a 403, not an empty page.)
  • Counts vs. retrievable. comment_count / child_comment_count / like_count include 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's like_count rather than counting likers.

Endpoint groups

GroupEndpointsWhat it covers
Users11Profiles, followers, posts, reels, stories, highlights
Posts3A post, its comments, its likers
Comments2Threaded replies and comment likers
Search5Users, hashtags, audio, places, blended top
Hashtags4Hashtag info, top, recent, reels
Locations3Location info, top, recent
Stories and highlights2A story by media pk, a highlight's media
Audio3Track info, reels using it, trending
Utility4pk⇄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.

On this page