INSTAGRAM API
Comments
Retrieve comments from Instagram with a single API request.
GET
/api/data/v2/instagram/post/comments1credit base cost
With
include_replies=true, this request can use up to 15 credits. The exact charge is returned with the response.Request parameters
Up to 1 creditThe URL of the post or reel to get comments from
The cursor to get more comments. Get 'cursor' from previous response.
Set to true to include replies for every returned comment. This always costs 15 credits because each comment requires a separate Instagram replies request. You will still be charged 15 credits if no replies are returned. This is much slower
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v2/instagram/post/comments?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDOq6eV6iIgD' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"comments": [
{
"id": "18051843701642870",
"text": "\"...but who wants to know people who don't love animals anyway?\". ❤️",
"created_at": "2025-09-16T17:03:04.000Z",
"comment_like_count": 0,
"child_comment_count": 0,
"replies": [],
"replies_cursor": null,
"has_more_replies": false,
"user": {
"is_verified": false,
"id": "46773599357",
"pk": "46773599357",
"is_unpublished": null,
"profile_pic_url": "https://scontent-dfw5-1.cdninstagram.com/v/t51.2885-19/542013919_18051324464559358_4060586438619554592_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2QEVOAPWq7DXE6cVfhoMQb0GTMvPo_vizELP9TUgQylvA5jBW1WSonDzvjeTQpAGJ3w&_nc_ohc=b__bzrMG6kYQ7kNvwGXM67R&_nc_gid=oDBffhoPbGLAq2tbCGpGKg&edm=AKp6CbIBAAAA&ccb=7-5&oh=00_AflThVwZ86n6DiACA5-zJCNFQZWBwHfaG6AXZclgea57BA&oe=695A3139&_nc_sid=d62176",
"username": "catherina_thijs",
"fbid_v2": "17841446780736699"
}
}
],
"cursor": "AQHSpoi6HyDbzYRMzrD.........",
"credits_charged": 15,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"text": {
"type": "string"
},
"created_at": {
"type": "string"
},
"comment_like_count": {
"type": "integer"
},
"child_comment_count": {
"type": "integer"
},
"replies": {
"type": "array"
},
"replies_cursor": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"has_more_replies": {
"type": "boolean"
},
"user": {
"type": "object",
"properties": {
"is_verified": {
"type": "boolean"
},
"id": {
"type": "string"
},
"pk": {
"type": "string"
},
"is_unpublished": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"profile_pic_url": {
"type": "string"
},
"username": {
"type": "string"
},
"fbid_v2": {
"type": "string"
}
}
}
}
}
},
"cursor": {
"type": "string"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}