FINANCIAL TABLES · TYPED JSON

Extract Complex Financial Schedules & Multi-Header HTML/PDF Reports Into Typed JSON

Target Query: extract financial tables html pdf reports to json api · Category: Use Case Guide · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02

Direct Answer: Public regulatory filings, investor fact sheets, and municipal budgets pack critical figures inside multi-row `<thead>` bands, `rowspan` category blocks, accounting parentheses `(1,420.5)`, and binary PDF appendices. Standard Markdown scrapers destroy column alignment and turn numbers into untyped strings. Scrape-Anything combines 2D HTML grid expansion, binary PDF coordinate table reconstruction, currency/sign normalization, and strict JSON Schema validation—producing auditable JSON rows with `receipt_sha256`.

Engineering Mechanics & Deterministic Guardrails

Financial Schedule Parsing Edge Cases & Resolutions

Financial Table ComplexityFailure Mode in Generic ScrapersScrape-Anything Deterministic Output
Two-tier period & metric headersLost parent period contextFlattened composite keys (`FY2026 | Revenue`)
Accounting negatives `(1,250.00)`Parsed as string or stripped of minus signTyped numeric `-1250.0` + preserved currency unit
`<tfoot>` Consolidated TotalsBlended into segment line itemsIsolated `footer_rows` separate from `rows`
Multi-column PDF earnings tablesCharacters scrambled across columnsCoordinate-clustered row reconstruction from `Tm`/`Td`
Corrupt or missing balance sheetNull rows silently insertedStrict JSON Schema rejects payload -> `$0` billed
Pure-Stream Multi-Format Latency vs Headless Browser Stacks (Relative Overhead) Headless Chrome Pool + Residential Proxy 3,200-8,500 ms LLM Markdown-to-JSON Two-Pass Pipeline 1,800-4,500 ms Scrape-Anything PDF FlateDecode Stream 15-120 ms Scrape-Anything Complex HTML Table Grid 10-90 ms Scrape-Anything __NEXT_DATA__ / JSON-LD 8-60 ms Scrape-Anything Binary .xlsx / CSV Gate 5-50 ms SQLite WAL Verified Archive Cache Hit < 5 ms

Financial Statement Table JSON Schema

{
  "type": "object",
  "required": [
    "tables"
  ],
  "properties": {
    "tables": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "headers",
          "rows"
        ],
        "properties": {
          "headers": {
            "type": "array",
            "minItems": 2
          },
          "rows": {
            "type": "array",
            "minItems": 1
          }
        }
      }
    }
  }
}

Any extracted payload violating required keys, types, bounds, or regex patterns returns schema_valid: false, exact validation_errors, and billed_micros: 0.

Executable REST, Remote /mcp & treg hub Snippets

curl -fsSL -X POST "https://scrape.fastmesh.dev/v1/extract" \
  -H "Content-Type: application/json" \
  -d '{
    "content_text": "<table><thead><tr><th rowspan=\"2\">Segment</th><th colspan=\"2\">FY2026 Operating Results</th></tr><tr><th>Revenue</th><th>Net Margin</th></tr></thead><tbody><tr><td>Core API</td><td>$1,240,000</td><td>82.4%</td></tr><tr><td>Enterprise</td><td>$680,000</td><td>79.1%</td></tr></tbody><tfoot><tr><td>Total</td><td>$1,920,000</td><td>81.2%</td></tr></tfoot></table>",
    "format_hint": "html_table"
  }'

curl -fsSL -X POST "https://scrape.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":8,"method":"tools/call","params":{"name":"scrape_table","arguments":{"url":"https://example.org/financial-summary.html"}}}'

Hard guarantee: fake-200 CAPTCHA/Turnstile shells, login walls, encrypted PDFs, empty results, schema mismatches, and SSRF HTTP 422 blocks always return billed_micros: 0.

Test Schema-Validated Extraction Live in 5 Seconds

Paste any public URL, HTML table, JSON-LD, CSV, or fake-200 shell at scrape.fastmesh.dev or top up once with never-expiring Creem prepaid credits ($15 Starter / $59 Growth / $199 Scale — $0/mo recurring).

Frequently Asked Questions

Can Scrape-Anything parse both HTML filings and linked PDF financial schedules?

Yes. `/v1/extract` automatically routes HTML tables to `html_tables.py` (`$0.015`) and binary PDFs to `pdf_parser.py` (`$0.025`).

How do I prevent malformed financial rows from entering my warehouse?

Define strict `type: "number"` and `required` rules in `json_schema`. Non-conforming tables fail validation at `$0` before touching your database.

Are extracted financial queries kept confidential?

Yes. Scrape-Anything enforces strict zero customer data resale and never shares or resells what filings or companies your organization inspects.

Related Structured Extraction Guides

Explore all 32 Scrape-Anything Technical Guides or inspect the machine-readable llms.txt index.