Invoice Parser & Receipt Parser - Invoice OCR to JSON/CSV
Pricing
from $8.00 / 1,000 extracted pages
Invoice Parser & Receipt Parser - Invoice OCR to JSON/CSV
Invoice parser and receipt parser for PDF, JPG and PNG URLs. Invoice OCR returns one row per line item by default, repeating supplier, invoice number, date, currency and totals on every row. Documents without items return one row. $0.01 per readable page; unreadable documents are free.
Pricing
from $8.00 / 1,000 extracted pages
Rating
0.0
(0)
Developer
Yukai Lin
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Invoice Parser & Receipt Parser — PDF and image invoices to JSON
What does it do?
Read public invoice or receipt PDF, JPG and PNG URLs into structured rows: one row per line item by default, with the document header repeated on each row. Paste a document URL, choose invoice (default) or receipt, then export the Dataset as JSON or CSV; Excel can open the CSV.
How to use
- Replace the sample URL with a public PDF, JPG or PNG invoice or receipt.
- Keep invoice or choose receipt. Leave Fields empty for the preset columns.
- Run a small sample, check the original document, then export JSON or CSV.
Input example
{"urls": ["https://filedone.ai/sample-files/sample-invoice.pdf"],"preset": "invoice","fields": {},"flatOutput": true}
The sample URL was directly downloaded as a PDF on 2026-10-28 (HTTP 200). Replace it with your own publicly readable documents. You can also pass startUrls (Apify request-list format), or datasetId plus datasetField to read URLs from another Dataset. For a receipt image, change preset to receipt. Use files you are allowed to process; login-only files cannot be read.
Output example
Illustrative flat invoice row (actual values depend on the source):
{"url":"https://example.org/invoice.pdf","documentUrl":"https://example.org/invoice.pdf","lineItemIndex":0,"success":true,"charged":true,"supplier":"Example Ltd","invoice_number":"INV-1","date":"2026-10-01","currency":"USD","subtotal":100,"tax":10,"total":110,"item_description":"Service","item_quantity":1,"item_unit_price":100,"item_amount":100,"documentPagesRead":1,"documentTruncated":false}
Output fields
lineItemRows: true is the default. Each line item produces a Dataset row; a document with no items still produces one header row with null item fields and lineItemIndex: null. flatOutput: true (also the default) makes header and item fields top-level CSV/Excel columns. Turn Flat columns off to place them inside data. Turn lineItemRows off for the engine's original one-row-per-document output with the item array in data (or a JSON text cell with Flat columns).
| Document | JSON field | Meaning |
|---|---|---|
| Invoice | supplier | Printed vendor/supplier; equivalent to vendor |
| Invoice | invoice_number | Printed invoice number |
| Invoice | date | Printed invoice date |
| Invoice | currency | Printed currency or symbol, if present |
| Invoice | subtotal, tax, total | Printed amounts; absent values are null |
Invoice, lineItemRows: false | line_items[] | Original item array: description, quantity, unit_price, amount |
| Receipt | merchant, date, currency, total | Printed receipt header |
Receipt, lineItemRows: false | items[] | Original item array: name, quantity, amount |
Either, lineItemRows: true | item_description, item_quantity, item_unit_price, item_amount | One item per row; receipt description maps from name and its unit price is null |
Either, lineItemRows: true | documentUrl, lineItemIndex | Final document URL and zero-based item position; itemless row has null index |
| Either | documentPagesRead, documentTruncated | Pages sent to the model and whether later pages were omitted |
| Either | charged, success, errorType | Actual charge flag and free failure reason |
| Invoice | reviewWarnings[] | Non-blocking invoice_amount_mismatch hint if supported subtotal + tax differs from total on a complete document |
The preset does not extract a due date by default. Add {"dueDate":"string"} to Fields if you need one; verify it against the document. The actor does not rename the engine's snake_case fields to camelCase.
Pricing
The existing page-extracted event costs $0.01 per readable page on the Free plan (higher Apify plans have the engine's existing discounts). A two-page PDF with two readable pages sent to AI creates two events regardless of the number of item rows; a JPG/PNG creates one event. Unreadable documents, download errors, and documents whose requested fields are all empty return a free row with charged: false and errorType. A readable non-invoice PDF that happens to contain a requested value may still be charged under the current engine rule; review the result before relying on it. There is no new event or price.
Limitations and data handling
The Actor stores results in your Apify Dataset and uses the existing extraction backend to process the document. This variant adds no separate document archive or training workflow. Do not upload confidential invoices unless your Apify and AI processing arrangements meet your requirements. Scanned PDFs and images use OCR; handwriting, poor scans, long tables, and truncated documents may need manual review. The amount mismatch warning is a review cue, not an accounting guarantee.
FAQ
What creates one Dataset row per item? lineItemRows, enabled by default. Flat columns places the repeated header and item values in separate CSV/Excel columns.
Are 404s charged? No. They return a free error row.