PDF Extract ($0.04): deterministic PDF -> per-page plain text + metadata, no OCR, no ta…
PDF Extract ($0.04): deterministic PDF -> per-page plain text + metadata, no OCR, no table extraction, no third-party PDF/OCR vendor -- text pulled directly from the PDF's own embedded text objects via pdfjs-dist (Mozilla's own PDF.js, Apache-2.0) running in…
by draconic21-x402-api.onrender.com · discovered, not yet claimed by its owner · updated 2026-10-08
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
PDF Extract ($0.04): deterministic PDF -> per-page plain text + metadata, no OCR, no table extraction, no third-party PDF/OCR vendor -- text pulled directly from the PDF's own embedded text objects via pdfjs-dist (Mozilla's own PDF.js, Apache-2.0) running in this process. Body { url } (public http(s) PDF link, SSRF-hardened fetch) OR { pdf_base64 } (raw base64 bytes), not both. Max 10 MiB, max 40 pages. Check free /v1/pdf_extract/availability first.
Tags: pdf-extraction · text-extraction · document-parsing · pdf-to-text · pdf-parsing · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}{
"caveats": [
"Embedded-text extraction only -- scanned/image-only PDFs return empty page text (no OCR)."
],
"document_sha256": "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4",
"engine": "pdfjs-dist (Mozilla PDF.js, Apache-2.0) — no OCR, no table extraction, no third-party PDF …",
"page_count": 1,
"pages": [
{
"char_count": 14,
"has_text": true,
"page": 1,
"text": "Dummy PDF file"
}
]
}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/36097.jsonfor the price and payment options. - Pay. Call
GET https://draconic21-x402-api.onrender.com/v1/pdf_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, Solana, 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.04 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.04 | 0x1520Ef5530AA71350049BE2903Cf078B38c40AE5 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.04 | 6mc4GhWFyNcMh7gAVDWrKeYjDqFtEKWKQuZ9RTw2VkfM | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x1520Ef5530AA71350049BE2903Cf078B38c40AE5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "40000",
"amountUsd": 0.04,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "6mc4GhWFyNcMh7gAVDWrKeYjDqFtEKWKQuZ9RTw2VkfM",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "40000",
"amountUsd": 0.04,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"caveats": {
"items": {
"type": "string"
},
"type": "array"
},
"document_sha256": {
"type": "string"
},
"engine": {
"type": "string"
},
"metadata": {
"properties": {
"author": {
"type": [
"string",
"null"
]
},
"creation_date": {
"type": [
"string",
"null"
]
},
"creator": {
"type": [
"string",
"null"
]
},
"pdf_version": {
"type": [
"string",
"null"
]
},
"producer": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"page_count": {
"type": "integer"
},
"pages": {
"items": {
"properties": {
"char_count": {
"type": "integer"
},
"has_text": {
"type": "boolean"
},
"page": {
"type": "integer"
},
"text": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"pages_read": {
"type": "integer"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
},
"word_count": {
"type": "integer"
}
},
"required": [
"document_sha256",
"page_count",
"pages",
"caveats"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"caveats": [
"string"
],
"document_sha256": "string",
"engine": "string",
"metadata": {
"author": "string",
"creation_date": "string",
"creator": "string",
"pdf_version": "string",
"producer": "string",
"title": "string"
},
"page_count": 0,
"pages": [
{
"char_count": 0,
"has_text": true,
"page": 0,
"text": "string"
}
],
"pages_read": 0,
"warnings": [
"string"
],
"word_count": 0
},
"type": "string"
}Examples
curl "https://draconic21-x402-api.onrender.com/v1/pdf_extract"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://draconic21-x402-api.onrender.com/v1/pdf_extract");
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
res = httpx.get("https://draconic21-x402-api.onrender.com/v1/pdf_extract")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- draconic21-x402-api.onrender.com
- Endpoint
- https://draconic21-x402-api.onrender.com/v1/pdf_extract
- Machine-readable
/resources/36097.json