Comparison

Instaloader alternative: when the free scraper is enough, and when it isn't

Instaloader is the Python tool most developers try first, and it still works for public profiles and posts. We ran it, read its docs, and mapped where an API takes over: lists, comments, servers and other languages.

ScrapingBot 8 min read
Price
5 credits a call vs free
Instagram login
Never vs needed for lists
Runs on
Our servers vs your machine
Language
Any vs Python
On this page

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 forWhat happened
15 public profiles, one after anotherAll 15 returned, with follower and following counts
The 12 latest posts of each180 posts with likes, comment counts and dates; 6 minutes 48 seconds in all, about 27 seconds per profile
One post by its shortcodeOwner, likes and comment count, in 2 seconds
The accounts a profile followsLoginRequiredException: Login required to get a profile's followees.
A profile's followersLoginRequiredException: Login required to get a profile's followers.
A post's commentsLoginRequiredException: 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

You need followers, following, comments or search and don't want to sign an Instagram account in to get them.
The job runs on a server, on a schedule, or in a language other than Python.
You want JSON per call at a known price, failed calls refunded, and TikTok, Google and Amazon data on the same key.

Pick Instaloader if

You want the photos and videos themselves saved to disk with captions, and archives that resume where they stopped.
It is your own account's data: saved posts, your feed, stories and private profiles you follow.
A handful of public profiles on your own machine is the whole job: it is free and it works.

ScrapingBot vs Instaloader at a glance

ScrapingBotInstaloader
What it isA hosted API: one HTTPS call, JSON backA Python library and command-line tool you run yourself (MIT; version 4.16, October 26, 2026; Python 3.10+)
Price5 credits per Instagram call; 100 free credits, then Starter at $49.99 for 275,000Free
Instagram loginNone, ever: you send an API keyNone 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 URLProfile.from_username(), get_posts(), Post.from_shortcode(): all worked in our run
Followers and followingPaged lists of public accounts, searchable by nameget_followers(), get_followees(): "one needs to be logged in"
CommentsPaged comments, and the first page of replies under eachget_comments(), with answers: login required in our run
SearchAccounts, hashtags and top posts by keywordNot tested
Media filesLinks to images and videos in the JSON; downloading is up to youDownloads pictures and videos with captions and metadata, and resumes interrupted downloads
Private and personal dataNone: public accounts onlyWith your login: private profiles you follow, your feed, your saved posts, stories
Where it runsCalled from any language or serverOn your machine and connection; stricter limits documented for cloud, VPN and proxy addresses
When Instagram pushes backA failed call returns an error and is refundedIts rate controller paces requests, waits out a 429 and retries
Beyond InstagramTikTok, Google, Amazon, any website, and an MCP server for AI agentsInstagram 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.

ScrapingBotInstaloader, no login
Profiles and posts returned15 and 18015 and 180
Time1 minute 56 seconds6 minutes 48 seconds
Cost150 credits, about 2.7 cents on StarterNothing
Ran fromAnywhere: the request leaves our serversA 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

InstaloaderScrapingBot endpointNotes
Profile.from_username()/user/by_usernameFollowers, following, bio, links, verified, private. Neither tool returned a post count in our runs.
profile.get_posts()/medias/by_user_idPaged with a cursor; count sets the page size.
profile.get_reels()/reels/by_user_idPlay counts when Instagram reports them.
Post.from_shortcode()/media/by_shortcode, /media/by_urlLikes, comment count, owner, co-authors.
profile.get_followers(), get_followees()/followers/by_user_id, /following/by_user_idNo login. Instagram cuts some large follower lists short.
post.get_comments()/comments/media_comments_by_id, /comments/replies15 comments a page; replies return their first page.
L.download_profile(), download_post()NoneThe JSON carries image and video links; fetch the files yourself, soon, because the links expire.
:feed, :saved, private profilesNonePublic data only.

Where to go from here

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.

Start scraping in the next five minutes.

100 free credits, no credit card. One API key works for websites, TikTok, Instagram, Google, Amazon and ChatGPT.