GET /v1/instagram/stored/post/media

Instagram stored post media API: image and video URLs by shortcode

Returns every stored image or video item of one Instagram post, each with ig_url, cdn_url (our mirrored copy, null until mirrored) and cdn_status, plus the caption and counts. A signed cdn_url serves the file without an API key for at least 7 days. This is a stored read: a miss is a 404 and never a crawl.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

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

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

Parameters

NameInTypeDescription
q requiredquerystringShortcode, or a post, reel or tv URL. Example DblswrEy-OK.

Example response

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

json
{
  "data": {
    "shortcode": "DblswrEy-OK",
    "media_type": "video",
    "posted_at": "2026-08-03T19:07:27+00:00",
    "caption": "Go inside @gracieabrams’ world ❤️🎶\n\nThe singer-songwriter shares the creative process behind her new album “Daughter from Hell” –  nature, dancing and the quiet in between. \n\n“Sometimes it can be surprising how strange and out-of-body the …",
    "likes": 205627,
    "comments": 7429,
    "items": [
      {
        "kind": "video_file",
        "ig_url": "https://scontent-lga3-1.cdninstagram.com/o1/v/t2/f2/m86/AQPkd8JknkaAgE6sTz1BRINW2tfvf0XhJjwIvNyvNvsRHEtfNpzECv1xOQAFWWFuyp-Me-QcDLji0-J2pw5bJPPBhQdgYB6JhFSd4Kg.mp4?_nc_cat=111&_nc_sid=5e9851&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=z…",
        "cdn_url": null,
        "cdn_status": "absent"
      }
    ]
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$474.5808",
    "request_id": "req_396a6f7be747a307f7a3339cc81bb8d2"
  }
}

How it works

Every stored image or video item of one post, each with ig_url, cdn_url (our mirrored copy, null until mirrored) and cdn_status, plus the caption and counts. 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.

Errors

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