fetchproof.

/v2/instagram/post/comments

GET

Comments

Get post or reel comments; expect about 90% success. Pages with comments cost 1 credit, or 15 with include_replies=true. Empty pages and errors cost 0 credits.

Credit cost

Default: 1 credit when no rule matches.

  1. 0 credits when response field comments is empty or absent.
  2. 15 credits when request parameter include_replies is true.
How charges are determined

Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.

A call that fails costs 0 credits. A result served from cache costs 0 credits.

`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.

A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).

A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.

Cache supportNot specified in the published contract.
PaginationNo explicit pagination metadata in the published contract. Consult the parameters and response fields below.

Parameters

NameLocation / requiredSchema
url

Instagram post or reel URL.

query / required

string

include_replies

Include replies for each comment. Costs 15 credits if comments are returned, even without replies; empty pages cost 0. Slower and may time out at 29 seconds.

query / optional

boolean

cursor

Pass the previous response's cursor for more comments.

query / optional

string

Request examples

Replace placeholder values and supply your own API key. For operations with a request body, populate the body using the schema above.

cURL
curl --request GET 'https://api.fetchproof.com/v2/instagram/post/comments?url=YOUR_URL' \
  --header 'x-api-key: YOUR_API_KEY'
JavaScript
const response = await fetch("https://api.fetchproof.com/v2/instagram/post/comments?url=YOUR_URL", {
  method: 'GET',
  headers: { 'x-api-key': process.env.FETCHPROOF_API_KEY }
});
console.log(await response.text());
Python
import os
import requests

response = requests.get("https://api.fetchproof.com/v2/instagram/post/comments?url=YOUR_URL",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]})
print(response.text)

Responses

200Success. Envelope: success / credits_remaining / credits_charged.

application/json

object

successrequired

boolean

credits_remainingrequired

integer

credits_chargedrequired

integer

commentsrequired

array

Array items

object

idrequired

string

textrequired

string

created_atrequired

string

{
  "format": "date-time"
}
comment_like_countrequired

integer

child_comment_countrequired

integer

repliesrequired

array

replies_cursorrequired

null

has_more_repliesrequired

boolean

userrequired

object

is_verifiedrequired

boolean

idrequired

string

pkrequired

string

is_unpublishedrequired

null

profile_pic_urlrequired

string

usernamerequired

string

fbid_v2required

string

cursorrequired

string

401Invalid or missing x-api-key
402No credits remaining
403Upstream denied (age gate, audience controls)
404Resource or endpoint not found
429Rate limited