Turn Any PDF into Structured Data — with One API Call
Extract invoice fields, tables, and text from PDFs as clean JSON. No per-document templates, no OCR plumbing — just a REST endpoint that returns structured data. Free tier included.
Free plan: 500 API calls/month · No credit card required
No templates
AI generalises across vendors and layouts — no rules to maintain per document type.
Structured JSON
Invoice fields, tables, and text returned in clean, predictable JSON.
Secure & metered
Bearer-token auth, per-tier quotas, and X-RateLimit headers on every response.
One request, structured output
# Extract invoice data from a PDF
curl -X POST https://api.allpdfmagic.com/api/v1/ai/extract-invoice \
-H "Authorization: Bearer apm_live_your_key" \
-F "file=@invoice.pdf"
# Response
{
"vendor": "Acme Pvt Ltd",
"invoice_number": "INV-2026-0042",
"invoice_date": "2026-06-30",
"currency": "INR",
"line_items": [
{ "description": "Consulting", "qty": 10, "rate": 2500, "amount": 25000 }
],
"subtotal": 25000, "tax": 4500, "total": 29500
}Full reference, more endpoints (compress, convert, OCR, tables, workflows), and an OpenAPI spec are in the API documentation.
What you can extract
- Invoice data — vendor, number, date, line items, tax, totals
- Tables — rows and columns from reports and statements
- Bank statement transactions — date, description, debit, credit, balance
- Full text with layout for search and indexing
- Key fields from forms and structured documents
- Batch/async extraction for high volume
How to extract PDF data via the API
Get your API key
Sign up free and generate a key in the dashboard. The Free plan includes 500 calls/month to start.
POST your PDF to the endpoint
Send the file to the extraction endpoint with your Bearer token — no template setup required.
Receive structured JSON
Get back clean, structured data (invoice fields, tables, or text) ready to store or process.
Related
Frequently Asked Questions
Structured invoice data (line items, totals, tax, vendor), tables to rows/columns, full text with layout, and key fields from documents like bank statements and forms. Output is clean JSON you can drop straight into your app or database.
No. The extraction is AI-driven and layout-aware, so it generalises across vendors and formats without you maintaining per-template rules.
It's a plain REST API, so it works from any language. We have copy-paste examples for cURL, Python, and Node.js in the API docs, and an OpenAPI spec for client generation.
Create an API key in your dashboard and send it as a Bearer token. Keys are scoped to your plan's tier and monthly quota.
Yes — the Free plan includes 500 API calls/month on core endpoints so you can build and test before upgrading. Higher tiers add conversions, AI extraction, workflows, and larger quotas.
Every response includes X-RateLimit headers (limit, remaining, reset) and an X-Api-Tier header, so you can track usage programmatically and back off gracefully.
Start extracting in minutes
Grab a free API key and make your first call today.