Instagram Scraper API: Public Profiles, Posts and Comments

Published · 10 min read

An Instagram scraper API takes a handle or a post URL and returns that public data as structured JSON, so you never manage proxies, CAPTCHAs or HTML parsing yourself. If you need your own account's insights, Meta's official API is the right tool. If you need follower counts, posts and comment threads for accounts you do not control, a read-only public data API gives you the same result as a scraper without the breakage. This guide covers what the official API can and cannot read, what DIY scraping really costs to maintain, and a real request against @instagram read on December 4, 2026, with each field labeled exact, rounded or absent.

What an "Instagram scraper API" actually is

The term covers three different kinds of tools that sit behind the same search query:

All of them promise the same core output. Profile data covers bio, follower, following and post counts, the verified flag and the external link. Post data covers caption, likes, comment count, views and timestamp. Comment data covers text, author, likes and replies. Some also offer follower lists, stories, hashtag feeds or transcripts. The differences that matter are elsewhere: how you look up a target, whether results come back live or from a queue, how fresh the numbers are, and how honest the vendor is about exact versus rounded counts.

Sync vs async delivery

Some providers return JSON in the same HTTP response. Others queue a job, hand back a job ID, and deliver results later by download, webhook or cloud storage. Async is fine for bulk datasets. It is awkward when an app, a spreadsheet or an AI agent needs one answer now. SocialLens is synchronous: you call /v1/profile and the profile is in the response body.

Why the official Graph API is not a scraper replacement

Meta's Instagram Platform (still widely called the "Graph API") is built for accounts you own or that have connected to your app. It is not built for reading arbitrary public handles. Here is what that means in practice:

Rate limits are also more complex than many ranking articles claim. Some guides still quote a flat "200 calls per hour per account," which is the older, simpler model. Meta's current documentation describes a Business Use Case formula (4,800 × impressions per 24 hours). It also describes a separate Platform limit of 200 × number of users per hour that applies to Business Discovery and Hashtag Search. Usage is reported in the X-Business-Use-Case-Usage header. Check the formulas on Meta's rate limiting page and the Business Discovery reference before you plan capacity. For a full side-by-side of the two routes, see Instagram Graph API vs SocialLens.

The hidden cost of DIY Instagram scraping

Open-source scrapers and "build your own" tutorials make scraping look like a weekend job. The maintenance story is different:

None of this is a legal verdict. For that question, read Is Social Media Scraping Legal?. The practical point is that a scraper is a product you have to keep alive. A read-only data API moves that upkeep to the vendor and gives you a stable JSON contract.

One real request: @instagram, read December 4, 2026

SocialLens reads only what any visitor sees on a public profile. It never logs in as an account, never posts, and never touches private data. Here is the request:

curl "https://api.sociallens.dev/v1/profile?platform=instagram&username=instagram" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

And here is the response (the long avatar CDN URL is trimmed for space):

{
  "exists": true,
  "username": "instagram",
  "platform": "instagram",
  "nickname": "Instagram",
  "verified": true,
  "private": false,
  "followers": 684224272,
  "is_exact": true,
  "following": 182,
  "likes": null,
  "videos": 8666,
  "bio": "Discover what's new on Instagram 🔎✨",
  "id": "25025320",
  "created_at": null,
  "external_link": "http://help.instagram.com",
  "category": null,
  "fetched_at": "2026-12-04T05:22:59Z",
  "cached": false,
  "source_cached": false,
  "credits": { "source": "paid", "charged": 1, "balance": 9956 }
}

Exact, rounded or absent: field by field

No other guide labels its fields this way. Here is what each one means:

Field Value Status
followers 684,224,272 Exact integer, confirmed by is_exact: true
following 182 Exact
videos 8,666 Exact media count
verified, private true, false Exact flags
id 25025320 Exact numeric account ID
likes null Absent. Instagram does not expose a profile-wide like total, so none is invented.
created_at, category null Absent from this public read, so returned as null rather than guessed
fetched_at 2026-12-04T05:22:59Z Timestamp of the read
cached, source_cached false, false Live read, not a stored copy

The Instagram app shows that follower count as a rounded figure along the lines of "684M." The API returns all nine digits. When a network only exposes a rounded value, the response sets is_exact: false instead of padding the number with fake precision.

The freshness fields answer the "real-time or stored?" question directly. cached: false and source_cached: false mean this number was read live, at the moment shown in fetched_at.

The credits block shows the billing model in action: a successful read cost 1 credit. Lookups of handles that do not exist return "exists": false and cost nothing, and errors cost nothing either.

Posts and comments, same key, same shape

A profile is only one third of what people mean by "Instagram scraping." The same key reads recent posts:

curl "https://api.sociallens.dev/v1/profile-posts?platform=instagram&username=instagram&limit=10" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Each post returns:

To read one post by URL, see Instagram Post Data API.

Comment threads come from /v1/post-comments:

curl "https://api.sociallens.dev/v1/post-comments?platform=instagram&url=POST_URL" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Each comment includes text, author, likes and replies. This is the part Business Discovery cannot give you for other accounts, because it returns comment counts rather than comment text. The cross-network version of this endpoint is covered in Social Media Comments API.

With three endpoints you get a profile, its posts and the conversation under them, all synchronous and all in one schema. That schema is shared across 17 networks: TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub and Spotify.

What the public data does not cover

A trustworthy scraper API page should list what it cannot do. A public read from SocialLens does not give you:

If your project depends on any of these, a public data API is the wrong tool. For your own account, use Meta's API. For audience-quality scoring, look at an influencer analytics platform such as Modash or HypeAuditor.

How Instagram scraper API options compare

Most "best Instagram scraper API" lists are published by a vendor that ranks itself first. That includes ours, so here are criteria instead of a ranking. Pricing changes often, so confirm current rates on each vendor's own site.

Option Type Pricing model Delivery Covers personal public accounts
SocialLens Multi-platform, read-only API Prepaid credits, 1 per successful read, never expire; 250 free Sync JSON, plus MCP server Yes
HikerAPI Dedicated Instagram API Per-request Sync JSON Yes
EnsembleData Multi-platform API Per-call units with daily budgets Sync JSON Yes
Data365 Multi-platform API Subscription tiers Task-based Yes
Apify Scraping platform (actors) Platform fee plus usage Run-based, datasets Yes
Bright Data Proxy and dataset platform Per record or dataset Often async, cloud delivery Yes
Phyllo Creator-permissioned API Contract Sync, after creator connects Only connected creators
Meta Business Discovery Official Free with app Sync No, professional only

Use these questions to choose:

If you are weighing specific vendors, see Apify Alternative and HikerAPI alternative.

Be skeptical of benchmark pages that publish precise scores for dozens of vendors without describing how they tested. "Tested 68 of 210+" is a headline, not a reproducible method. Run your own handles through a free tier instead.

When another option fits better

Using it from an AI agent

The same reads work inside Claude, Cursor or any MCP client. Run npx -y sociallens-mcp with SOCIALLENS_API_KEY set. The server is listed in the official MCP registry as dev.sociallens/sociallens-mcp, and setup is covered at sociallens.dev/agents.

AI assistants can also use the no-key lookup at https://sociallens.dev/lookup?username=instagram&platform=instagram. It returns the same response shape and is rate limited per IP. For a comparison of agent setups, see Best Social Media MCP Server.

FAQ

Is there a free Instagram scraper API? Meta's official API is free but only reads your own accounts and, through Business Discovery, other professional accounts. SocialLens gives 250 free reads with no card. After that, each successful read costs one credit, and failed or not-found calls cost nothing.

Is there a public Instagram API for any account? Not from Meta. Since the Basic Display API shutdown on December 4, 2024, there is no official access to personal accounts. A read-only public data API returns what any visitor sees on any public profile.

Can I read Instagram data without an Instagram account or login? Yes. A public data API reads public profiles, posts and comments without you logging in or connecting an account. It never acts as a user and never sees private accounts.

Is there an open-source Instagram scraper on GitHub? Several exist, but many depend on internal endpoints and GraphQL query_id values that change without warning. Expect to maintain proxies, headers and fixes yourself.

Are the follower counts exact or rounded? On Instagram the read returns the exact integer. For @instagram on December 4, 2026, that was 684,224,272, flagged is_exact: true. Where a source only exposes a rounded figure, the response says so.

Is the data live or cached? The response tells you. The fetched_at, cached and source_cached fields show when the read happened and whether it came from a stored copy.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading