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
Best NetNut Alternatives for Residential and Mobile Proxies in 2026
IP

Best NetNut Alternatives for Residential and Mobile Proxies in 2026

Compare the best NetNut alternatives for residential and mobile proxies in 2026, including IP pool size and geo-targeting, with Syphoon, Bright Data, Oxylabs, Decodo, and IPRoyal.

Daniel HargreavesJuly 20, 2026
Walmart Product API vs Custom Scraper: Which Is Better for Data Teams?
Scraper

Walmart Product API vs Custom Scraper: Which Is Better for Data Teams?

Every data team that wants Walmart product or pricing data eventually hits the same fork: build a scraper in-house, or send requests to a dedicated API and let someone else own the collection layer. Learn what each path actually requires, where the costs really sit, and a framework for deciding which one fits your team.

Marcus WebbJuly 18, 2026
Walmart Scraper API: Extract Product Data, Prices, and Availability
Scraper

Walmart Scraper API: Extract Product Data, Prices, and Availability

Walmart has grown into the second-largest ecommerce platform in the United States, and the gap with Amazon is narrowing. Syphoon's Walmart Scraper API returns structured product data from any Walmart product or search page, covering pricing, availability, seller information, ratings, and specifications.

Priya NairJuly 16, 2026