Skip to content

Instagram Comments API

Fetch Instagram comments for multiple post URLs using Apify's Instagram Comment Scraper.

Endpoint

GET https://api.recoupable.com/api/instagram/comments

Parameters

NameTypeRequiredDescription
postUrlsarray[string]YesArray of Instagram post URLs to fetch comments for
resultsLimitnumberNoMaximum number of comments to fetch (default: 10000)
isNewestCommentsbooleanNoWhether to fetch newest comments first (default: null)

Request Examples

cURL
curl -X GET "https://api.recoupable.com/api/instagram/comments?postUrls=https://instagram.com/p/abc123&postUrls=https://instagram.com/p/xyz789&resultsLimit=50" \
  -H "Content-Type: application/json"

Example Response

{
  "runId": "abc123xyz",
  "datasetId": "def456uvw",
  "error": null
}

Response Properties

PropertyTypeDescription
runIdstringUnique identifier for the Apify run
datasetIdstringUnique identifier for the dataset containing scraped data
errorstringError message if the run failed (null if successful)

Notes

  • This endpoint uses Apify's Instagram Comment Scraper to scrape Instagram comment data
  • The actual comment data will be available in the Apify dataset after the run completes
  • Use the Apify Scraper Results API to check the status and retrieve the scraped data
  • Rate limits may apply based on Instagram's restrictions
  • The scraping process may take some time to complete
  • Results are not real-time and may be subject to Instagram's rate limiting
  • Use resultsLimit to control how many comments to fetch per post (useful for performance optimization)
  • Set isNewestComments to true to retrieve newest comments first, false for oldest first, or null (default) to use platform default sorting