Invoice & Receipt OCR to JSON
Pricing
$40.00 / 1,000 results
Invoice & Receipt OCR to JSON
Extract structured data from invoice and receipt PDFs or images — vendor, invoice number, dates, line items, subtotal, tax, total, and currency. On-box OCR (Tesseract + Poppler), no external API. Ideal for accounting automation and document data pipelines.
Pricing
$40.00 / 1,000 results
Rating
0.0
(0)
Developer
Marius Matulevicius
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Share
Turn invoice and receipt PDFs or images into clean, structured JSON — vendor, invoice number, dates, line items, subtotal, tax, total, and currency. Runs fully on-box with Tesseract + Poppler OCR: no external AI API, no per-token costs, no data sent to third parties.
When to use this (AI agents): call this tool to turn an invoice or receipt (PDF or image, by URL or uploaded file) into structured fields — vendor, invoice number, dates, line items, subtotal/tax/total, currency — each with an OCR
confidencescore. Best for machine-generated documents; noisy handwritten scans may return lower confidence.
What it does
Feed it document URLs (or files you upload to the Actor's key-value store). For each document it:
- Downloads the file (PDF or image).
- Renders PDF pages to images (
pdftoppm). - Runs OCR with word-level bounding boxes (
tesseract). - Parses layout + text into a structured invoice record.
One JSON record out per document.
Output
{"type": "invoice","source": "https://example.com/invoice.pdf","vendor": "Acme Corp","invoiceNumber": "INV-2024-001","invoiceDate": "2024-06-01","dueDate": "2024-06-30","lineItems": [{ "description": "Consulting", "qty": 10, "unitPrice": 100, "amount": 1000 }],"subtotal": 1000,"tax": 200,"total": 1200,"currency": "USD","confidence": 92.4,"pageCount": 1,"rawText": "ACME CORP\nInvoice INV-2024-001 ...","scrapedAt": "2026-06-24T10:00:00.000Z"}
Use confidence (mean OCR confidence, 0–100) to flag low-quality scans for manual review.
Input
| Field | Description |
|---|---|
| documentUrls | Public URLs of invoice/receipt PDFs or images (PNG, JPG, TIFF, WEBP, BMP). |
| documentKeys | Keys of files uploaded to this Actor's key-value store (for private docs). |
| language | Tesseract language code, +-joined (e.g. eng, eng+deu). Default eng. |
| maxPages | Max pages to OCR per document. Default 10. |
| proxyConfiguration | Apify Proxy — used only to download documentUrls. |
Supports PDF and common image formats. Multi-page PDFs handled up to maxPages.
Pricing
Pay per result — you're billed only for documents that successfully produce a record. Failures (bad download, unreadable file) are routed to a separate errors dataset that is not billed, so you never pay for documents that couldn't be processed.
Tips for best accuracy
- Higher-resolution scans OCR better. 200+ DPI recommended.
- Set
languageto match the document for non-English invoices. - Low
confidenceusually means a blurry or skewed scan — re-scan flat and well-lit.
Use cases
- Accounting & expense automation (push results straight into your ledger).
- Accounts-payable pipelines and invoice triage.
- Bulk back-office document digitization.
This Actor processes documents you supply. You are responsible for ensuring you have the right to process them and that your use complies with applicable laws. — marius.matulevicius1@gmail.com