API · Instagram
GET /instagram/posts/{shortcode}/comments/find
Find an Instagram comment by id, author or text.
| |
|---|
| Request | GET /v1/instagram/posts/{shortcode}/comments/find |
| Operation id | instagram.comment.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Find an Instagram comment by id, author or text.
| Name | Type | Required | Description |
|---|
shortcode | string | yes | A post or reel shortcode, or its URL (instagram.com/p/<code>/ or /reel/<code>/). Example: DfAWxdIFmVB. |
| Name | Type | Required | Description |
|---|
comment_id | string | no | Numeric comment id (pk). |
author_username | string | no | |
text_contains | string | no | |
max | integer | no | Matches to return (default 5). |
max_pages | integer | no | |
| Status | Meaning | Schema |
|---|
200 | The matching comments. | InstagramCommentLookup |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Instagram is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
comments | InstagramComment[] | |
pages_scanned | integer | |
Errors use one shape everywhere; see Errors for every code and what to do.