Extract JSON from a PDF or long document into your schema, with a verified source quote…
Extract JSON from a PDF or long document into your schema, with a verified source quote and page number for every field. Public PDF/HTML URL or pasted text, up to 40 pages. $0.30 USDC on Base via x402. No API key. Text PDFs only (no OCR); no login/paywall sou…
by x402.hydratrader.ai · discovered, not yet claimed by its owner · updated 2026-10-10
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Extract JSON from a PDF or long document into your schema, with a verified source quote and page number for every field. Public PDF/HTML URL or pasted text, up to 40 pages. $0.30 USDC on Base via x402. No API key. Text PDFs only (no OCR); no login/paywall sources.
Tags: bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-10
{
"client_ref": "demo-1",
"schema": {
"properties": {
"author": {
"type": "string"
},
"category": {
"type": "string"
},
"published": {
"type": "string"
},
"rfc_number": {
"type": "integer"
},
"title": {
"type": "string"
}
},
"required": [
"rfc_number",
"title"
],
"type": "object"
},
"source": {
"type": "public_url",
"url": "https://www.rfc-editor.org/rfc/pdfrfc/rfc2119.txt.pdf"
}
}{
"client_ref": "demo-1",
"confidence": 0.95,
"coverage": 1,
"data": {
"author": "S. Bradner",
"category": "Best Current Practice",
"published": "March 1997",
"rfc_number": 2119,
"title": "Key words for use in RFCs to Indicate Requirement Levels"
},
"endpoint": "document-extract",
"evidence": {
"author": {
"confidence": 0.95,
"page": 1,
"quote": "S. Bradner"
},
"category": {
"confidence": 0.95,
"page": 1,
"quote": "Category: Best Current Practice"
},
"published": {
"confidence": 0.95,
"page": 1,
"quote": "March 1997"
},
"rfc_number": {
"confidence": 0.95,
"page": 1,
"quote": "Request for Comments: 2119"
},
"title": {
"confidence": 0.95,
"page": 1,
"quote": "Key words for use in RFCs to Indicate Requirement Levels"
}
},
"missing": [],
"next_tasks": [
{
"endpoint": "https://x402.hydratrader.ai/v1/summarize",
"example_body": {
"client_ref": "demo-1",
"input": "{\"rfc_number\":2119,…}"
},
"method": "POST",
"price_usd": "0.01",
"task": "summarize",
"why": "Short plain-language reading of the extracted record"
}
],
"ok": true,
"schema_valid": true,
"source_meta": {
"chars": 9000,
"pages_read": 3,
"pages_total": 3,
"sha256": "…",
"truncated": false,
"type": "pdf",
"url": "https://www.rfc-editor.org/rfc/pdfrfc/rfc2119.txt.pdf"
},
"usage": {
"input_tokens": 3600,
"latency_ms": 6000,
"llm_calls": 1,
"model": "grok-4.20-0309-non-reasoning",
"model_cost_est_usdc": "0.0051",
"output_tokens": 250,
"price_usdc": "0.30"
},
"warnings": []
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/32590.jsonfor the price and payment options. - Pay. Call
GET https://x402.hydratrader.ai/v1/document-extract. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.3 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.3 | 0x55d06e282a699710e03088c218a9e79d2b1616fc | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x55d06e282a699710e03088c218a9e79d2b1616fc",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "300000",
"amountUsd": 0.3,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {},
"type": "string"
}Examples
curl -X POST 'https://x402.hydratrader.ai/v1/document-extract' -H 'Content-Type: application/json' --data '{"client_ref":"demo-1","schema":{"properties":{"author":{"type":"string"},"category":{"type":"string"},"published":{"type":"string"},"rfc_number":{"type":"integer"},"title":{"type":"string"}},"required":["rfc_number","title"],"type":"object"},"source":{"type":"public_url","url":"https://www.rfc-editor.org/rfc/pdfrfc/rfc2119.txt.pdf"}}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://x402.hydratrader.ai/v1/document-extract", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"client_ref\":\"demo-1\",\"schema\":{\"properties\":{\"author\":{\"type\":\"string\"},\"category\":{\"type\":\"string\"},\"published\":{\"type\":\"string\"},\"rfc_number\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"}},\"required\":[\"rfc_number\",\"title\"],\"type\":\"object\"},\"source\":{\"type\":\"public_url\",\"url\":\"https://www.rfc-editor.org/rfc/pdfrfc/rfc2119.txt.pdf\"}}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://x402.hydratrader.ai/v1/document-extract", json=json.loads("{\"client_ref\":\"demo-1\",\"schema\":{\"properties\":{\"author\":{\"type\":\"string\"},\"category\":{\"type\":\"string\"},\"published\":{\"type\":\"string\"},\"rfc_number\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"}},\"required\":[\"rfc_number\",\"title\"],\"type\":\"object\"},\"source\":{\"type\":\"public_url\",\"url\":\"https://www.rfc-editor.org/rfc/pdfrfc/rfc2119.txt.pdf\"}}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- x402.hydratrader.ai
- Endpoint
- https://x402.hydratrader.ai/v1/document-extract
- Machine-readable
/resources/32590.json