GET /v1/instagram/web_profile_info
Instagram profile scraper API: followers, bio and links by username
An Instagram profile scraper in one GET request: send a handle and get the public profile as Profile JSON, with followers, following, bio, bio links, verified, private and business flags and the profile picture URL. One call costs $0.0005, so 1,000 profiles cost $0.50, and a call that fails costs nothing. Add the numeric ig_id to also get the category and the full-size picture, or get_raw=true for the JSON Instagram answered.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/instagram/web_profile_info?handle=instagram' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/instagram/web_profile_info",
params={
"handle": "instagram",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
handle required | query | string | Instagram account handle (a leading @ is accepted). On the operations whose upstream call takes the numeric account id, the crawler resolves it; a handle it has never seen costs one extra anonymous profile read. |
ig_id | query | string | Optional numeric account id of handle. With it the profile is read by id, which adds the business and creator flags, the category and the full-size profile picture. If the id no longer names this handle, the profile is read by handle. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Instagram (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. A saved read is an earlier answer of this operation for the same arguments; an account in the profile library (/v1/instagram/profile) is not one until this operation has read it. |
get_raw | query | boolean | true returns the upstream JSON exactly as Instagram answered it instead of the normalized Profile. |
Example response
A real answer of this endpoint for natgeo, captured live on 2026-11-08, with lists cut to their first 3 items and long text shortened.
{
"data": {
"id": "787132",
"username": "natgeo",
"full_name": "National Geographic",
"biography": "Step into wonder and find your inner explorer with National Geographic ๐",
"followers": 268179647,
"following": 195,
"posts": null,
"is_verified": true,
"is_private": false,
"avatar_url": "https://scontent.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?_nc_cat=1&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB0j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dโฆ",
"external_url": "http://visitstore.bio/natgeo",
"links": [
{
"url": "http://visitstore.bio/natgeo",
"title": null
},
{
"url": "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5FX10002",
"title": "Subscribe Here!"
}
],
"category": null,
"business_category": null,
"is_business": true,
"is_professional": true,
"business_email": null,
"business_phone": null,
"business_address": null,
"pronouns": [],
"highlight_reel_count": null,
"has_clips": true,
"is_recently_joined": null,
"fbid": "17841400573960012",
"extra": {}
},
"meta": {
"source": "live",
"fetched_at": "2026-11-08T11:50:52Z",
"cost": "$0.0005",
"balance": "$424.2956",
"request_id": "req_39a77b3c6c69b6e856bb309bf9ee2505"
}
}Response fields
| Field | Type | Description |
|---|---|---|
data.id | string or null | The numeric Instagram account id. Send it as ig_id on the next read of this handle. |
data.username | string or null | The handle, without the @. |
data.full_name | string or null | The display name on the profile. |
data.biography | string or null | The bio text, emoji included. |
data.followers | integer or null | Follower count at the time of the read. |
data.following | integer or null | How many accounts this account follows. |
data.posts | integer or null | Post count, or null when the read did not return it. |
data.is_verified | boolean or null | Whether the account has the verified badge. |
data.is_private | boolean or null | Whether the account is private. |
data.avatar_url | string or null | The profile picture URL on Instagram's CDN. Download the image if you need to keep it. |
data.external_url | string or null | The first website link in the bio. |
data.links[].url | string or null | Each bio link, in the order the profile shows them. |
data.links[].title | string or null | The label of a bio link, or null when it has none. |
data.category | string or null | The profile category. Send ig_id to have it filled. |
data.business_category | string or null | The business category of a business account. Send ig_id to have it filled. |
data.is_business | boolean or null | Whether the account is a business account, or null when the read did not say. |
data.is_professional | boolean or null | Whether the account is a business or creator account, or null when the read did not say. |
data.business_email | string or null | The public contact email a business account shows, else null. To find a creator email from a handle, use the contact finder. |
data.business_phone | string or null | The public contact phone a business account shows, else null. |
data.business_address | string or null | The public address a business account shows, else null. |
data.pronouns | array of string | The pronouns on the profile, empty when none are set. |
data.highlight_reel_count | integer or null | How many story highlights the profile has. |
data.has_clips | boolean or null | Whether the account has posted reels. |
data.is_recently_joined | boolean or null | Whether Instagram marks the account as recently joined. |
data.fbid | string or null | The account's id on Meta's side, in the 1784โฆ form the Instagram Graph API uses. |
data.extra | object | An open object for fields outside Profile, empty in this sample. |
meta.source | live | db | live for a fresh read, db for a saved read that cached=auto served. |
meta.fetched_at | string | When the profile was read, in ISO 8601 UTC. |
meta.cost | string | What this call cost. |
meta.balance | string | Your balance after this call. |
meta.request_id | string | The id to quote when you ask about one call. |
Scrape a list of Instagram profiles to CSV
Loop over your handles and write one CSV row per profile. Your organization can send 100 requests a minute by default, shared by all its keys. A 429 usually carries a Retry-After header with the seconds to wait. A 403 means Instagram does not show the account to logged-out visitors, as with a private account, and a 404 means it does not exist. None of the three costs anything.
import csv
import os
import time
import requests
URL = "https://api.virev.ai/v1/instagram/web_profile_info"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}
COLUMNS = ["username", "full_name", "followers", "following", "posts",
"is_verified", "is_private", "is_business", "external_url", "biography"]
def fetch(handle):
while True:
r = requests.get(URL, params={"handle": handle}, headers=HEADERS)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After") or 5))
continue
if r.status_code in (403, 404):
return None
r.raise_for_status()
return r.json()["data"]
handles = [line.strip().lstrip("@") for line in open("handles.txt") if line.strip()]
with open("profiles.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=COLUMNS, extrasaction="ignore")
writer.writeheader()
for handle in handles:
profile = fetch(handle)
if profile:
writer.writerow(profile)Scrape up to 10,000 profiles in one batch job
For a long list, send every handle in one call to POST /v1/batch/trigger with operation=instagram.web_profile_info. The batch calls are free, and each row bills $0.0005 as it runs, so 10,000 handles cost $5.00 and a failed row costs nothing. Your balance must cover the rows times the price when the job starts.
- Poll
GET /v1/batch/progress/{snapshot_id}untilstatusisready,failedorcanceled. - Download
GET /v1/batch/snapshot/{snapshot_id}, whereformat=csvgives dot-flattened columns such asdata.followersbesideinput.handle. - One job takes at most 10,000 rows, and an organization runs at most 5 jobs at once. The batch docs list the other options.
import os
import time
import requests
BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}
handles = [line.strip().lstrip("@") for line in open("handles.txt") if line.strip()]
job = requests.post(
f"{BASE}/v1/batch/trigger",
params={"operation": "instagram.web_profile_info", "format": "csv"},
json=[{"handle": h} for h in handles],
headers=HEADERS,
)
job.raise_for_status()
snapshot_id = job.json()["data"]["snapshot_id"]
while True:
progress = requests.get(f"{BASE}/v1/batch/progress/{snapshot_id}", headers=HEADERS)
progress.raise_for_status()
if progress.json()["data"]["status"] in ("ready", "failed", "canceled"):
break
time.sleep(10)
result = requests.get(f"{BASE}/v1/batch/snapshot/{snapshot_id}", headers=HEADERS)
result.raise_for_status()
with open("profiles.csv", "wb") as f:
f.write(result.content)Look up 200 stored profiles in one call
When the profile we last crawled is fresh enough, two stored endpoints read up to 200 handles per call for $0.0010, which is $0.0050 for 1,000 handles. They read our database only: a handle we never crawled is left out of the answer, and a call that finds none of its handles costs $0.
- The stored profiles API at
GET /v1/creators/profilestakes comma-separatedusernamesand returns bio, counts, niche, country, language and the time of the last crawl. - The bulk lookup API at
POST /v1/creators/mgettakes a JSON list ofusernamesand returns the creator search row of each handle, with engagement ratio, last post date and brand collabs. - For one stored profile with the AI niche block, use the enriched profile API.
curl -X POST 'https://api.virev.ai/v1/creators/mget' \
-H "Authorization: Bearer $VIREV_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"usernames": ["natgeo", "nike"], "platform": "instagram"}'Scrape a profile in Node.js
The same call with the global fetch, which Node.js 18 and later run with no flag. meta.cost in the answer says what the call cost.
const url = new URL("https://api.virev.ai/v1/instagram/web_profile_info");
url.searchParams.set("handle", "natgeo");
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.VIREV_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data, meta } = await res.json();
console.log(data.username, data.followers, data.is_verified, meta.cost);Posts and similar accounts
This endpoint returns the profile only. Read the account's posts and reels with the Instagram posts API at /v1/instagram/user_feed for $0.0005 per 12 posts. Read the accounts Instagram suggests next to a profile with the related accounts API at /v1/instagram/related_accounts for $0.0005 a call.
How it works
Wraps the logged-out profile reads: doc_id PolarisProfilePageContentQuery by ig_id when given, else the logged-out GraphQL profile by handle. Returns Profile under data; with get_raw=true returns the upstream JSON.
Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
403 | Instagram does not show this account to logged-out readers: it is private, hidden or restricted, or it no longer exists. Retrying will not change the answer until the account changes. You are not charged. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the account, post, highlight, or location does not exist (not_found). |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |
Frequently asked questions
How much does it cost to scrape 1,000 Instagram profiles?
A live read costs $0.0005 a profile, so 1,000 profiles cost $0.50, whether you loop or run a batch job. A saved read that cached=auto serves from the last 24 hours costs the same $0.0005, and cached=live always reads Instagram. A failed call or row costs nothing. The stored bulk endpoints read 200 handles for $0.0010 a call, so 1,000 stored profiles cost $0.0050.
Can it scrape a private Instagram profile?
No. Instagram does not show a private account to visitors who are not logged in, so the call answers 403 and you are not charged. A retry gets the same answer until the account goes public.
Do I need an Instagram account, a login or cookies?
No. You send your virev.ai API key as a Bearer token, and the read runs as a logged-out visitor on our side. Your own Instagram account is never used.
Is it legal to scrape Instagram profiles?
This endpoint reads only what Instagram shows a visitor who is not logged in, and never private content. Names, bios and other profile fields can still be personal data, so you are responsible for how you store and use them under laws such as the GDPR.
Does it return the profile's recent posts?
No, it returns the profile only. Read the posts with the Instagram posts API at /v1/instagram/user_feed for $0.0005 per 12 posts, and the accounts Instagram suggests next to a profile with /v1/instagram/related_accounts for $0.0005 a call.
Why not use Instagram's official API?
Meta's Business Discovery API reads other accounts only from your own Instagram professional account with an access token, and it returns only professional accounts. This endpoint reads any public profile by handle with an API key.
Guides that use this endpoint
- How to Get Instagram Profile Data with an API (2026 Guide)
- Instagram profile scraper in Python: 1,000 profiles for $0.50
- Instagram followers scraper in Python: 1,000 followers for $0.20
- Building an Influencer Discovery Tool: The Complete API Guide
- Instagram Engagement Rate API: Calculate ER for Any Creator
- The Cheapest Instagram Data API: Pay-Per-Request Pricing Explained