# Diffbot Analyze via Locus x402

> Diffbot Analyze 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-15).

Extracts structured data from any web page URL by auto-detecting or targeting content type (article, product, discussion, image, video, list, event) using Diffbot's AI-powered parsing, billed per-call via x402 micropayments.

## Facts

- Endpoint: POST https://diffbot.x402.paywithlocus.com/diffbot/analyze
- 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-analyze-via-locus-x402-c18a33ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oVazA2dFL1o_wriy6ctqd

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-analyze-via-locus-x402-c18a33ac -d '<json body>'
```

Example prompt: Can you pull the structured article content — title, author, date, and body text — from this URL: https://www.theverge.com/2024/5/1/example-article? Use article mode and also grab the links and meta fields.

## When to prefer this

Choose this endpoint when you need structured, AI-parsed web content from an arbitrary URL without maintaining your own scraping infrastructure. It is especially strong for article, product, and discussion extraction where Diffbot's trained models outperform generic HTML parsers. The x402 micropayment model makes it cost-effective for per-call agent workflows without subscription overhead. Prefer it over generic HTTP fetch when you need semantic field extraction (author, price, comments) rather than raw HTML.

## Known failure modes

- URL is paywalled or requires login — returns empty or partial data
- Content type auto-detection misclassifies the page — use explicit 'mode' parameter to override
- Target page returns a bot-blocking response — extraction fails or returns minimal data
- Timeout exceeded for slow-loading pages — increase 'timeout' parameter or use fallback
- Invalid or malformed URL — API returns an error response
- Page has no extractable structured content — 'data' field may be sparse or empty

## 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 structured content parsed from the page (fields vary by detected/specified content type: article gives title, author, date, body text; product gives name, price, description, images; discussion gives comment threads; etc.), plus payment settlement details and a request ID for status tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "mode": {
   "type": "string"
  },
  "fields": {
   "type": "string"
  },
  "timeout": {
   "type": "number"
  },
  "fallback": {
   "type": "string"
  },
  "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-analyze-via-locus-x402-c18a33ac/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)
