Skip to main content
GET
/
v1
/
instagram
/
post
/
comments
Get Comments
curl --request GET \
  --url https://api.scraper.creatorlookup.com/v1/instagram/post/comments \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "text": "<string>",
      "username": "<string>",
      "timestamp": 123,
      "like_count": 123
    }
  ],
  "credits_used": 123,
  "credits_remaining": 123
}

Request

Headers

NameRequiredDescription
x-api-keyYesYour API key

Query parameters

shortcode
string
required
The post shortcode to fetch comments for.
limit
number
default:20
Number of comments to return. Min: 1, max: 200. Defaults to 20.

Response

data
InstagramComment[]
Array of comment objects.
credits_used
number
Credits deducted (2)
credits_remaining
number
Remaining credit balance
Cost: 2 credits

Examples

curl -H "x-api-key: sk-your-api-key" \
  "https://api.scraper.creatorlookup.com/v1/instagram/post/comments?shortcode=CxAbCdEfGh&limit=10"

200 — Success

{
  "data": [
    {
      "id": "17890012345678901",
      "text": "Amazing photo! Love the colors",
      "username": "photouser",
      "timestamp": 1700001000,
      "like_count": 42
    },
    {
      "id": "17890012345678902",
      "text": "Where was this taken?",
      "username": "traveler99",
      "timestamp": 1700002000,
      "like_count": 5
    }
  ],
  "credits_used": 2,
  "credits_remaining": 9998
}

402 — Insufficient credits

{
  "error": {
    "code": "INSUFFICIENT_CREDITS",
    "message": "This endpoint requires 2 credits, you have 1"
  }
}

504 — Timeout

{
  "error": {
    "code": "TIMEOUT",
    "message": "Scraping request timed out"
  }
}