Instagram Comments Scraper API
Send a post's shortcode, get its comments: text, timestamp, likes, reply count and who wrote it. Sort by popular, recent or verified.
Post
Endpoint
curl "https://api.toolzerhub.com/v2/instagram/media/comments?code=DgOT_LDGtxo" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"comment_count": 197,
"has_more_comments": false,
"comments": [
{
"pk": "18036003998855641",
"text": "wow, they also do kisses",
"created_at": 1795751470,
"comment_like_count": 6,
"child_comment_count": 0,
"user": {
"username": "hidden",
"is_verified": false
}
},
{
"pk": "18126818869897490",
"text": "LETSGOOOO",
"created_at": 1795750811,
"comment_like_count": 1,
"child_comment_count": 0,
"user": {
"username": "hidden",
"is_verified": false
}
},
{
"pk": "17972951387963299",
"text": "😮😮😮❤️ ❤️❤️",
"created_at": 1795741029,
"comment_like_count": 0,
"child_comment_count": 0,
"user": {
"username": "hidden",
"is_verified": false
}
}
]
}
}- 1
- 15
- $0.11
- $0.06
Inputs
What you send
GET /v2/instagram/media/comments with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| coderequired | DgOT_LDGtxo | Shortcode from the post URL, the media ID or the full URL. |
| sort_type | recent | popular, recent or verified. |
| pagination_token | … | From the previous response. |
Limits
Good to know
- Replies are counted in child_comment_count but come from a separate call.
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/instagram/media/commentsSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 comments cost $0.11
67 calls at 1 credit each is 67 credits: $0.11 on the $5 3K pack, down to $0.06 on the largest plan. The free 100 credits a month cover about 1,500 comments, and failed calls are not charged.
FAQ
Questions
- Where do I find the shortcode?
- Can I export comments to Excel?
- What does a giveaway with 3,000 comments cost?
Related
Often used with it
Same key, same credits. Every Instagram endpoint is on the Instagram API page.
Try the Instagram Comments API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)