Validated Table & Invoice Extractor for AI Agents avatar

Validated Table & Invoice Extractor for AI Agents

Pricing

from $5.00 / 1,000 extract inlines

Go to Apify Store
Validated Table & Invoice Extractor for AI Agents

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

Chris Day

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

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 isValid flag and plain-English anomalies when 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 null and the related check is skipped.
  • 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-extractor to your MCP client; the tool is geeky_goth_gamer--validated-table-invoice-extractor. Or use call-actor with "actor": "geeky_goth_gamer/validated-table-invoice-extractor".
  • Standby HTTP: POST https://geeky-goth-gamer--validated-table-invoice-extractor.apify.actor/extract (also POST /extract-invoice, POST /extract-tables) with Authorization: Bearer YOUR_TOKEN and the input JSON. GET /health is a liveness check.
  • Python: ApifyClient(token).actor("geeky_goth_gamer/validated-table-invoice-extractor").call(run_input=...), then read client.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_TOKEN with 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

FieldDefaultNotes
modeautoauto, 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.
mathTolerance0.02Absolute currency tolerance (two cents).
maxPages25PDF page cap, hard maximum 50.
timeoutSeconds30Download time limit.
maxFileSizeMb10Download / 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 — liveness
  • POST /extract — auto mode
  • POST /extract-invoice — invoice mode
  • POST /extract-tables — tables only
  • Any request carrying the x-apify-container-server-readiness-probe header is answered immediately with HTTP 200 and body ok

Standby URL: https://geeky-goth-gamer--validated-table-invoice-extractor.apify.actor

Pricing

EventPriceWhen it is charged
extract-inline (primary)US$0.005One successful inline HTML, Markdown, CSV or text extraction.
extract-documentUS$0.01One PDF page extracted, or one fetched URL (HTML/CSV/text). A 3-page PDF charges 3.
apify-actor-startUS$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.