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?

Talk to us

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?

Talk to us

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
Shopee Search API: Extract Keyword Search and Category Listing Data from Shopee
Scraper

Shopee Search API: Extract Keyword Search and Category Listing Data from Shopee

Syphoon's Shopee Search API returns the full result set for any keyword search or category browser URL across all ten Shopee markets. Extract product names, pricing, sold counts, ratings, and seller details via one endpoint.

Priya NairJuly 03, 2026
Instagram Post Scraper: Extract Post Lists and Post Detail Data from Instagram
Scraper

Instagram Post Scraper: Extract Post Lists and Post Detail Data from Instagram

Syphoon's Instagram Post Scraper API supports two request types: post list retrieval from any profile with cursor pagination, and full post detail including media URLs, captions, and like counts. No login required.

Priya NairJuly 01, 2026
Shopee Product Page Scraper: Extract Full Product Data from Any Shopee Listing
Scraper

Shopee Product Page Scraper: Extract Full Product Data from Any Shopee Listing

Syphoon's Shopee PDP scraper returns complete product data from any Shopee listing: full pricing, seller details, product description, specifications, images, ratings breakdown, variant data, and customer reviews. Covers all ten Shopee markets through one endpoint.

Priya NairJun 30, 2026