Extract text per page from a PDF (plus metadata) as JSON
Extract text per page from a PDF (plus metadata) as JSON. Digital PDFs only, no OCR.
5000 (raw units)
price
—
calls / 30d
—
unique payers
2026-09-21
updated
Provider
Quietforge Docs API · verified
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3F5115236f25618c16021E983acaAF2CAaa1A35e",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"type": "object",
"properties": {
"page_count": {
"type": "integer"
},
"pages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"text": {
"type": "string"
}
},
"required": [
"page",
"text"
]
}
},
"metadata": {
"type": "object"
}
},
"required": [
"page_count",
"pages"
]
}Use it
curl
curl "https://consciousness-flower-change-seriously.trycloudflare.com/v1/pdf/text" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://consciousness-flower-change-seriously.trycloudflare.com/v1/pdf/text");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://consciousness-flower-change-seriously.trycloudflare.com/v1/pdf/text")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/15704.json, and this resource appears in /discovery/resources and /discovery/search.