# Twitter/X Comments Scraper

> Twitter/X 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).

Retrieves structured reply/comment data for one or more public Twitter/X posts by URL or numeric tweet ID

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/twitter-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/twitter-x-comments-scraper-da5fa152
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FKHBnW0FKjKtplfw6tHE0

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 twitter-x-comments-scraper-da5fa152 -d '<json body>'
```

Example prompt: Can you pull the top 200 comments on this tweet — https://twitter.com/elonmusk/status/1234567890 — and give me the text, likes, and retweet counts for each reply?

## When to prefer this

Choose this endpoint when you need structured, pay-per-successful-call reply data from public Twitter/X posts without building your own scraper. Supports both single and batch tweet lookups. Ideal for sentiment analysis, competitive research, or audience monitoring pipelines where you only pay when data is actually returned.

## Known failure modes

- Tweet is private or suspended — returns empty items array
- Invalid tweet ID or malformed URL — likely returns empty result or error
- Rate limiting or blocking by Twitter/X — may return partial results
- Tweet has no replies — returns count of 0 with empty items array
- maxItems exceeds 50000 — request rejected by schema validation

## 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 reply objects, each containing: reply ID, reply URL, reply text, display text, like count, retweet count, parent tweet ID, and parent tweet URL. Failed or empty runs are not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tweetId": {
   "type": "string",
   "description": "One public x.com or twitter.com status URL, or its numeric post ID."
  },
  "maxItems": {
   "type": "integer",
   "default": 100,
   "maximum": 50000,
   "minimum": 1,
   "description": "Maximum unique reply rows across all posts. Each public page exposes only a short ranked selection."
  },
  "tweetIds": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional batch of public status URLs or numeric IDs. Duplicate posts are processed once."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "id": null,
    "url": null,
    "text": null,
    "likes": null,
    "tweetId": null,
    "retweets": null,
    "tweetUrl": null,
    "displayText": null
   }
  ],
  "product": "twitter-comments"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twitter-x-comments-scraper-da5fa152/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)
