# Instagram Comments Scraper

> Instagram Comments Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Extracts public comments from Instagram posts and reels given one or more URLs, returning structured comment data including text, timestamp, likes, and position.

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/instagram-comments?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/instagram-comments-scraper-87c57650
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lYmH1744-Bs_0rCbum2zs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability instagram-comments-scraper-87c57650 -d '<json body>'
```

Example prompt: Pull up to 15 comments from each of these two Instagram posts — https://www.instagram.com/p/ABC123/ and https://www.instagram.com/p/DEF456/ — and give me the comment text, likes count, and timestamp for each one.

## When to prefer this

Choose this endpoint when you need structured, pay-per-use extraction of public Instagram comments without managing your own scraping infrastructure. It is well-suited for one-off social listening tasks, influencer audits, or multi-URL batch comment collection where failed/empty runs are not billed. Prefer alternatives if you need deep comment threads beyond ~14 comments per post, private account data, or real-time streaming of new comments.

## Known failure modes

- Private or restricted Instagram account returns empty results (not charged)
- Invalid or malformed Instagram URL causes failed run (not charged)
- Instagram rate limiting or anti-bot measures may reduce comment yield
- Post has been deleted or made private since URL was captured
- resultsLimit higher than 14 still returns only ~10–14 due to Instagram page constraints
- Network timeout for very large or slow-loading posts

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of retrieved items and an array of comment objects, each containing id, text, postId, postUrl, position (order on page), timestamp, commentUrl, and likesCount. Note: Instagram's public page typically exposes only 10–14 comments regardless of the limit requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxItems": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Maximum comments across all URLs. Set to 0 for no total cap."
  },
  "directUrls": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Public Instagram post or reel URLs. Add one or more links; each link yields the comments exposed on its public page."
  },
  "resultsLimit": {
   "type": "integer",
   "default": 15,
   "minimum": 1,
   "description": "Maximum comments to save from each URL. The public page often exposes only about 10 to 14 comments, even when a larger limit is entered."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "id": null,
    "text": null,
    "postId": null,
    "postUrl": null,
    "position": null,
    "timestamp": null,
    "commentUrl": null,
    "likesCount": null
   }
  ],
  "product": "instagram-comments"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/instagram-comments-scraper-87c57650/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
