One GET request to /v1/instagram/followers returns up to 50 followers of a public Instagram account for $0.0100, so 1,000 followers cost $0.20. The official Instagram Graph API cannot list followers, so the Instagram followers scraper below is built in Python on that call, with one page, a cursor loop that respects the daily page limit, a job that reads every page, and a CSV export.
Why the Instagram Graph API cannot get followers
The IG User reference lists followers_count and follows_count as fields. Both are numbers. The edges on the same page include media, stories, tags and business_discovery, and none of them lists the accounts that follow a user.
Business Discovery is the Graph API's way to read another account. You run it from your own professional account with an access token, and it returns metadata and metrics of other Business or Creator accounts, such as followers_count and media_count. It returns no follower list either. So a list of who follows an account has to come from Instagram itself, read by a signed-in Instagram account.
Running that yourself means keeping Instagram logins alive and a parser for the follow list up to date. The Instagram followers API does that part and answers in one JSON shape, Page[Account].
Scrape one page of followers
Create a key in the dashboard and put it in VIREV_API_KEY. Send the handle and max_pages=1 to get one page back at once with HTTP 200.
curl "https://api.virev.ai/v1/instagram/followers?handle=instagram&max_pages=1" \
-H "Authorization: Bearer $VIREV_API_KEY"Each item in data.items has id, username, full_name, is_verified, is_private, avatar_url and latest_story_at. The answer also carries next_cursor, has_more and stop_reason, and meta.cost says what the call cost. The endpoint page shows a real answer and every field.
Walk the follower list with a cursor
Send next_cursor back as cursor until has_more is false. A walk stays on the signed-in reader that served its first page, and each reader reads at most 19 follower and following pages in any 24 hours. A page past that answers 429 daily_page_limit with a Retry-After header in seconds and no charge. Keep the cursor and call again after that delay to go on where you stopped. Run the script with a handle and a page count, such as python followers_loop.py <handle> 5.
import os
import sys
import requests
API = "https://api.virev.ai/v1/instagram/followers"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}
def scrape_followers(handle, pages, cursor=None):
followers, seen = [], set()
for _ in range(pages):
params = {"handle": handle, "max_pages": 1}
if cursor:
params["cursor"] = cursor
res = requests.get(API, params=params, headers=HEADERS)
if res.status_code == 429:
print("call again in", res.headers.get("Retry-After"), "s with cursor", cursor)
return followers, cursor
res.raise_for_status()
data = res.json()["data"]
for account in data["items"]:
if account["id"] not in seen:
seen.add(account["id"])
followers.append(account)
if not data["has_more"]:
return followers, None
cursor = data["next_cursor"]
return followers, cursor
followers, resume_at = scrape_followers(sys.argv[1], int(sys.argv[2]))
print(len(followers), "followers")Plan for 950 accounts a day per list
At 19 pages of 50, one walk reads about 950 accounts a day. To cover many accounts, start their walks side by side instead of reading one long list at a time, because a walk with no cursor starts on a reader with pages left.
Scrape every follower as a job and export a CSV
Send max_pages=-1 and the call answers HTTP 202 with a durable job. Poll its status_url until status is ready, then read results_url and send its next_cursor back as cursor until complete is true. Polls and downloads are free, and when the job completes it is charged for every page it read. Leave out max_pages and the job stops after 10 pages. A list past about 950 followers runs more than a day, so keep batch_id and run the results part later if the script cannot stay up.
import csv
import os
import sys
import time
import requests
BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}
HANDLE = sys.argv[1]
res = requests.get(
f"{BASE}/v1/instagram/followers",
params={"handle": HANDLE, "max_pages": -1},
headers=HEADERS,
)
res.raise_for_status()
job = res.json()["data"]
while job["status"] in ("queued", "running"):
time.sleep(60)
job = requests.get(BASE + job["status_url"], headers=HEADERS).json()["data"]
if job["status"] != "ready":
if job["status"] == "payment_required":
raise SystemExit("Top up your balance. The results answer 402 until then.")
raise SystemExit(f"job {job['batch_id']} is {job['status']}: {job['error']}")
rows, cursor = [], None
while True:
params = {"cursor": cursor} if cursor else {}
page = requests.get(BASE + job["results_url"], params=params, headers=HEADERS).json()["data"]
for result in page["results"]:
rows.extend(result.get("items", []))
if page["complete"]:
break
cursor = page["next_cursor"]
with open(f"{HANDLE}-followers.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(
f, fieldnames=["id", "username", "full_name", "is_verified", "is_private"], extrasaction="ignore"
)
writer.writeheader()
writer.writerows(rows)
print(len(rows), "followers,", job["cost"])What a follower list costs
Billing counts the unique accounts returned, $0.0100 for each 50, rounded up, with one page as the least a call costs. A call that answers an error is not charged.
| Followers | Pages of 50 | Cost | Days on one walk |
|---|---|---|---|
| 50 | 1 | $0.0100 | 1 |
| 950 | 19 | $0.19 | 1 |
| 1,000 | 20 | $0.20 | 2 |
| 10,000 | 200 | $2.00 | about 11 |
Limits to know before you scrape
- A private, hidden or restricted account answers 403, and the call is not charged.
- For a large verified account, Instagram shows any reader only a first page of about 50 followers and no cursor, as other Instagram data APIs also report, so the walk ends there with
stop_reasonexhausted. - Our read of @instagram on 2026-11-25 returned 45 accounts, so check
stop_reasonandhas_moreon the last page you read. - A list item has no follower count or bio, so read the accounts you keep with
/v1/instagram/web_profile_infoat $0.0005 each, as the Instagram profile scraper guide shows.
Scrape the following list too
To scrape the accounts a user follows, change the path to /v1/instagram/following. The Instagram following API returns the same Page[Account] items at the same $0.0100 a page, and it draws on the same 19 pages a day of each reader. With both lists in hand, one set difference finds the accounts that do not follow back.
# followers and following are lists of Page[Account] items from the two endpoints
not_back = {a["id"] for a in following} - {a["id"] for a in followers}
print(len(not_back), "accounts do not follow back")Scrape your first follower list
Create an account, add a key, and run the loop above on one handle. A page of 50 followers costs $0.0100.
Get your API key →