How to Scrape Instagram Comments
To scrape Instagram comments, put the post URLs, such as https://www.instagram.com/p/DC7Q4z5JPMX/, or the post codes in apidojo's Instagram Comments Scraper API on Apify and set maxItems.

To scrape Instagram comments, put the post URLs, such as https://www.instagram.com/p/DC7Q4z5JPMX/, or the post codes in apidojo’s Instagram Comments Scraper API on Apify and set maxItems. It charges $0.0075 per post, with the first 15 comments of each post included, and needs no Instagram login. apidojo’s pay-per-result Instagram Comments Scraper is the alternative, at $0.50 per 1,000 comments. Every other collection task is mapped in how to scrape Instagram data.
Comments are the richest text on Instagram: questions, complaints, praise and spam all live there. This guide covers inputs, the fields you get, costs, and what to do with the data. The full overview is in how to scrape Instagram data in 2026. Long threads run into the limits covered in Instagram scraping limits.
Which apidojo Comments Actor Should You Use?
Use the Comments Scraper API for most posts, because its per-post price includes the first 15 comments; use the pay-per-result Comments Scraper for very large comment threads priced per comment. The table compares them, using each listing (Apify, Apify).
| Point | Instagram Comments Scraper API | Instagram Comments Scraper |
|---|---|---|
| Input | startUrls (post URLs) or postIds |
startUrls (post URLs only) or postIds |
| Pricing | $0.0075 per post, first 15 comments included | $0.50 per 1,000 comments |
| Minimum | None stated | At least 10 comments per post |
| Cap | maxItems |
maxItems |
How Do You Scrape Comments From an Instagram Post?
List the post URLs, or the codes from them, and set a total cap. The post code is the part after /p/ in the URL; for https://www.instagram.com/p/DC7Q4z5JPMX/ it’s DC7Q4z5JPMX.
{
"startUrls": ["https://www.instagram.com/p/DC7Q4z5JPMX/"],
"postIds": ["DCKDRSpiy3b"],
"maxItems": 1000
}
This is the input format apidojo’s listing shows for the Comments Scraper API (Apify). Only post URLs work; profile or hashtag URLs aren’t accepted. To find the posts worth scraping, collect a profile’s or hashtag’s posts first and sort by commentCount; see how to scrape Instagram profiles and posts. For TikTok threads, see how to scrape TikTok comments and replies.
What Data Does a Scraped Comment Contain?
Each comment comes with its text, time, likes, reply count and the commenter’s public profile. The fields below are from apidojo’s Instagram Comments Scraper output example (Apify).
| Field | Contains |
|---|---|
postId |
The post the comment belongs to |
id, type |
The comment’s ID and type |
message |
The comment text |
createdAt |
When it was posted |
likeCount, replyCount |
Likes on the comment and number of replies |
user |
username, fullName, isVerified, isPrivate |
isRanked |
Whether Instagram ranked the comment |
What Does Scraping Instagram Comments Cost?
On the Comments Scraper API, 100 posts cost $0.75 when each has up to 15 comments; on the pay-per-result Comments Scraper, 100,000 comments cost $50. For many posts with few comments each, the per-post price is cheaper; for a few posts with huge threads, per-comment pricing usually is.
What Can You Do With Instagram Comments?
Comments show what an audience thinks, asks and complains about. Listed below are the 4 common uses.
- Sentiment analysis of a campaign or product; see how to analyse Instagram comment sentiment.
- Influencer vetting, by checking for generic or repeated comments; see how to vet Instagram influencers with data.
- FAQ and content ideas from repeated questions.
- Customer service follow-ups on public complaints.
Questions people ask
Can you scrape comments from private accounts?
No, private accounts' posts aren't public, so their comments can't be collected.
Can you scrape comments on reels?
Post URLs and post IDs are the documented inputs; test a reel's code in postIds on a small run before scaling up.
Do you need an Instagram login?
No, apidojo's comment actors don't need one.