PDF to JSON

Send a PDF URL and a JSON schema; get the fields back as JSON. Tables and multi-column layouts included.

POST https://api.bottrunk.com/s/pdf-extract

Add to my agent

Call it

# Ask. You get a 402 with the payment requirements.
curl https://api.bottrunk.com/s/pdf-extract \
  -d '{"url": "https://example.com/pricing"}'

# Pay and retry. Any x402 client does this for you.
curl https://api.bottrunk.com/s/pdf-extract \
  -H "X-PAYMENT: <signed USDC transfer>" \
  -d '{"url": "https://example.com/pricing"}'

Input

url string Public URL of the PDF.
schema object JSON schema of the fields to extract.

Output

data object Extracted fields, matching the schema.
pages integer Pages processed.