# Diffbot via Locus x402 — Web Data Extraction

> Diffbot via Locus x402 — Web Data Extraction 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-15).

Extracts structured data (articles, products, discussions, images, videos) from any URL using Diffbot's AI-powered web extraction, billed per call via x402/USDC micropayment.

## Facts

- Endpoint: POST https://diffbot.x402.paywithlocus.com/diffbot/job
- Price: $0.0042/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diffbot-via-locus-x402-web-data-extraction-3b3c176c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xKuq1aK7X6y0YLN_cO4yl

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-via-locus-x402-web-data-extraction-3b3c176c -d '<json body>'
```

Example prompt: Can you extract the full article text, author, and publication date from this URL — https://techcrunch.com/2024/01/15/some-article — including any comment threads on the page?

## When to prefer this

Choose this endpoint when you need structured, AI-parsed web content from arbitrary URLs without maintaining your own scraping infrastructure. It is especially strong for extracting article text, product data, or discussion threads from complex, JavaScript-heavy pages. Prefer it over raw HTTP fetches or basic scrapers when you need clean structured JSON output and are comfortable with per-call USDC micropayment billing via x402.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — extraction fails with error in response
- Page is heavily JavaScript-rendered and Diffbot cannot parse content — empty or partial data returned
- Timeout exceeded (default 30000ms) if page loads slowly — request may return incomplete data
- URL points to a non-extractable file type (PDF, raw binary) — may return empty data object
- Invalid or malformed URL input — API returns error response
- Payment authorization failure via x402 — request not processed

## How this service works

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

## Output

Returns a JSON object with a `data` field containing the extracted structured content (varies by page type: article text, product fields, discussion threads, etc.), plus payment confirmation details including settled USDC amount and a request ID with a status URL for tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "fields": {
   "type": "string"
  },
  "timeout": {
   "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-via-locus-x402-web-data-extraction-3b3c176c/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)
