Validated Table & Invoice Extractor for AI Agents
Pricing
from $5.00 / 1,000 extract inlines
Validated Table & Invoice Extractor for AI Agents
Extract typed tables and structured invoice or receipt fields from PDF, HTML, Markdown, CSV or text, then verify the arithmetic (line totals, GST, balance due, AU ABN checksum) so agents do not invent numbers. $0.005 inline or $0.01 per PDF page or URL.
Pricing
from $5.00 / 1,000 extract inlines
Rating
0.0
(0)
Developer
Chris Day
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Give this Actor a PDF, HTML, Markdown, CSV or text document — inline, as base64, or from a public URL — and it returns typed tables and, when the document looks like an invoice or receipt, structured fields plus an automatic accounting-math check. Line totals, GST, discounts, shipping, balance due and Australian ABN checksums are verified so a language model does not have to invent or silently accept a bad total.
It does not call a language model. Extraction and checks are deterministic.
When an AI agent should use this
Use geeky_goth_gamer/validated-table-invoice-extractor when:
- You have a tax invoice, receipt or statement and must extract vendor, dates, line items, GST and totals with arithmetic you can trust.
- You need a typed table (currency, dates, numbers) from a PDF, HTML (
colspan/rowspan), Markdown pipe table or CSV, including column sums. - You want a clear
isValidflag and plain-Englishanomalieswhen qty × unit price, the GST roll-up, or an ABN checksum is wrong.
Don't use it for:
- Handwritten scans or photos that are not already a selectable-text PDF.
- Inventing missing fields; absent values are
nulland the related check isskipped. - Private, intranet or metadata URLs (they are rejected).
Example input:
{"mode": "auto","expectedCurrency": "AUD","content": "TAX INVOICE\nHobart Office Supplies Pty Ltd\nABN: 51 824 753 556\nInvoice Number: INV-2026-1042\n...\nSubtotal: $150.00\nGST Amount: $15.00\nTotal: $165.00\n"}
Output: One dataset item with tables (typed rows, columnTypes, sums) and, when invoice cues are present, invoice (vendor, tax id, dates, line items, totals) plus validation: isValid, confidence, per-check status (pass / fail / skipped) with expected / actual / delta, and anomalies.
Cost: $0.005 per inline HTML/Markdown/CSV/text extraction; $0.01 per PDF page extracted or per fetched URL. Invalid input is not billed. Apify also charges the standard $0.00005 Actor-start fee on ordinary runs.
Call it from an agent:
- Apify MCP server: add
https://mcp.apify.com/?tools=geeky_goth_gamer/validated-table-invoice-extractorto your MCP client; the tool isgeeky_goth_gamer--validated-table-invoice-extractor. Or usecall-actorwith"actor": "geeky_goth_gamer/validated-table-invoice-extractor". - Standby HTTP:
POST https://geeky-goth-gamer--validated-table-invoice-extractor.apify.actor/extract(alsoPOST /extract-invoice,POST /extract-tables) withAuthorization: Bearer YOUR_TOKENand the input JSON.GET /healthis a liveness check. - Python:
ApifyClient(token).actor("geeky_goth_gamer/validated-table-invoice-extractor").call(run_input=...), then readclient.dataset(run["defaultDatasetId"]).list_items().items. - HTTP run:
POST https://api.apify.com/v2/acts/geeky_goth_gamer~validated-table-invoice-extractor/run-sync-get-dataset-items?token=YOUR_TOKENwith the input JSON as the body.
Why this exists
Agents misread invoice columns, invent GST and miss a bad total. This Actor loads the document (SSRF-safe URL, inline text or base64, with size and PDF page caps), extracts typed tables, pulls structured invoice fields when cues exist, and runs explicit arithmetic checks including the Australian ABN weighted checksum (mod 89).
Input
| Field | Default | Notes |
|---|---|---|
mode | auto | auto, invoice or tables. Standby routes set this for you. |
content | (one source) | Inline HTML, Markdown, CSV/TSV or text. |
sourceUrl | (one source) | Public http(s) URL. |
fileBase64 | (one source) | Base64 PDF or text (data: prefix accepted). Optional filename / mimeType. |
expectedCurrency | (none) | e.g. AUD. Used for currency consistency. |
mathTolerance | 0.02 | Absolute currency tolerance (two cents). |
maxPages | 25 | PDF page cap, hard maximum 50. |
timeoutSeconds | 30 | Download time limit. |
maxFileSizeMb | 10 | Download / decoded size cap (max 20). |
Output
The default dataset holds one envelope (status, mode, source, tables, invoice, validation, billed).
Invoice validation.checks include line_item_multiplication, line_items_sum_to_subtotal, subtotal_tax_discount_shipping_to_total, balance_due_check, currency_consistency and abn_checksum (when an AU ABN is present). isValid is true only when every applicable check passes within mathTolerance.
Standby / Server mode
When started through Apify's server interface (APIFY_META_ORIGIN=STANDBY), the Actor listens on APIFY_CONTAINER_PORT / ACTOR_WEB_SERVER_PORT (default 8080) and handles:
GET /health— livenessPOST /extract— auto modePOST /extract-invoice— invoice modePOST /extract-tables— tables only- Any request carrying the
x-apify-container-server-readiness-probeheader is answered immediately with HTTP 200 and bodyok
Standby URL: https://geeky-goth-gamer--validated-table-invoice-extractor.apify.actor
Pricing
| Event | Price | When it is charged |
|---|---|---|
extract-inline (primary) | US$0.005 | One successful inline HTML, Markdown, CSV or text extraction. |
extract-document | US$0.01 | One PDF page extracted, or one fetched URL (HTML/CSV/text). A 3-page PDF charges 3. |
apify-actor-start | US$0.00005 (Apify default) | Once when a standard run starts. |
Failed input and failed fetches are not billed. Your maximum cost per run is respected.
Safety
URL fetches are SSRF-safe: only http/https on standard ports, every redirect hop is re-validated, and private, loopback, link-local, CGNAT and cloud-metadata addresses are blocked. Downloads, decoded base64 and PDF page counts are capped. Malformed PDFs return a clear error.
Limitations
- Image-only (scanned) PDFs without a text layer will yield few or no fields.
- Ambiguous date numbers are read day-first (AU/UK).
- Complex multi-table invoices may attach line items to the first table that looks like a line-item list.
- Tax identifiers other than an 11-digit Australian ABN are captured but not checksum-validated.