GET /v1/instagram/stored/comments

Instagram stored recent comments API: comments on 100 accounts by id

Returns the stored comments across the posts of up to 100 Instagram accounts, newest first, each with the post it sits on. Name the accounts in profile_ids, the profile_id the enriched profile API returns, and add since to set a start time. This is a stored read: only comments we already collected appear, and an account with none answers an empty list.

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/comments?profile_ids=1274&limit=2' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

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

Parameters

NameInTypeDescription
profile_ids requiredquerystringComma-separated profile ids, up to 100. Example 1274.
since querystringISO-8601 lower bound on the comment time.
cursor querystringOpaque next_cursor from the previous page.
limit queryintegerComments per page. Default 50.

Example response

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

json
{
  "data": {
    "comments": [
      {
        "comment_id": "17915828973266078",
        "author": "saraallissa",
        "author_id": "305501544",
        "author_verified": false,
        "text": "Prob no “men”",
        "likes": 0,
        "replies": null,
        "posted_at": "2026-10-06T22:42:54+00:00",
        "is_reply": false,
        "post": {
          "ig_post_id": "4001371264819931359",
          "shortcode": "DeHufcWDCjf",
          "caption": "Women in this Sardinian mountain village have high odds of living to 100. Researchers have identified it as a new blue zone—a geographic region where residents aged 70 and older have exceptional rates of survival and longevity. Here, women …",
          "posted_at": "2026-10-05T17:17:36+00:00",
          "is_video": false,
          "image_url": "https://api.virev.ai/v1/media/instagram_post/70624502/post_image?e=1796256000&s=0f677b97cc752a6864ec08f9453b9f48",
          "author": "natgeo",
          "profile_id": 1274,
          "image_cached": false
        }
      },
      {
        "comment_id": "17971083837151221",
        "author": "jhonfzoid",
        "author_id": "6773199639",
        "author_verified": false,
        "text": "Is probably more genetic than the others",
        "likes": 0,
        "replies": null,
        "posted_at": "2026-10-06T22:40:10+00:00",
        "is_reply": false,
        "post": {
          "ig_post_id": "4001371264819931359",
          "shortcode": "DeHufcWDCjf",
          "caption": "Women in this Sardinian mountain village have high odds of living to 100. Researchers have identified it as a new blue zone—a geographic region where residents aged 70 and older have exceptional rates of survival and longevity. Here, women …",
          "posted_at": "2026-10-05T17:17:36+00:00",
          "is_video": false,
          "image_url": "https://api.virev.ai/v1/media/instagram_post/70624502/post_image?e=1796256000&s=0f677b97cc752a6864ec08f9453b9f48",
          "author": "natgeo",
          "profile_id": 1274,
          "image_cached": false
        }
      }
    ],
    "next_cursor": "Wzg0MSwiMjAyNi0xMC0wNlQyMjo0MDoxMCswMDowMCJd",
    "has_more": true
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$326.8450",
    "request_id": "req_93139ce06f6988e00c03a14c59c71882"
  }
}

How it works

Stored comments across the posts of up to 100 accounts, newest first, each with the post it sits on. Name accounts by profile_id, the number /v1/instagram/profile returns. next_cursor is an opaque string while has_more is true; send it back as cursor for the next page.

Strictly DB: only comments the crawler already collected appear, and an account with none answers an empty list.

Errors

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