GET /v1/instagram/following

Instagram following API: list the accounts a user follows by username

Returns the accounts one Instagram user follows as Page[Account]: id, username, full name, verified and private flags and profile picture URL. Send the handle; each page of up to 50 accounts uses one of our signed-in Instagram accounts. Each signed-in reader reads at most 19 follower and following pages in 24 hours, and a page past that answers 429 with Retry-After and no charge.

Price
$0.0100 per page
Billing
$0.0100/page
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/instagram/following?handle=instagram&max_pages=1' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/instagram/following",
    params={
        "handle": "instagram",
        "max_pages": "1",
    },
    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.
since querystringNot accepted on this operation: its items carry no timestamp, so since returns 400 before billing.
max_pages queryintegerMaximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. Example 1.
cursor querystringOpaque next_cursor from an earlier acquisition of this operation, also with get_raw=true. A native Instagram max_id or end_cursor from a raw page answers 400. Result download cursors belong to the results route.
page_size queryintegerNative count, default 50. Instagram controls the returned count. Billed per 50 unique returned items. Default 50.
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. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as Instagram answered it instead of the normalized Page[Account]. Default false.
Idempotency-Key headerstringReuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409.

Example response

The example response of the API reference.

json
{
  "data": {
    "items": [
      {
        "id": "13460080",
        "username": "nike",
        "full_name": "Nike",
        "is_verified": true,
        "is_private": false,
        "avatar_url": "https://scontent.cdninstagram.com/nike.jpg",
        "latest_story_at": null,
        "extra": {}
      }
    ],
    "pages": [
      {
        "cursor": null,
        "fetched_at": "2026-09-09T07:00:00+00:00",
        "count": 1,
        "signed_in": true
      }
    ],
    "next_cursor": null,
    "has_more": false,
    "stop_reason": "exhausted",
    "coverage": {
      "since": null,
      "oldest_at": null,
      "since_reached": false
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-09-09T03:10:22Z",
    "cost": "$0.0100",
    "balance": "$0.7827",
    "request_id": "req_d06f94a5dd729b7f1de830597426c2a2"
  }
}

How it works

Wraps GET /api/v1/friendships/{id}/following/?count&max_id&rank_token. With max_pages=1, returns Page[Account] under data; with get_raw=true returns the upstream JSON.

The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. An output unit above that byte budget fails the job before billing; results return 413. The selected raw or normalized mode never changes automatically. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs.

Daily page limit: a walk stays on the one logged-in reader that served its first page, and each reader reads at most 19 following and followers pages (about 950 accounts) in any 24 hours. A page past that answers 429 daily_page_limit with Retry-After in seconds and no charge; call again after that delay with the same cursor to resume where the walk stopped. A walk with no cursor starts on a reader with pages left, so read many accounts side by side instead of one long list at a time.

Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

The example response is the crawler's own projection of a synthetic upstream document into Page[Account], not a live capture.

Billing: $0.0100 per page of 50 unique returned items, rounded up to a minimum of one page. This read spends one of our signed-in Instagram accounts, so it costs more than a logged-out read. Jobs settle once after successful completion. Submission, polling and repeat downloads are free. Insufficient funds return 402 with no result data until a top-up covers the full charge.

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).
429daily_page_limit means the logged-in reader this cursor is pinned to has read its following and followers pages for the last 24 hours; call again with the same cursor after the Retry-After delay in seconds. rate_limit_exceeded means your organization's request limit was reached, and rate_limited that Instagram rate-limited this read; retry after the Retry-After delay. You are not charged.
502The upstream fetch failed. You are not charged.
503capacity_exhausted means every logged-in reader this request may use is busy or waiting for a session opening; retry after the Retry-After delay. billing_unavailable means billing could not be confirmed, so no data was returned. You are not charged.
504The upstream request timed out. You are not charged.

Guides that use this endpoint