# Diffbot Discussion Extraction via Locus x402

> Diffbot Discussion Extraction via Locus x402 is a paid API for AI agents from diffbot.x402.paywithlocus.com, paid per call via x402, $0.0042/call, status unknown (last checked 2026-09-14).

Extracts structured comment threads and discussion data from forum pages, Reddit posts, or any discussion-style URL using Diffbot's AI extraction engine, billed per-call via x402 micropayments.

## Facts

- Endpoint: POST https://diffbot.x402.paywithlocus.com/diffbot/discussion
- Price: $0.0042/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diffbot-discussion-extraction-via-locus-x402-89b51054
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__evtJlqjtb7PJH23PAxKF

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 diffbot-discussion-extraction-via-locus-x402-89b51054 -d '<json body>'
```

Example prompt: Pull all the comments and discussion threads from this Reddit post — https://www.reddit.com/r/programming/comments/abc123 — and follow pagination to get up to 10 pages worth of replies.

## When to prefer this

Use this endpoint when you need structured comment/discussion data from a specific forum, Reddit, Hacker News, or community page URL and want AI-powered extraction that handles nested threads and pagination automatically. Prefer it over generic scraping when you need clean, typed JSON output rather than raw HTML, and when per-call micropayment billing via x402 fits your cost model.

## Known failure modes

- URL is not a discussion or forum page — Diffbot may return empty or low-confidence results
- Pagination timeout if maxPages is high and the site is slow — reduce maxPages or increase timeout
- Target site blocks scrapers — returns empty data or error from Diffbot
- Invalid or malformed URL — request fails validation
- Rate limits or payment failure on x402 layer — returns 402 or payment error

## How this service works

Web data extraction — articles, products, discussions, images, videos, and auto-detect.

## Output

Returns a JSON object containing structured discussion data (comment threads, authors, timestamps, reply nesting), payment settlement details in USDC, and a request tracking ID. The `data` field contains Diffbot's parsed discussion schema including posts, participants, and pagination-followed content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "fields": {
   "type": "string"
  },
  "paging": {
   "type": "boolean"
  },
  "timeout": {
   "type": "number"
  },
  "maxPages": {
   "type": "number"
  },
  "discussion": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/diffbot-discussion-extraction-via-locus-x402-89b51054/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from diffbot.x402.paywithlocus.com](https://www.zero.xyz/host/diffbot.x402.paywithlocus.com/llms.txt)
