GET /v1/instagram/stored/profile/media

Instagram stored profile media API: post images and videos by username

Returns a profile block and the newest stored posts of one Instagram account, each with every image or video item: ig_url, cdn_url (our mirrored copy, null until mirrored) and cdn_status. Send q, and send next_cursor back as cursor for the next page. This is a stored read: a miss is a 404 and never a crawl.

Price
$0.0005 per 12 posts
Billing
$0.0005 per 12 posts
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/instagram/stored/profile/media?q=natgeo' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/instagram/stored/profile/media",
    params={
        "q": "natgeo",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringUsername, @handle, or profile URL. Example natgeo.
limit queryintegerPosts per page. Default 12.
cursor querystringOpaque next_cursor from the previous page.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "next_cursor": "Wzc5NDIzNzQ0OTYwMjE4MjEsIjIwMjYtMTEtMTlUMjM6MDU6MDcrMDA6MDAiXQ",
    "has_more": true,
    "profile": {
      "username": "natgeo",
      "full_name": "National Geographic",
      "biography": "Step into wonder and find your inner explorer with National Geographic 🌎",
      "followers": 267423693,
      "following": 195,
      "posts_count": 32141,
      "is_private": false,
      "is_verified": true,
      "category_name": null,
      "external_urls": [
        "http://visitstore.bio/natgeo",
        "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5FX10002"
      ],
      "profile_pic": {
        "kind": "profile_pic",
        "ig_url": "https://f005.backblazeb2.com/file/influencer-prod/production/crawler/instagram_account/1182.webp",
        "cdn_url": "https://f005.backblazeb2.com/file/influencer-prod/production/crawler/instagram_account/1182.webp",
        "cdn_status": "completed",
        "media_state": "mirror"
      }
    },
    "posts": [
      {
        "id": 336259326,
        "shortcode": "DgHdm3_F4Af",
        "media_type": "image",
        "posted_at": "2026-11-25T02:00:02+00:00",
        "caption": "Some of the Bible's best-known stories are gaining new historical context as archaeologists uncover long-hidden evidence. Across ancient cities, early Christian sites, and centuries-old manuscripts—including recovered traces of the Apostle …",
        "likes": 1252,
        "likes_hidden": false,
        "comments": 24,
        "tagged_users": [],
        "is_paid_partnership": false,
        "paid_partners": [],
        "coauthors": [],
        "brand_accounts": [],
        "items": [
          {
            "kind": "post_image",
            "ig_url": "https://api.virev.ai/v1/media/instagram_post/336259326/post_image?e=1796256000&s=82f9606c9d4dd363b286516dd8e51904",
            "cdn_url": "https://api.virev.ai/v1/media/instagram_post/336259326/post_image?e=1796256000&s=82f9606c9d4dd363b286516dd8e51904",
            "cdn_status": "live",
            "media_state": "live"
          }
        ],
        "thumb": {
          "kind": "post_image",
          "ig_url": "https://api.virev.ai/v1/media/instagram_post/336259326/post_image?e=1796256000&s=82f9606c9d4dd363b286516dd8e51904",
          "cdn_url": "https://api.virev.ai/v1/media/instagram_post/336259326/post_image?e=1796256000&s=82f9606c9d4dd363b286516dd8e51904",
          "cdn_status": "live",
          "media_state": "live"
        }
      },
      {
        "id": 336259328,
        "shortcode": "DgJGfHpAS-1",
        "media_type": "video",
        "posted_at": "2026-11-24T23:09:51+00:00",
        "caption": "Much of the land in Cape Froward, Chile, is untamed—and it's set to remain that way when it becomes the 19th national park in Patagonia’s 1,700-mile Route of Parks by the end of 2027. Situated at the southernmost tip of mainland South Ameri…",
        "likes": 20858,
        "likes_hidden": false,
        "comments": 101,
        "tagged_users": [],
        "is_paid_partnership": false,
        "paid_partners": [],
        "coauthors": [],
        "brand_accounts": [],
        "items": [
          {
            "kind": "video_file",
            "ig_url": "https://api.virev.ai/v1/media/instagram_post/336259328/video?e=1796256000&s=eb2719d723f96ee835be95b124661a3c",
            "cdn_url": "https://api.virev.ai/v1/media/instagram_post/336259328/video?e=1796256000&s=eb2719d723f96ee835be95b124661a3c",
            "cdn_status": "live",
            "media_state": "live"
          }
        ],
        "thumb": {
          "kind": "post_image",
          "ig_url": "https://api.virev.ai/v1/media/instagram_post/336259328/post_image?e=1796256000&s=d9046a453aa0497bc999a92ad27e6769",
          "cdn_url": "https://api.virev.ai/v1/media/instagram_post/336259328/post_image?e=1796256000&s=d9046a453aa0497bc999a92ad27e6769",
          "cdn_status": "live",
          "media_state": "live"
        }
      }
    ],
    "mirror_stats": {
      "total": 12
    }
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$326.8567",
    "request_id": "req_0e6fa6a577daeb021abe0be58ed6cf5b"
  }
}

How it works

A profile block and its newest stored posts, each with every media item: ig_url (the Instagram URL), cdn_url (our mirrored copy, null until mirrored) and cdn_status. next_cursor is an opaque string, null on the last page; send it back as cursor for the next one. cdn_url is either a file URL or a signed /v1/media/{kind}/{id}/{slot} URL on this host that serves the same image without an API key. A signed URL works for at least 7 days, and a later read answers a fresh one.

Strictly DB: this reads what the crawler already stored and never crawls. A miss is a 404 and is not billed.

Billing: $0.0005 per started block of 12 posts returned, like /v1/instagram/user_feed. limit is pre-authorized in full.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404The profile is not stored. You are not charged.
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.

Instagram API guide