GET /v1/instagram/loggedout_profile
Instagram public profile API: logged-out profile data by username
Reads one Instagram profile as a logged-out visitor sees it and returns Profile: followers, following, bio, links, category and the profile picture URL. Send the handle. get_raw=true returns 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/loggedout_profile?handle=instagram' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/instagram/loggedout_profile",
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. |
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
The example response of the API reference.
json
{
"data": {
"id": "25025320",
"username": "instagram",
"full_name": "Instagram",
"biography": "Discover what's new on Instagram",
"followers": 685818061,
"following": 269,
"posts": null,
"is_verified": true,
"is_private": false,
"avatar_url": "https://scontent.cdninstagram.com/ig_150.jpg",
"external_url": "http://help.instagram.com",
"links": [
{
"url": "http://help.instagram.com",
"title": null
}
],
"category": "Community",
"business_category": null,
"is_business": null,
"is_professional": null,
"business_email": null,
"business_phone": null,
"business_address": null,
"pronouns": [],
"highlight_reel_count": null,
"has_clips": null,
"is_recently_joined": null,
"fbid": "17841400039600391",
"extra": {}
},
"meta": {
"source": "db",
"fetched_at": "2026-09-09T02:41:09Z",
"cost": "$0.0005",
"balance": "$0.3787",
"request_id": "req_10144054a5d1b55ba3263e7e1c6f5b70"
}
}How it works
Wraps doc_id PolarisLoggedOutDesktopWWWProfileRootContentQuery. Returns Profile under data; with get_raw=true returns the upstream JSON.
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 Profile, not a live capture.
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. |