parserkit turns PDFs, scans and photos into JSON, XLSX and CSV through one HTTP call. It costs $0.02 a page with 50 pages free, and takes files up to 100 MB and 250 pages a job.
Quickstart: parse your first document
Create an API key, send an invoice to POST /v1/parse and read the JSON response, with the totals already checked. A 1-page invoice takes under 20 seconds.
Updated
Get an API key
Sign in with Google at parserkit.com/app. New accounts get $1 of free credit, which covers 50 pages with no card required. Create a key under API keys. The key starts with pkit_live_ and is shown once, so store it in the PARSERKIT_API_KEY environment variable.
export PARSERKIT_API_KEY="pkit_live_..."Send the key in the Authorization: Bearer header on every request. Plain http:// requests are refused with 403 HTTPS_REQUIRED. Rotate any key you sent over plain http.
Send your first document
Call POST /v1/parse with a JSON body containing file_url and a preset such as invoice. The API downloads the file directly, so the link must be public. By default, the request waits up to 60 seconds (?wait=, from 0 to 60) and answers 200 with the finished job.
curl https://api.parserkit.com/v1/parse \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_url": "https://raw.githubusercontent.com/bitgate/parserkit-samples/master/invoice-fernhill-1004.pdf", "preset": "invoice"}'request-id: a569177ffcd0cc17
{
"id": "job_69lbsab2qm7txzlwtjr3",
"status": "succeeded",
"source": "api",
"mode": "parse",
"preset": "invoice",
"schema_id": null,
"inbox_id": null,
"file": {
"name": "invoice-fernhill-1004.pdf",
"bytes": 12617,
"kind": "pdf"
},
"pages": 1,
"digital_pages": 1,
"ocr_pages": 0,
"repaired_fields": 0,
"cost_usd": 0.02,
"verification_status": "verified",
"duplicate": null,
"outputs": [
{
"name": "output.json",
"bytes": 12313,
"url": "https://files.parserkit.com/f/7d/acct_.../job_69lbsab2qm7txzlwtjr3/out/output.json?exp=1794024300&sig=...",
"expires_at": "2026-11-07T04:05:00.000Z"
},
{
"name": "output.xlsx",
"bytes": 10217,
"url": "https://files.parserkit.com/f/7d/acct_.../job_69lbsab2qm7txzlwtjr3/out/output.xlsx?exp=1794024300&sig=...",
"expires_at": "2026-11-07T04:05:00.000Z"
},
{
"name": "output.csv",
"bytes": 524,
"url": "https://files.parserkit.com/f/7d/acct_.../job_69lbsab2qm7txzlwtjr3/out/output.csv?exp=1794024300&sig=...",
"expires_at": "2026-11-07T04:05:00.000Z"
},
{
"name": "quickbooks.csv",
"bytes": 472,
"url": "https://files.parserkit.com/f/7d/acct_.../job_69lbsab2qm7txzlwtjr3/out/quickbooks.csv?exp=1794024300&sig=...",
"expires_at": "2026-11-07T04:05:00.000Z"
},
{
"name": "xero.csv",
"bytes": 1132,
"url": "https://files.parserkit.com/f/7d/acct_.../job_69lbsab2qm7txzlwtjr3/out/xero.csv?exp=1794024300&sig=...",
"expires_at": "2026-11-07T04:05:00.000Z"
}
],
"webhook_status": null,
"error": null,
"metadata": null,
"created_at": "2026-11-07T03:01:10.137Z",
"started_at": "2026-11-07T03:01:11.129Z",
"finished_at": "2026-11-07T03:01:25.283Z",
"data": {
"invoice_number": "FP-1004",
"issue_date": "2026-10-30",
"due_date": "2026-11-29",
"purchase_order": "CS-PO-2240",
"currency": "USD",
"vendor": {
"name": "Fernhill Print Co.",
"address": "2210 Western Ave, Suite 300, Seattle, WA 98121",
"vat_id": null,
"tax_id": null,
"email": "billing@fernhill-print.example",
"phone": "(206) 555-0142"
},
"customer": {
"name": "Copperleaf Studio LLC",
"address": "88 Marion Street, Seattle, WA 98104",
"vat_id": null,
"tax_id": null,
"email": null,
"phone": null
},
"ship_to": null,
"line_items": [
{
"description": "Business cards, 350 gsm matte, two-sided",
"sku": null,
"quantity": 750,
"unit": null,
"unit_price": 0.16,
"discount": null,
"tax_rate": null,
"tax_amount": null,
"total": 120,
"gl_code": null,
"gl_name": null,
"gl_confidence": null
},
{
"description": "A2 posters, satin, full color",
"sku": null,
"quantity": 60,
"unit": null,
"unit_price": 6.25,
"discount": null,
"tax_rate": null,
"tax_amount": null,
"total": 375,
"gl_code": null,
"gl_name": null,
"gl_confidence": null
},
{
"description": "Tri-fold brochures, 100 lb gloss",
"sku": null,
"quantity": 2500,
"unit": null,
"unit_price": 0.38,
"discount": null,
"tax_rate": null,
"tax_amount": null,
"total": 950,
"gl_code": null,
"gl_name": null,
"gl_confidence": null
},
{
"description": "Design proof and color check (hours)",
"sku": null,
"quantity": 3,
"unit": null,
"unit_price": 45,
"discount": null,
"tax_rate": null,
"tax_amount": null,
"total": 135,
"gl_code": null,
"gl_name": null,
"gl_confidence": null
}
],
"subtotal": 1580,
"discount_total": null,
"shipping": null,
"taxes": [
{
"label": "Sales tax 10.35%",
"rate": 10.35,
"base": 1580,
"amount": 163.53
}
],
"tax_total": 163.53,
"grand_total": 1743.53,
"amount_paid": 0,
"amount_due": 1743.53,
"payment": {
"terms": "Net 30",
"iban": null,
"bic": null,
"account_number": null,
"routing_number": null,
"reference": null
},
"notes": null
},
"data_omitted": false,
"data_url": null,
"data_url_expires_at": null,
"verification": {
"status": "verified",
"math_balanced": true,
"coverage": {
"values": 37,
"checked": 37
},
"checks": [
{
"kind": "line_total",
"path": "line_items[0].total",
"fields": [
"line_items[0].quantity",
"line_items[0].unit_price",
"line_items[0].total"
],
"status": "pass",
"expected": 120,
"actual": 120,
"difference": 0,
"page": 1,
"message": "quantity x unit price"
},
{
"kind": "line_total",
"path": "line_items[1].total",
"fields": [
"line_items[1].quantity",
"line_items[1].unit_price",
"line_items[1].total"
],
"status": "pass",
"expected": 375,
"actual": 375,
"difference": 0,
"page": 1,
"message": "quantity x unit price"
}
],
"repairs": [],
"barcodes": []
},
"warnings": [
{
"code": "VALUES_NOT_PRINTED",
"message": "1 values were not printed on the line the model cited and were left out",
"document": 0,
"page": null
}
]
}Trimmed: documents (the same data per document, with the page and position of every value) is left out, and 2 of the 9 checks are shown.
The invoice is FP-1004, a fictional sample from the public parserkit-samples repository on GitHub. The 1-page job finished with cost_usd 0.02, verification_status set to verified, 37 of 37 values checked and 9 checks passed.
To send a file from disk, use multipart form data with a file field for files up to 25 MB. Larger files up to 100 MB go through /v1/uploads, covered in the API reference.
curl https://api.parserkit.com/v1/parse \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-F file=@receipt-lindqvist.jpg \
-F preset=receiptrequest-id: a568fc780c8a9923
{
"id": "job_ppgk1tkc1geimivk2i3h",
"status": "succeeded",
"source": "api",
"mode": "parse",
"preset": "receipt",
"file": {
"name": "receipt-lindqvist.jpg",
"bytes": 91601,
"kind": "image"
},
"pages": 1,
"cost_usd": 0,
"verification_status": "partial",
"duplicate": {
"job_id": "job_z0etq6fs3kifedj71rxy",
"match_type": "exact"
}
}Trimmed to the top-level fields. This receipt was parsed on the same account before, so the job is an exact duplicate: same data, cost_usd 0.
Sending the same file, preset and options again on the same account returns an exact duplicate. You get the same data at cost_usd 0 with duplicate naming the first job, which is what the receipt above shows.
Read the result
The response is a job object. The table below lists the fields you will use most.
| Field | What it holds |
|---|---|
id | The job id. Read the job again with GET /v1/jobs/{id}. |
status | queued, running, succeeded or failed. |
pages | Pages the job counted and billed. |
cost_usd | What the job cost. 0 for failed jobs and exact duplicates. |
verification_status | verified, partial, unverified or discrepancy. |
data | The extracted fields, shaped by the preset or your schema. null when the file held several documents. |
verification | status, math_balanced, coverage and every check that ran. |
documents | One entry per document: its data, the page and position of each value, and its own verification. |
outputs | The files, each with name, bytes, a signed url and expires_at. |
warnings | A code and message for anything left out or uncertain. |
Most code reads data, which holds the extracted fields for the preset. Use documents when you need the page and position of every value, for example to highlight values on the original page. Every job also lists signed download links in outputs for output.json, output.xlsx and output.csv, valid for at least 1 hour.
Check the verification
parserkit checks extracted values against each other. On an invoice, it compares each line's quantity times unit price against the line total, lines against the subtotal, subtotal plus tax against the grand total, and grand total less amount paid against the amount due. verification_status sums up the result.
| Status | Meaning |
|---|---|
verified | Every required value has at least one check, and no check fails. |
partial | Some required value has no check. None failed. |
unverified | No value has a check, or verification never ran. |
discrepancy | A check still fails after repair. |
verification.coverage reports values and checked: how many values were read and how many have a passing check. The invoice example above checked 37 of 37 values with 9 passing checks.
warnings explain what was left out. For example, VALUES_NOT_PRINTED means a value was not printed on the line the model cited, so it was left out instead of guessed. A practical rule is to book verified jobs automatically and send the rest to a person, using verification.checks to see what failed or is missing.
Long documents: don't wait
For long documents, up to 250 pages a job, pass ?wait=0 on POST /v1/parse. The API answers 202 right away with a Location header and Retry-After: 2. Poll GET /v1/jobs/{id}?wait=60 until status is succeeded or failed.
curl "https://api.parserkit.com/v1/parse?wait=0" \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-F file=@statement-2026-09.pdf \
-F preset=bank_statement
curl "https://api.parserkit.com/v1/jobs/job_739uhzzlu6mk9ux3n1df?wait=60" \
-H "Authorization: Bearer $PARSERKIT_API_KEY"location: /v1/jobs/job_739uhzzlu6mk9ux3n1df retry-after: 2 request-id: a568fe1d19093675
{
"id": "job_739uhzzlu6mk9ux3n1df",
"status": "queued",
"preset": "bank_statement",
"file": {
"name": "statement-2026-09.pdf",
"bytes": 30640,
"kind": null
},
"pages": null,
"cost_usd": 0,
"created_at": "2026-11-07T02:43:50.417Z"
}request-id: a569423a1cbba592
{
"id": "job_739uhzzlu6mk9ux3n1df",
"status": "succeeded",
"preset": "bank_statement",
"pages": 2,
"cost_usd": 0,
"verification_status": "partial",
"duplicate": {
"job_id": "job_seif7mff5d7d4xgngj81",
"match_type": "exact"
},
"finished_at": "2026-11-07T02:43:51.186Z"
}Both bodies are trimmed. The statement was parsed on this account before, so the finished job is an exact duplicate and costs 0.
Try it on a sampleInstead of polling, you can set webhook_url on the request and get a POST when the job finishes. See Webhooks.
Pick a preset
The preset parameter decides which fields come back in data, which arithmetic checks run, and whether accounting exports like quickbooks.csv and xero.csv are added to outputs.
| Preset | Use it for | Arithmetic checks | QuickBooks and Xero CSVs |
|---|---|---|---|
invoice | Supplier invoices and bills | Yes | Yes |
receipt | Till, card and restaurant receipts | Yes | Yes |
bank_statement | Bank statements | Yes | Yes |
purchase_order | Purchase orders | Yes | No |
bill_of_lading | Bills of lading | No | No |
resume | CVs and resumes | No | No |
generic_table | Any printed table | No | No |
If you need fields that no preset covers, send your own JSON Schema instead. See Custom schemas.
Questions
Do I need an SDK?
No. parserkit is plain HTTP, and the examples use curl, Python with requests and JavaScript with fetch.
What does a failed parse cost?
Failed jobs cost 0. Exact duplicates of a job you already ran on the same account with the same file, preset and options also return cost_usd 0.
Which file types can I send?
You can send PDF, JPEG, PNG, WebP, GIF, TIFF, HEIC, DOCX, XLSX, CSV, HTML, plain text, EML, MSG and ZIP files. parserkit inspects the file's bytes to decide its type, never its file name.
How long are results kept?
Results and files are kept for 7 days, or 90 days on Pro. Signed download links in outputs last at least 1 hour; fetch the job again to get fresh links.
Can I parse a file that is not public?
Yes. Send the file from disk as multipart form data up to 25 MB, or upload files up to 100 MB through /v1/uploads.
Your first $1 is free, 50 pages with every check and export.