PDF is the universal format for business documents — invoices, receipts, purchase orders, contracts, statements. The problem is that PDFs are designed to be read by humans, not processed by code. A PDF isn't structured data; it's a visual layout. To use the information inside it, you need to extract it.
This guide explains how PDF-to-JSON APIs work, when to use them, and how to extract structured data from business PDFs with a single API call.
What a PDF to JSON API Does

Any invoice or receipt format → structured JSON in ~3 seconds. No templates. No vendor setup.
Invoice Riverside Consulting LLC INV-2026-0091 May 1, 2026 Strategy Consulting — April 35hrs × $100.00 = $3,500.00 Subtotal: $3,500.00 Tax (10%): $350.00 Total: $3,850.00
{
"merchant": "Riverside Consulting LLC",
"invoice_id": "INV-2026-0091",
"date": "2026-05-01",
"total": "3850.00",
"tax": "350.00",
"currency": "USD"
}PDFs are visual layouts. One API call turns them into structured data.
A PDF-to-JSON API accepts a PDF file and returns its data as a structured JSON object with named fields. Instead of:
INVOICE
Acme Corp — Invoice #INV-2026-0042
Date: May 10, 2026
Due: June 10, 2026
Cloud Server - Monthly 3 $400.00 $1,200.00
Subtotal: $1,200.00
Tax (10%): $120.00
Total Due: $1,320.00You get:
The JSON is directly usable in your application — no text parsing, no regex, no interpretation required.
The One-Request Pattern
DocuParseAPI accepts PDFs (and JPG, PNG, CSV files) via a single multipart POST request:
curl -X POST https://docuparseapi.com/api/v1/extract \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@invoice.pdf"
That's the complete integration. The API handles:
- PDF text extraction
- Scanned PDF OCR
- Field identification and normalization
- Currency and date normalization
- Line item parsing
You don't configure any of this. You send the file; you receive the structured JSON.
Use Cases
Accounts payable automation: Suppliers email PDF invoices. Your system downloads the attachments, calls the API, and pushes extracted fields into your ERP or accounting software — no human data entry.
Expense management: Employees submit PDF receipts. Your expense app calls the API and pre-fills the expense form with merchant, amount, date, and line items.
Bookkeeping: An accountant handling clients' supplier invoices calls the API for each PDF and writes the extracted data to QuickBooks or Xero — saving 10–15 minutes per invoice.
Audit and compliance: Legal and finance teams need to process large batches of PDF invoices. Batch-calling the API and storing the JSON creates a searchable, queryable record of every invoice — no manual transcription.
Line item analytics: Once invoices are structured data, you can analyze spending by vendor, category, or line item. None of that analysis is possible while the data is locked in PDFs.
Handling Scanned PDFs
Not all PDFs contain machine-readable text. Scanned PDFs — created by scanning a paper document — are images embedded in a PDF wrapper. A regular PDF text extraction library returns nothing from these.
DocuParseAPI handles scanned PDFs automatically. The extraction pipeline detects whether a PDF is text-based or image-based and applies OCR when needed. You don't change anything in your request:
# Same request — works for both digital PDFs and scanned PDFs curl -X POST https://docuparseapi.com/api/v1/extract \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@scanned_invoice.pdf"
The response format is identical regardless of the source document type.
Processing a Folder of PDFs
For batch processing — converting an entire inbox of PDF invoices to JSON at once:
What Fields Are Extracted from Business PDFs
From invoices:
merchant— vendor/supplier nameinvoice_id— invoice numberdate— invoice date (ISO 8601)due_date— payment due datecurrency— ISO 4217 codesubtotal,tax,tax_rate,total— financial fieldsline_items— array of items with description, quantity, unit_price, total
From receipts:
merchant— store namereceipt_id— receipt numberdate— transaction datepayment_method— card type, cash, etc.currency,subtotal,tax,totalline_items— individual purchases
The document_type field in the response tells you whether the API classified the input as a receipt or an invoice.
Limitations to Know
File size: Maximum 10MB per file. Most business PDFs are well under this limit.
Supported formats: PDF, JPG, PNG, CSV. If you have files in other formats (TIFF, BMP, DOCX), convert them to PDF first.
Multi-document PDFs: A PDF containing multiple invoices (a batch scan) is processed as one document. The API will attempt to extract the first invoice's fields. If you need to process each invoice separately, split the PDF before calling the API.
Handwritten documents: The extraction pipeline is trained on typed/printed documents. Fully handwritten invoices may not extract cleanly.
Pricing
- Free: 20 PDFs/month, no credit card
- Starter: $14.99/month — 3,000 documents
- Pro: $22.99/month — 5,000 documents
At $14.99/month for 3,000 documents, the cost per document is $0.005 — a fraction of the time cost of manual data entry.