Instagram Scraper API: Public Profiles, Posts and Comments
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:
- Dedicated Instagram APIs. These are single-network vendors (HikerAPI is one) that expose many Instagram endpoints.
- Multi-platform social data APIs. These use one schema across many networks. Examples include SocialLens, EnsembleData and Data365.
- General scraping platforms and proxy networks. These include Apify actors and Bright Data datasets. You get flexibility, but you assemble more of the pipeline yourself.
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:
- Personal accounts are out. The Basic Display API was shut down on December 4, 2024. Since then there has been no official API access to personal accounts. Instagram API with Instagram Login replaced it for professional accounts.
- Two login setups. Instagram Login runs on graph.instagram.com and needs no Facebook Page. Facebook Login runs on graph.facebook.com and does need a Page.
- Business Discovery is the only way to read other accounts, and it has real edges:
- It only covers Business and Creator accounts.
- It does not return data for age-gated accounts.
- It only works with Facebook Login, so you need a linked Page.
- It requires permissions such as
instagram_basic,instagram_manage_insightsandpages_read_engagement. - It returns comment counts on other accounts' media, not comment text.
- It returns no stories and no follower lists.
- Hashtag Search is capped at 30 unique hashtags per 7 days.
- App Review and Business Verification are needed before you can serve accounts you do not manage.
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:
- Hardcoded internals break. Guides that call Instagram's internal
web_profile_infoendpoint or GraphQLquery_idvalues depend on identifiers and headers that change without notice. When they change, your pipeline returns errors or, worse, silently wrong data. - Evasion is an arms race. Tutorials that tell you to fake mobile user agents, rotate residential proxies and drive headless browsers are teaching you to fight detection. That fight never ends, and every round costs engineering time.
- Libraries go stale. Python packages and private-API wrappers on GitHub are often abandoned once the underlying endpoints move.
- Some "guides" are ads. At least one popular GitHub scraping guide is really an affiliate post with a discount code. Read tutorials with that in mind.
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:
urlcaptionpublished_atlikescommentsviews, for video
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:
- Private accounts. These return
private: true, with no posts or comments behind them. No legitimate vendor can read private accounts. - Follower and following lists. You get the counts, not the list of individual accounts.
- Stories and highlights.
- Hashtag or location feeds. Instagram-specific hashtag and place browsing is not covered.
- Owner-only Insights such as reach, impressions and saves. Only the account owner can see these, through Meta's API.
- Fraud or fake-follower scoring. You get raw public numbers, not a quality verdict.
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:
- Do you need data live, in the same response?
- Are counts exact, and does the API say so?
- Do failed calls and not-found handles cost money?
- Will you need a second network next quarter?
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
- Your own account's analytics: use Meta's official API. It is the only source for private Insights.
- Millions of Instagram records a month for a one-off dataset: an enterprise dataset vendor with volume contracts may beat pay-as-you-go.
- Deep Instagram-only features such as stories or follower lists: a dedicated Instagram vendor is the better fit.
- Profiles, posts and comments across Instagram plus other networks, returned live and in one shape: that is the case SocialLens is built for.
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.
Related guides
- Social Media APIs Compared: Official APIs vs One Public Data API
- Best Instagram Data API in 2026: Profiles, Posts and Comments
- Facebook Page Scraper API: Read Public Page Profiles and Posts
- Instagram Comments API: Pull and Analyze Public Comments
- X (Twitter) Profile Scraper API: Read Public Profiles and Posts
- Instagram Post Data API: Read Likes, Comments and Caption by URL
- Instagram Scraper for Claude (and Any AI Assistant)