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
curl 'https://api.virev.ai/v1/instagram/web_profile_info?handle=instagram' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
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

NameInTypeDescription
handle requiredquerystringInstagram 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. Example instagram.
ig_id querystringOptional 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 queryauto | cache_only | liveauto (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. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as Instagram answered it instead of the normalized Profile. Default false.

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.

json
{
  "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

FieldTypeDescription
data.idstring or nullThe numeric Instagram account id. Send it as ig_id on the next read of this handle.
data.usernamestring or nullThe handle, without the @.
data.full_namestring or nullThe display name on the profile.
data.biographystring or nullThe bio text, emoji included.
data.followersinteger or nullFollower count at the time of the read.
data.followinginteger or nullHow many accounts this account follows.
data.postsinteger or nullPost count, or null when the read did not return it.
data.is_verifiedboolean or nullWhether the account has the verified badge.
data.is_privateboolean or nullWhether the account is private.
data.avatar_urlstring or nullThe profile picture URL on Instagram's CDN. Download the image if you need to keep it.
data.external_urlstring or nullThe first website link in the bio.
data.links[].urlstring or nullEach bio link, in the order the profile shows them.
data.links[].titlestring or nullThe label of a bio link, or null when it has none.
data.categorystring or nullThe profile category. Send ig_id to have it filled.
data.business_categorystring or nullThe business category of a business account. Send ig_id to have it filled.
data.is_businessboolean or nullWhether the account is a business account, or null when the read did not say.
data.is_professionalboolean or nullWhether the account is a business or creator account, or null when the read did not say.
data.business_emailstring or nullThe public contact email a business account shows, else null. To find a creator email from a handle, use the contact finder.
data.business_phonestring or nullThe public contact phone a business account shows, else null.
data.business_addressstring or nullThe public address a business account shows, else null.
data.pronounsarray of stringThe pronouns on the profile, empty when none are set.
data.highlight_reel_countinteger or nullHow many story highlights the profile has.
data.has_clipsboolean or nullWhether the account has posted reels.
data.is_recently_joinedboolean or nullWhether Instagram marks the account as recently joined.
data.fbidstring or nullThe account's id on Meta's side, in the 1784โ€ฆ form the Instagram Graph API uses.
data.extraobjectAn open object for fields outside Profile, empty in this sample.
meta.sourcelive | dblive for a fresh read, db for a saved read that cached=auto served.
meta.fetched_atstringWhen the profile was read, in ISO 8601 UTC.
meta.coststringWhat this call cost.
meta.balancestringYour balance after this call.
meta.request_idstringThe 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.

python
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} until status is ready, failed or canceled.
  • Download GET /v1/batch/snapshot/{snapshot_id}, where format=csv gives dot-flattened columns such as data.followers beside input.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.
python
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/profiles takes comma-separated usernames and returns bio, counts, niche, country, language and the time of the last crawl.
  • The bulk lookup API at POST /v1/creators/mget takes a JSON list of usernames and 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
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.

javascript
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

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
403Instagram 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.
404cached=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).
429Over 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.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The 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