Send a PDF, scan or photo with a JSON Schema of up to 200 properties, nested 6 deep, and get exactly those fields back as JSON. $0.02 a page, 50 pages free, and line items with a total get re-added.
PDF to JSON API with your own schema
A 3-page document read with your own schema costs $0.06, the same as with a preset. A field named iban gets its check digits, line_items with a grand_total get the invoice sums, and any value no sum or checksum reads comes back unchecked.
Updated
Example
An electricity bill read with your own schema
kestrel-bill-KB-26-120957.pdf is a one-page Irish electricity bill with four charge lines and VAT. The schema.json tab names 16 fields; no preset and no field rules were sent. Its supplier, bill number and date aren't named like the invoice preset's vendor.name, invoice_number and issue_date, so the job wrote no QuickBooks or Xero file and names the missing fields in warnings.
POSTapi.parserkit.com/v1/parse?wait=60
curl "https://api.parserkit.com/v1/parse?wait=60" \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-F file=@kestrel-bill-KB-26-120957.pdf \
-F schema=<schema.jsonimport os
import requests
with open("schema.json") as schema, open("kestrel-bill-KB-26-120957.pdf", "rb") as file:
res = requests.post(
"https://api.parserkit.com/v1/parse",
params={"wait": 60},
headers={"Authorization": f"Bearer {os.environ['PARSERKIT_API_KEY']}"},
files={"file": file},
data={"schema": schema.read()},
)
job = res.json()
print(job["verification"]["status"], job["verification"]["coverage"])import { openAsBlob } from "node:fs";
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", await openAsBlob("kestrel-bill-KB-26-120957.pdf"), "kestrel-bill-KB-26-120957.pdf");
form.append("schema", await readFile("schema.json", "utf8"));
const res = await fetch("https://api.parserkit.com/v1/parse?wait=60", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PARSERKIT_API_KEY}` },
body: form,
});
const job = await res.json();
console.log(job.verification.status, job.verification.coverage);{
"type": "object",
"properties": {
"supplier": { "type": "string" },
"bill_number": { "type": "string" },
"bill_date": { "type": "string", "format": "date" },
"account_number": { "type": "string" },
"customer_name": { "type": "string" },
"plan": { "type": "string" },
"period_start": { "type": "string", "format": "date" },
"period_end": { "type": "string", "format": "date" },
"kwh_used": { "type": "number" },
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": { "type": "string" },
"quantity": { "type": "number" },
"unit": { "type": "string" },
"unit_price": { "type": "number" },
"total": { "type": "number" }
}
}
},
"subtotal": { "type": "number" },
"tax_total": { "type": "number" },
"grand_total": { "type": "number" },
"currency": { "type": "string", "format": "currency" },
"due_date": { "type": "string", "format": "date" },
"iban": { "type": "string", "format": "iban" }
}
}1 of 35 values went unchecked: kwh_used, the 465 kWh meter total, because no sum or checksum on the bill reads it.
{
"id": "job_15d0xk9imxnrotwvpg9x",
"status": "succeeded",
"pages": 1,
"cost_usd": 0.02,
"verification_status": "partial",
"data": {
"supplier": "KESTREL BAY ENERGY",
"bill_number": "KB-26-120957",
"bill_date": "2026-10-18",
"account_number": "2207 3150 84",
"customer_name": "Cian Moloney",
"plan": "Kestrel Flex",
"period_start": "2026-09-15",
"period_end": "2026-10-15",
"kwh_used": 465,
"line_items": [
{
"description": "Day units",
"quantity": 318,
"unit": "kWh",
"unit_price": 0.3124,
"total": 99.34
},
{
"description": "Night units",
"quantity": 147,
"unit": "kWh",
"unit_price": 0.1782,
"total": 26.2
},
{
"description": "Standing charge",
"quantity": 30,
"unit": "days",
"unit_price": 0.684,
"total": 20.52
}
],
"subtotal": 149.93,
"tax_total": 13.49,
"grand_total": 163.42,
"currency": "EUR",
"due_date": "2026-11-03",
"iban": "IE83KBAY93100587204615"
},
"verification": {
"status": "partial",
"math_balanced": true,
"coverage": {
"values": 35,
"checked": 34
},
"checks": [
{
"kind": "line_total",
"path": "line_items[0].total",
"status": "pass",
"expected": 99.3432,
"actual": 99.34,
"difference": -0.0032,
"message": "quantity x unit price"
},
{
"kind": "line_total",
"path": "line_items[1].total",
"status": "pass",
"expected": 26.1954,
"actual": 26.2,
"difference": 0.0046,
"message": "quantity x unit price"
},
{
"kind": "sum",
"path": "subtotal",
"status": "pass",
"expected": 149.93,
"actual": 149.93,
"difference": 0,
"message": "the line totals"
},
{
"kind": "sum",
"path": "grand_total",
"status": "pass",
"expected": 163.42,
"actual": 163.42,
"difference": 0,
"message": "the line totals + tax"
},
{
"kind": "iban",
"path": "iban",
"status": "pass",
"actual": "IE83KBAY93100587204615",
"message": "a well-formed IBAN"
}
]
},
"outputs": [
{
"name": "output.json",
"bytes": 10304
},
{
"name": "output.xlsx",
"bytes": 9243
},
{
"name": "output.csv",
"bytes": 185
}
],
"warnings": [
{
"code": "EXPORT_INCOMPLETE",
"message": "quickbooks.csv was left out: kestrel-bill-KB-26-120957.pdf has no Supplier (vendor.name), Bill no. (invoice_number) or Bill Date (issue_date)",
"document": 0,
"page": null
},
{
"code": "EXPORT_INCOMPLETE",
"message": "xero.csv was left out: kestrel-bill-KB-26-120957.pdf has no ContactName (vendor.name)",
"document": 0,
"page": null
}
]
}Real response from . Trimmed to 3 of 4 line items and 5 of 7 checks, with bounding boxes, empty fields and file links left out.
PDF to JSON APIs side by side
List prices from each vendor's own pricing page, as of November 2026.
| API | Price | Free to start | Notes |
|---|---|---|---|
| parserkit | $0.02 a page, $0.01 past 5,000 pages a month | 50 pages, no card | Your schema's fields, sums re-added when it has totals |
| Reducto | $0.02 a page for Extract, $0.01 a page for Parse | $150 of credit | Fields cost the Extract rate |
| Extend | Parse $0.005 or $0.02 a page; Extract adds $0.007 or $0.03 | 10,000 free credits ($100) | Fields cost Parse plus Extract |
| LlamaParse | $0.0015 to $0.0375 a page by parse mode | 10,000 credits a month | Returns Markdown |
| Mistral OCR | $0.004 a page, $0.005 with annotations | Free API tier, rate limited | Returns page text as Markdown |
Sources: Reducto pricing, Extend pricing, LlamaParse pricing, Mistral OCR pricing
Checks
What gets checked in your schema
Invoice sums
line_itemswith agrand_totaloramount_due: every row, the subtotal, the total and the amount due are re-added.Receipt sums
itemswith atotal: every item and the total, cash rounding included.Statement balances
transactionswith anopening_balanceorclosing_balance: the running and closing balances.Identifiers
Fields named
iban,vat_id,ein,routing_numberorcard_numberget their checksum or format check.Text values
Looked up in the words of the page. A number counts only when a sum, a checksum or a second reading confirms it.
Formats
datecomes back as YYYY-MM-DD andcurrencyas an ISO 4217 code.
Send a schema with the file
POST the file to /v1/parse with schema instead of preset: a JSON Schema as text in a multipart form, or as an object in a JSON body. It can be up to 64 KB, nest 6 levels deep and hold 200 properties, and an enum takes up to 500 values. A description goes to the model with its field, so use it where a name could mean several things. The schema reference lists every keyword and limit.
When your fields get checked
Name the fields like a preset does and the same arithmetic runs. line_items with a grand_total or amount_due get the invoice sums, items with a total the receipt sums, and transactions with an opening or closing balance the statement checks. Fields named iban, vat_id, ein, routing_number or card_number get their identifier checks.
Text values are looked up in the words of the page. A number counts as checked only when a sum, a checksum or a second reading confirms it, so a lone figure like the meter total in the example stays unchecked, and the status says partial with the count.
Field rules
Send field_rules next to the schema to clean values after the read: iso_date, iso_currency, net_of_vat, regex, enum_map and instruction, up to 100 a job. A value a rule changes no longer matches the printed words, so it loses its checks and counts as unchecked.
[
{
"field": "account_number",
"transform": "regex",
"pattern": "\\s+",
"replacement": "",
"flags": "g"
},
{
"field": "plan",
"transform": "enum_map",
"map": {
"Kestrel Fixed 12": "fixed",
"Kestrel Flex": "variable"
},
"fallback": "other"
}
]What it costs
A custom schema costs the same as a preset: $0.02 a page, so a 3-page document is $0.06, and $0.01 a page past 5,000 pages in a UTC month. Failed jobs and exact duplicates cost nothing, and the first 50 pages are free with no card. See pricing.
Parsers hand you text, not fields
LlamaParse and Mistral OCR turn a page into Markdown, and your code still has to find the supplier, the dates and the totals in it. Reducto and Extend charge again for fields: Reducto's Extract is $0.02 a page against $0.01 for Parse, and Extend's Extract adds $0.007 or $0.03 a page to its Parse price.
parserkit reads the file and fills your schema in one call at $0.02 a page, then re-adds the sums when your schema has totals and checks any field named iban, vat_id or ein, so a misread total comes back flagged instead of landing in your database.
FAQ
Common questions
What does the schema look like?
A JSON Schema object with properties. Types, required, enum, description and the formats date, date-time, time, currency, country, email, uri and iban are understood.
Do my own fields get the math checks?
Yes, when they are named like a preset's: line_items with a grand_total or amount_due, items with a total, or transactions with an opening or closing balance.
Why is a value marked unchecked?
No sum, checksum or second reading confirmed it, or a field rule changed it. The status counts the checked values, and partial means some were not.
Does it work on scans and photos?
Yes. Scanned pages are read with OCR, and photos can be JPEG, PNG, WebP, HEIC or TIFF, up to 250 pages a job.
How much does PDF to JSON cost?
$0.02 a page with a custom schema or a preset, and $0.01 past 5,000 pages in a UTC month. A 3-page document is $0.06, and parserkit's first 50 pages are free.
How is this different from LlamaParse or Mistral OCR?
LlamaParse and Mistral OCR return the page as Markdown, and you still write the code that finds each field in it. parserkit returns the fields your schema names, typed, with dates as YYYY-MM-DD and the sums re-added when the schema has totals.
Related
- PDF to JSON converterTurn the tables in a PDF into JSON rows with typed columns and the page of every row, free without an account.
- Invoice parser APILine items, taxes and totals as JSON, with every sum re-added.
- Purchase order OCR APIPO number, buyer, supplier, lines and totals as JSON, with every line and total re-added.
- Bill of lading OCR APIParties, ports, vessel, containers and goods as JSON, with each container number tested against ISO 6346.
- PDF table extraction APITables from PDFs and scans as JSON, Excel and CSV, whole across page breaks.
- parserkit vs ReductoReducto alternative: checked fields at $0.02 a page against Extract at $20 per 1,000 pages, where Reducto's own cookbook says to do the math yourself.
- parserkit vs LlamaParseLlamaParse alternative: checked invoice and statement fields at $0.02 a page, where LlamaParse returns markdown and leaves the totals to you.
- parserkit vs Mistral OCRMistral OCR alternative: checked invoice and statement fields at $0.02 a page, where Mistral returns page text and confidence scores.
- Chunkr alternativesChunkr's hosted API is gone. parserkit leads at $0.02 a page with 50 pages free, ahead of Reducto, LlamaParse and Unstructured.
- Can PDF be converted to JSON?Yes: parserkit turns a PDF into JSON with named fields and checked totals, free in the browser or through the API.
Start free
Send us your worst scan
Your first $1 is free: 50 pages with every check and export, no card.
