GET /v1/instagram/post

Instagram post API: get likes, views, caption and media by shortcode

Reads one Instagram post or reel live and returns Post: caption, likes, comments, views, media URLs, the owner and tagged accounts. Send the shortcode, the X in instagram.com/p/X/. The stored post API reads our saved copy instead.

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

Example request

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

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

Parameters

NameInTypeDescription
shortcode requiredquerystringPost shortcode, the X in instagram.com/p/X/. Example DblswrEy-OK.
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 querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference.

json
{
  "data": {
    "id": "3955764706547590026",
    "shortcode": "DblswrEy-OK",
    "taken_at": "2025-09-04T15:33:20+00:00",
    "kind": "video",
    "product_type": null,
    "caption": "a reel",
    "hashtags": [],
    "mentions": [],
    "accessibility_caption": null,
    "likes": 50000,
    "comments": 420,
    "views": 1200000,
    "counts_hidden": null,
    "comments_disabled": null,
    "is_pinned": null,
    "is_paid_partnership": null,
    "owner": {
      "id": "25025320",
      "username": "instagram",
      "full_name": "Instagram",
      "is_verified": true,
      "is_private": false,
      "avatar_url": "https://scontent.cdninstagram.com/ig_150.jpg",
      "latest_story_at": null,
      "extra": {}
    },
    "coauthors": [],
    "sponsors": [],
    "tagged": [
      {
        "id": "257850377",
        "username": "gracieabrams",
        "full_name": "Gracie Abrams",
        "is_verified": true,
        "is_private": null,
        "avatar_url": "https://scontent.cdninstagram.com/gracieabrams_150.jpg",
        "latest_story_at": null,
        "extra": {}
      }
    ],
    "location": null,
    "audio": null,
    "thumbnail_url": "https://scontent.cdninstagram.com/reel.jpg",
    "video_duration": null,
    "media": [
      {
        "kind": "video",
        "url": "https://scontent.cdninstagram.com/reel.mp4",
        "width": null,
        "height": null,
        "duration": null
      }
    ],
    "media_urls": [
      "https://scontent.cdninstagram.com/reel.mp4"
    ],
    "extra": {}
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-09-09T03:10:22Z",
    "cost": "$0.0005",
    "balance": "$0.7892",
    "request_id": "req_1b3d1468acec3665079289a41d6de64c"
  }
}

How it works

Wraps GET /p/{shortcode}/. Returns Post under data; the upstream document is an HTML page, so get_raw is not available.

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 Post, not a live capture.

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.

Guides that use this endpoint