# API Direct – Instagram Post Comments

> API Direct – Instagram Post Comments is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-30).

Fetches paginated comments on an Instagram post or reel by URL or shortcode, with optional AI sentiment analysis.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/instagram/post/comments?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-direct-instagram-post-comments-69dd7c46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lFrue93RCNJCqlFQ1-so7

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 api-direct-instagram-post-comments-69dd7c46
```

Example prompt: Can you pull the top 30 most popular comments on this Instagram post — https://www.instagram.com/p/CxYQJO8xuC6/ — and include the AI emotion analysis for each one?

## When to prefer this

Use this endpoint when you need structured comment data from a specific Instagram post or reel by URL or shortcode. It is the right choice when you want to analyze audience reactions, extract user feedback, or monitor engagement on known Instagram content. The optional AI sentiment analysis (Plutchik's Wheel) makes it preferable over raw scrapers when emotional tone per comment is needed. It supports pagination up to 20 pages and sorting by popular or recent, making it suitable for both quick sampling and deeper comment mining.

## Known failure modes

- Invalid or deleted Instagram post URL returns an error or empty result
- Private account posts are inaccessible and return an access error
- Shortcode not found returns a 404-style error
- Exceeding the page limit (max 20) results in a validation error
- Rate limiting or Instagram anti-scraping blocks may return transient failures
- Malformed URL or shortcode format triggers input validation error

## How this service works

Get the comments on an Instagram post or reel by URL or shortcode.

## Output

Returns paginated comment data for the specified Instagram post or reel, including comment text, author info, and metadata. When sentiment analysis is enabled, each comment also includes Plutchik's Wheel emotion scores, a dominant emotion label, intensity rating, and polarity (positive/negative/neutral). Up to 15 comments per page, up to 20 pages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "Instagram post or reel URL, e.g. https://www.instagram.com/p/CxYQJO8xuC6/ (max 500 characters). Provide either url or code."
      },
      "code": {
       "type": "string",
       "maxLength": 50,
       "description": "The post's shortcode, e.g. CxYQJO8xuC6, or numeric media ID (max 50 characters). Provide either url or code."
      },
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 20,
       "minimum": 1,
       "description": "Number of pages to fetch, 1-20 (default: 1). Each page returns up to 15 comments."
      },
      "sort_by": {
       "enum": [
        "popular",
        "recent"
       ],
       "type": "string",
       "default": "popular",
       "description": "Sort order: popular or recent (default: popular)"
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis (Plutchik's Wheel) to each result. Adds +$0.001 per page to the cost. Returns emotion scores, dominant emotion, intensity, and polarity."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-instagram-post-comments-69dd7c46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
