Instaloader has earned its place: about 13,900 GitHub stars, an MIT license, a new release in October 2026, and no price. If all you need is a few public profiles and their posts on your own computer, it is probably the right tool, and this page says so with numbers.
People look for an alternative when they hit one of three walls: the data they want sits behind a login (followers, following, comments), the script moves to a server and starts getting 429 errors, or the rest of the stack isn't Python. Those are the cases a data API is for.
How we compared
ScrapingBot is our product. Instaloader facts come from its own documentation, troubleshooting page, module reference, GitHub repository and PyPI page, checked in November 2026, and from one run of ours: Instaloader 4.16 on Python 3.13, no login, on a home internet connection, on November 17, 2026. We did not test it logged in or from a cloud server, so those parts are as documented, not measured. instagrapi is quoted from its README and was not run. ScrapingBot responses are real, from the same day.
What Instaloader did without a login
This is the whole test script: a profile, its three latest posts, then the accounts it follows.
import itertools
import instaloader
L = instaloader.Instaloader()
profile = instaloader.Profile.from_username(L.context, "lancehedrick")
print(profile.followers, profile.followees)
for post in itertools.islice(profile.get_posts(), 3):
print(post.shortcode, post.likes, post.comments)
print([p.username for p in itertools.islice(profile.get_followees(), 5)])
138399 1309
DfzhiCVtcVE 3413 44
DfpeaXvNR62 1572 46
Dfmvjs4jZJx 293 11
Traceback (most recent call last):
…
instaloader.exceptions.LoginRequiredException: Login required to get a profile's followees.
The public part worked, and kept working when we widened it:
| Without a login, we asked Instaloader for | What happened |
|---|---|
| 15 public profiles, one after another | All 15 returned, with follower and following counts |
| The 12 latest posts of each | 180 posts with likes, comment counts and dates; 6 minutes 48 seconds in all, about 27 seconds per profile |
| One post by its shortcode | Owner, likes and comment count, in 2 seconds |
| The accounts a profile follows | LoginRequiredException: Login required to get a profile's followees. |
| A profile's followers | LoginRequiredException: Login required to get a profile's followers. |
| A post's comments | LoginRequiredException: Login required to access comments of a post. |
No request failed and Instaloader never had to pause for a rate limit. That was one run, 15 profiles, from one home connection. Its documentation is candid about other conditions: cloud, VPN and public proxy addresses "might be subject to significantly stricter limits for anonymous access", its rate controller assumes nothing else is using Instagram from your connection, and restarting it often "is prone to cause a 429".
The short version
Pick ScrapingBot if
Pick Instaloader if
ScrapingBot vs Instaloader at a glance
| ScrapingBot | Instaloader | |
|---|---|---|
| What it is | A hosted API: one HTTPS call, JSON back | A Python library and command-line tool you run yourself (MIT; version 4.16, October 26, 2026; Python 3.10+) |
| Price | 5 credits per Instagram call; 100 free credits, then Starter at $49.99 for 275,000 | Free |
| Instagram login | None, ever: you send an API key | None for public profiles and posts; your own account for followers, following, comments, likes, stories and private profiles |
| Profiles and posts | /user/by_username, /medias/by_user_id, /reels/by_user_id, a post by URL | Profile.from_username(), get_posts(), Post.from_shortcode(): all worked in our run |
| Followers and following | Paged lists of public accounts, searchable by name | get_followers(), get_followees(): "one needs to be logged in" |
| Comments | Paged comments, and the first page of replies under each | get_comments(), with answers: login required in our run |
| Search | Accounts, hashtags and top posts by keyword | Not tested |
| Media files | Links to images and videos in the JSON; downloading is up to you | Downloads pictures and videos with captions and metadata, and resumes interrupted downloads |
| Private and personal data | None: public accounts only | With your login: private profiles you follow, your feed, your saved posts, stories |
| Where it runs | Called from any language or server | On your machine and connection; stricter limits documented for cloud, VPN and proxy addresses |
| When Instagram pushes back | A failed call returns an error and is refunded | Its rate controller paces requests, waits out a 429 and retries |
| Beyond Instagram | TikTok, Google, Amazon, any website, and an MCP server for AI agents | Instagram only |
What a login changes
Everything in Instaloader's "login required" column is collected through an Instagram account, and that account is yours. Its documentation describes the consequences without drama: logging in can trigger "the checkpoint challenge, issued when Instagram suspects authentication activity on your account", several linked issues report logins failing, and the recommended workaround is to sign in with Firefox and import the browser's session cookies. Session files let you avoid logging in repeatedly.
That is a fair trade for your own data. It is a different matter when a product depends on it: a scheduled job that pages follower lists runs under one person's account, at whatever pace Instagram tolerates for it, and stops when that account is challenged. With an API there is no account of yours in the loop. You send a key, and a call either returns data or returns an error and costs nothing.
One job both ways: who an account follows
With Instaloader, after logging in (the form its documentation gives):
import instaloader
L = instaloader.Instaloader()
L.login("your_username", "your_password") # or L.load_session_from_file("your_username")
profile = instaloader.Profile.from_username(L.context, "lancehedrick")
for followee in profile.get_followees():
print(followee.username)
We did not run that one: it needs an Instagram account, and we don't use accounts for collection. With ScrapingBot the same list is a loop over pages, with no Instagram credentials anywhere:
import requests
API = "https://scrapingbot.io/api/v1/instagram"
HEADERS = {"x-api-key": "YOUR_API_KEY"}
def following(username):
"""Everyone a public account follows: 5 credits per page of about 50, no Instagram login."""
accounts, params, pages = {}, {"user_id": username}, 0
while True:
body = requests.post(API, headers=HEADERS, timeout=60,
json={"endpoint": "/following/by_user_id", "params": params}).json()
if not body.get("success"):
raise RuntimeError(body.get("error"))
data, pages = body["data"], pages + 1
for u in data.get("users", []):
accounts.setdefault(u["id"], u)
if not data.get("has_more") or not data.get("next_max_id"):
return accounts, data.get("user_count"), pages
params = {"user_id": username, "max_id": data["next_max_id"]}
accounts, count, pages = following("lancehedrick")
print(f"{len(accounts):,} of {count:,} followed accounts in {pages} pages ({pages * 5} credits)")
1,306 of 1,309 followed accounts in 26 pages (130 credits)
That run took 46 seconds and cost about 2.4 cents on Starter. It also shows the catch on our side: Instagram left three accounts out of that read. A second read usually returns a slightly different set, which matters when you compare lists over time; the following tracker guide measures it and works around it.
The same 15 profiles through the API
For the public data both tools reach, we repeated Instaloader's job through ScrapingBot: the same 15 profiles and their 12 latest posts, as 30 calls made one after another.
| ScrapingBot | Instaloader, no login | |
|---|---|---|
| Profiles and posts returned | 15 and 180 | 15 and 180 |
| Time | 1 minute 56 seconds | 6 minutes 48 seconds |
| Cost | 150 credits, about 2.7 cents on Starter | Nothing |
| Ran from | Anywhere: the request leaves our servers | A home connection |
One run each, on one afternoon, so read it as an illustration and not a benchmark. For a job this size the honest summary is that both work, and one of them is free.
instagrapi and other private-API libraries
When Instaloader's login wall is the problem, the next library people reach for is instagrapi, which combines Instagram's public web and private mobile APIs and works through a logged-in account (Python 3.11+). It covers far more than reading: uploads, direct messages, stories. Its README is frank about running it for a business: "Private API automation is fragile in production because account trust, proxies, device state, challenges, and rate limits can change independently of the library", and the project "is best suited for testing, research, and controlled internal automation". Like Instaloader's logged-in mode, it puts an account you control in the loop, plus the proxies and challenge handling that come with it.
What it costs
- Instaloader: no fee. You pay in time (about 27 seconds per profile with 12 posts in our run), in your connection's rate limit, and for logged-in data in the risk to the account you sign in with.
- ScrapingBot: 5 credits per Instagram call, whatever it returns: a profile, a page of posts, a page of about 50 followers or following, a page of 15 comments. Starter is $49.99 for 275,000 credits, so 1,000 calls is about 91 cents. Failed calls are refunded, and the 100 free credits cover 20 calls with no card.
Moving a script from Instaloader
| Instaloader | ScrapingBot endpoint | Notes |
|---|---|---|
Profile.from_username() | /user/by_username | Followers, following, bio, links, verified, private. Neither tool returned a post count in our runs. |
profile.get_posts() | /medias/by_user_id | Paged with a cursor; count sets the page size. |
profile.get_reels() | /reels/by_user_id | Play counts when Instagram reports them. |
Post.from_shortcode() | /media/by_shortcode, /media/by_url | Likes, comment count, owner, co-authors. |
profile.get_followers(), get_followees() | /followers/by_user_id, /following/by_user_id | No login. Instagram cuts some large follower lists short. |
post.get_comments() | /comments/media_comments_by_id, /comments/replies | 15 comments a page; replies return their first page. |
L.download_profile(), download_post() | None | The JSON carries image and video links; fetch the files yourself, soon, because the links expire. |
:feed, :saved, private profiles | None | Public data only. |
Where to go from here
- The lists Instaloader won't give without a login: export Instagram followers and following to CSV, and track who an account starts following.
- Comments without an account: export Instagram comments and replies with Python.
- Profiles and posts: a public profile and its reels, post and reel stats by URL, and follower counts in bulk.
- One account, no code: the free Instagram profile stats tool. For TikTok, the engagement rate calculator and the sound tracker.
- Comparing paid options? The best Instagram scraper APIs in 2026, and the Instagram API page for every endpoint.
Common questions
Does Instaloader still work without logging in?
For public profiles and their posts, yes, in our test. On November 17, 2026, Instaloader 4.16 with no login, on a home internet connection, fetched 15 public profiles and the 12 latest posts of each (180 posts) in 6 minutes 48 seconds without an error. Followers, following and comments raised LoginRequiredException.
Why does Instaloader say "Login required"?
Because Instagram shows that data only to signed-in users, and Instaloader passes that on. Its documentation says of get_followers() and get_followees() that "one needs to be logged in", likes have required a login since version 4.5.4, and in our run comments did too. You then collect through your own Instagram account.
Why do I get 429 Too Many Requests from Instaloader?
Instagram is rate-limiting the connection. Instaloader's troubleshooting page says its rate controller assumes it is the only program using Instagram from your connection, that restarting it often "is prone to cause a 429", and that cloud, VPN and public proxy addresses "might be subject to significantly stricter limits for anonymous access". It waits and retries by itself.
Can I get an Instagram account's followers or following without logging in?
Not with Instaloader. A data API reads them for you: ScrapingBot's /followers/by_user_id and /following/by_user_id return public accounts' lists as JSON, 5 credits per page of about 50, with no Instagram account involved. Instagram cuts some large accounts' follower lists short at about 50; following lists paged to the end in our tests.
Is Instaloader free?
Yes. It is open source under the MIT license and costs nothing to run. What you spend is your own time, your connection's rate limit and, for anything behind a login, the standing of the Instagram account you sign in with.
What about instagrapi?
instagrapi is a Python wrapper for Instagram's private mobile API and works through a logged-in account. Its own README says private API automation "is fragile in production" and that the project "is best suited for testing, research, and controlled internal automation". We did not run it for this page.