Handles API

Guide

Instagram scraper: getting public profile data in 2026

An Instagram scraper reads public profile data such as followers, post counts and engagement from Instagram's web pages. Logged out, you see little before a login wall, and scrapers that log in risk a restricted account and break when Instagram changes. A data API returns followers, engagement rate and content mix as JSON from a catalog of about 53K accounts, with no scraper to run.

Updated by the Handles API team

What Instagram shows a logged-out visitor

Instagram shows a logged-out visitor only part of a public profile, and it can change what that part is at any time. You can often open a public profile and see headline details such as the name, the bio and some counts. Instagram regularly interrupts with a prompt to log in, especially when you keep browsing.

Deeper views are generally behind a session: scrolling far back through a feed, reading full comment threads, and anything about who follows whom. The exact line is not documented and has moved before, so treat anything you observe as a snapshot, not a contract. Private accounts show nothing beyond the fact that they are private.

This matters because every scraping method below inherits the same limit. A scraper cannot read more than the page gives it, and a page that is open today can sit behind a login next month.

Four ways to get Instagram profile data

There are four realistic routes to public Instagram profile data: an open-source tool, a headless browser, the official Instagram API, and a data API. They trade effort, risk and coverage against each other.

MethodWhat you needWhat you getWhere it breaks
Open-source tool (instaloader)Python, often a login with your own Instagram accountProfile fields, posts and media you point it atAccounts used this way can be restricted. Rate limits and page changes need constant fixes
Headless browser (Playwright, Puppeteer)A browser fleet, proxies, parsing codeWhatever the rendered page showsLogin walls, bot detection, layout changes. You own the repairs and the infrastructure
Instagram API, Business DiscoveryA Meta app, a professional account of your own, often App Reviewfollowers_count, media_count and similar for other professional accountsPersonal accounts are not readable. Review and verification take time
Data API (Handles API)An API key, no Instagram loginCatalog records for about 53K public accounts, engagement, content mix, cadenceNot live, and the daily series stopped on 4 November 2026. Not every account is in the catalog
As of November 2026. Open-source tools are named neutrally; none is endorsed here.

Open-source tools

Instaloader is a widely used open-source Python tool. For much of what it does it expects you to log in with your own Instagram account, and Instagram can restrict an account that looks automated, so run it with an account you can afford to lose. It is a good fit for a one-off pull of a few profiles, and a poor foundation for a product that has to work every day.

Headless browsers

Playwright and Puppeteer drive a real browser, so they see what a person would see. That also means they hit the same login wall, and Instagram can recognize browser automation. You end up maintaining proxies, session handling and selectors, which is the real cost of this route.

The official Instagram API

Business Discovery is the one official route that reads other accounts, and it covers professional accounts only. It needs a Meta app and review before you can read accounts you do not own. We compare it with a public data API in the Instagram Graph API comparison.

Why Instagram scrapers break

Instagram scrapers break because the thing they depend on is not a public interface and is not promised to stay the same. Four causes account for most failures.

  • Login walls. A page that returned data last week asks for a login this week, and the scraper gets a redirect or an empty shell.
  • Rate limits. Requests from one address or one account are throttled or blocked once the pattern looks automated. More requests do not help; they make it worse.
  • Account restrictions. A logged-in scraper puts a real account at risk. When that account is restricted, the whole pipeline stops, not one request.
  • Structure changes. Instagram changes its markup and its internal responses without notice. Selectors and field paths that parsed yesterday return nothing today.

None of these is a bug in your code, which is why they come back. A scraper is a standing maintenance job, and the time it costs rarely shows up in the original estimate.

What Instagram's terms say

Instagram's terms prohibit accessing or collecting information in unauthorized ways. The Instagram Terms of Use say: "You can't attempt to create accounts or access or collect information in unauthorized ways." Meta's Automated Data Collection Terms go further: "You may not access or collect data from our Products using automated means (without our prior permission)."

Courts have looked at scraping of public pages in different ways, and a breach of terms is a separate question from computer-crime law. In 2024 a US district court held that Meta's terms as then written did not prohibit scraping of publicly available data while logged off, and Meta dropped the remaining claim. That ruling turned on the wording of the terms at the time, and Instagram's current terms prohibit automated collection whether or not you are logged in.

This page is general information, not legal advice. Laws differ by country; talk to a lawyer about your own project. Our longer write-up covers the cases and the data-protection rules in Is web scraping legal?

What about an Instagram follower scraper?

A follower scraper, meaning a tool that lists the accounts following someone, needs a logged-in session, and we do not offer one. Instagram does not show a follower list to a logged-out visitor, so a tool that produces one is acting through an account, which Instagram's terms forbid without permission.

What we return instead is the follower count, how it has changed where the daily series is current, and engagement computed over recent posts. For most reasons people want a follower list, such as vetting an influencer or sizing an audience, the count, the growth and the engagement rate answer the question. The graph endpoints return Instagram's related profiles, not followers. For a quick single lookup, the free Instagram follower count tool uses the same catalog.

Getting Instagram profile data with an API

With Handles API you request a public Instagram profile with one authenticated GET and receive JSON, with no Instagram login, app review or token. The key goes in an Authorization: Bearer header and stays on your server. A catalog read costs 1 credit, and the free trial gives you 100 credits once, with no card.

curl "https://api.handlesapi.com/v1/directory/instagram/natgeo" \
  -H "Authorization: Bearer $HANDLES_API_KEY"
200 OK74 ms · 1 credit
{
  "data": {
    "platform": "instagram",
    "object": "account",
    "record": {
      "handle": "natgeo",
      "full_name": "National Geographic",
      "follower_count": 268215400,
      "following_count": 195,
      "media_count": 32141,
      "verified": true,
      "is_business": true,
      "avg_likes": 53778,
      "avg_comments": 205,
      "engagement_rate": 0.0201,
      "posts_analyzed": 12,
      "last_post_at": "2026-11-02 14:00:00+00"
    }
  },
  "meta": {
    "source": "catalog",
    "request_id": "req_0539c6e5b8291d68",
    "generated_at": "2026-11-26T13:54:53.539Z",
    "took_ms": 13
  }
}

Real response from the live API, captured Nov 26, 2026. 15 more record fields trimmed for space. Long strings and arrays are shortened.

The engagement rate is measured over the posts in the catalog for that account, and the posts_analyzed field tells you how many. Read it as an estimate over recent posts, not a figure Instagram publishes.

Content mix by format

The content-mix endpoint splits an account's recent posts into reels, images and carousels, with the share of each and average likes, comments and views. Views are only present for formats that report them, so avg_views can be null.

curl "https://api.handlesapi.com/v1/insights/instagram/natgeo/content-mix" \
  -H "Authorization: Bearer $HANDLES_API_KEY"
200 OK108 ms · 1 credit
{
  "data": {
    "handle": "natgeo",
    "user_id": "787132",
    "followers": 268215400,
    "posts_analysed": 47,
    "from": "2025-11-06T14:06:01.000Z",
    "to": "2026-11-02T14:00:00.000Z",
    "account_avg_interactions": 72679,
    "formats": [
      {
        "format": "reel",
        "posts": 31,
        "share_pct": 66,
        "avg_likes": 75486,
        "avg_comments": 287,
        "avg_views": 918380,
        "vs_account_avg_pct": 4.3
      },
      {
        "format": "image",
        "posts": 10,
        "share_pct": 21.3,
        "avg_likes": 65112,
        "avg_comments": 337,
        "avg_views": null,
        "vs_account_avg_pct": -9.9
      }
    ]
  },
  "meta": {
    "source": "engine-db",
    "request_id": "req_bd408270eeedbe34",
    "generated_at": "2026-11-26T13:54:53.648Z",
    "took_ms": 53
  }
}

Real response from the live API, captured Nov 26, 2026. Long strings and arrays are shortened.

Engagement for one handle

The engagement endpoint returns the post-based engagement figures for a handle (GET /v1/insights/instagram/{handle}). It is a catalog read, like the profile.

Engagement request (curl)
curl "https://api.handlesapi.com/v1/insights/instagram/natgeo" \
  -H "Authorization: Bearer $HANDLES_API_KEY"
Engagement request (Node)
const res = await fetch("https://api.handlesapi.com/v1/insights/instagram/natgeo", {
  headers: { Authorization: `Bearer ${process.env.HANDLES_API_KEY}` },
});
const { data, meta } = await res.json();
Engagement request (Python)
import os
import requests

res = requests.get(
    "https://api.handlesapi.com/v1/insights/instagram/natgeo",
    headers={"Authorization": f"Bearer {os.environ['HANDLES_API_KEY']}"},
    timeout=30,
)
body = res.json()

Paid plans start at $29 a month; see pricing for credits and rate limits. The Instagram API page lists every endpoint, and influencer analytics shows these fields in a creator-vetting workflow. For the wider picture across platforms, read social media scraping: methods and limits.

What we can't do

Our Instagram data is not live, and the daily follower series has not updated since 4 November 2026. Live reads of Instagram are switched off, so every response is served from a catalog of about 53K accounts, and a number is as old as that catalog's last refresh.

  • No live Instagram reads at the moment. Profile records and post-based insights still read, but growth history stops at 4 November 2026.
  • No follower or following lists, and no private accounts.
  • Not every Instagram account is in the catalog. About 53K accounts is a fraction of what exists, so check coverage before you depend on a specific handle.
  • No publishing, comments, direct messages or insights for accounts you own. The API is read-only, and for those jobs you need Meta's own API.
  • Handles API is an independent service and is not affiliated with Meta.

If you need fresh counts or a list of followers today, a data API of this kind is the wrong tool, and we would rather say so than have you find out in production.

Frequently asked questions

Can you scrape Instagram without logging in?
Partly. A logged-out visitor can often open a public profile and see headline details, but Instagram interrupts with login prompts and keeps deeper views behind a session. What a logged-out request returns also changes without notice, so any scraper built on it needs regular repair.
Is there an Instagram follower scraper that works?
Not one we offer. A follower list needs a logged-in session, and Instagram's terms forbid collecting data by automated means without permission. Handles API returns the follower count, daily growth where the series is current, and engagement. It does not return the list of accounts that follow someone.
Does instaloader still work?
Instaloader is a maintained open-source tool, and for much of what it does it asks you to log in with your own Instagram account. Instagram can restrict an account that behaves like an automated client, so use a throwaway at your own risk and expect behavior to shift when Instagram changes.
Is the official Instagram API a scraper alternative?
For some jobs. Business Discovery lets an app read basic metrics of another professional account, such as followers_count and media_count, but never personal accounts. Your app also needs App Review and Business Verification for accounts you do not own. The comparison page covers the details.
What Instagram data does Handles API return?
Follower, following and post counts, verification and business flags, average likes and comments, an engagement rate measured over recent posts, the mix of reels, images and carousels, posting cadence and top posts. Records come from a catalog of about 53K public accounts, with no login or token on your side.
Is the Instagram data live?
No. Live reads of Instagram are switched off, so every response comes from the catalog. The daily follower series has also not updated since 4 November 2026. Profiles and post-based insights still read, but growth history stops at that date. If you need a number as of this minute, this is not the tool.