Instagram Comment Scraper: Extract Comments from Instagram Posts via API

Instagram Comment Scraper: Extract Comments from Instagram Posts via API

Instagram comments are a primary source of audience feedback, brand sentiment data, and user-generated content for research and analytics. Syphoon's Instagram Scraper API returns comments from any public Instagram post through a cursor-based pagination request, returning comment text, commenter usernames, timestamps, and reply counts.

Tools built on Instagram comment data include sentiment analysis platforms, brand monitoring systems, audience research tools, customer feedback aggregators, and NLP training dataset builders.

Need to scrape Instagram comments at scale?

What the API Returns

The API returns structured comment data in a standardized JSON format.

FieldDescription
comment_textThe full text of the comment
commenter_usernameUsername of the account that posted the comment
commenter_idUnique ID of the commenter
timestampWhen the comment was posted
like_countNumber of likes on the comment
reply_countNumber of replies to the comment
comment_idUnique identifier for the comment

Making a Request

Pass the Instagram post URL with data_type set to comments. Pagination uses cursor_id.

python
1import requests
2
3payload = {  
4    "url": "https://www.instagram.com/p/POST_SHORTCODE/",  
5    "data_type": "comments",  
6    "cursor_id": None,  
7    "key": "YOUR_SYPHOON_KEY",  
8    "method": "GET"  
9}  
10response = requests.post("https://api.syphoon.com", json=payload)  
11if response.status_code == 200:  
12    data = response.json()  
13    # Pass cursor from response to get the next page of comments

Set cursor_id to null for the first request. Pass the cursor returned in the response to retrieve subsequent pages.

Response Status Codes

  • 200Success
  • 400Invalid response from Instagram (charged)
  • 404Incorrect URL (charged)
  • 429Concurrency exceeded
  • 5xxServer error

For other Instagram data extraction needs, check out our guides on Instagram Scraper and Instagram Post Scraper.

Ready to start collecting Instagram comment data?

Frequently Asked Questions

Send a POST request to https://api.syphoon.com with the Instagram post URL, data_type set to comments, and cursor_id set to null for the first page. The response returns comment text, commenter username, timestamp, like count, and reply count for each comment. Pass the returned cursor as cursor_id on the next request to paginate through all comments.
The comments request returns structured comment data for any public Instagram post. Each comment entry includes the comment text, commenter username, commenter ID, timestamp, like count, reply count, and comment ID.
Yes. Run a separate comments request per post URL. For bulk comment collection across a profile's posts, first retrieve the post list using the posts data type, then run comment requests for each post shortcode.
The comments response includes reply_count per comment. For extracting the full text of replies, contact support@syphoon.com to confirm current reply extraction support.
Reach out through our contact form. We will set up your account and provide your API key.

Join Our Community

Connect with our team, discuss your use case, ask technical questions, and share feedback with a community of people working on similar problems.

Related Resources

Visit our Blog
Expedia Scraper API: Why GraphQL Beats HTML Parsing for Hotel Data
Scraper

Expedia Scraper API: Why GraphQL Beats HTML Parsing for Hotel Data

Expedia's own site runs on GraphQL, not rendered HTML. Learn why reading that data layer directly beats CSS-selector scraping, and see real hotel data output.

Daniel HargreavesAugust 26, 2026
TikTok Shop US Seller Scraper: Track Shop Products, Prices and Performance
Scraper

TikTok Shop US Seller Scraper: Track Shop Products, Prices and Performance

Pull a TikTok Shop seller's full product catalog: pricing, discounts, ratings, and sales volume per listing. Real sample data and how to build ongoing seller tracking.

Priya NairAugust 20, 2026
TikTok Shop US Search Scraper API: Extract Products by Keyword
Scraper

TikTok Shop US Search Scraper API: Extract Products by Keyword

Extract TikTok Shop US search results by keyword: pricing, ratings, sold count, and seller data. Real sample output and how to build ongoing search monitoring.

Priya NairAugust 18, 2026