Extract invoice data and line items to JSON
Turns an invoice into structured JSON: vendor, invoice number, invoice and due dates, payment terms, purchase order, subtotal, tax, total, currency and every line item with quantity, unit price and amount. The example runs on an inline sample invoice (a data: URL), so swap in your own invoice PDF or DOCX URLs. Free rules extractor, no model, no API key.
Input
Output fields
Sign up on Apify or log in
The PDF & Document to JSON Extractor (AI) — Invoices, Forms Actor is ready to run with the inputs already set for "Extract invoice data and line items to JSON". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Extract invoice data and line items to JSON" task
The PDF & Document to JSON Extractor (AI) — Invoices, Forms Actor will start running based on the input automatically. You can also change all the input fields, like document urls, JSON Schema of the object to extract, and more, to match your specific use case.
Receive the "Extract invoice data and line items to JSON" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as file, title, pages, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Extract invoice data and line items to JSON" task via API.

Integrate "Extract invoice data and line items to JSON" into your workflow
Connect "Extract invoice data and line items to JSON" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay