BINARY XLSX, CSV & TSV · SCHEMA GATE

Binary .xlsx, CSV & TSV to Strict JSON Schema API (Pure-Stream, Zero Excel Dependencies)

Target Query: xlsx csv tsv to json schema validator api · Category: Extraction Modality · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02

Direct Answer: Public regulatory registers, vendor price books, and procurement portals constantly publish data as `.xlsx`, `.csv`, or `.tsv` attachments. Scrape-Anything parses binary OOXML `.xlsx` archives directly via pure-stdlib `zipfile` + `xml.etree.ElementTree` (resolving `sharedStrings.xml`, `workbook.xml`, rels, cell coordinates, inline strings, numbers, booleans, and cached formula outputs) plus auto-delimiter CSV/TSV, enforces your target JSON Schema with strict type checking, and bills `$0` whenever required columns are missing or uncoercible.

Engineering Mechanics & Deterministic Guardrails

Spreadsheet Extraction & Schema Enforcement Capabilities

Format / Edge CaseHow Scrape-Anything Handles ItFailure / Mismatch OutcomeVerified Rate
Multi-sheet binary `.xlsx`Reads all sheets with exact sheet names & header rowsMalformed ZIP or corrupt XML -> `billed_micros = 0`$0.020 (20,000 micros)
Sparse empty cells (`A2`, `D2`)Maps Excel column letters to exact 0-based indicesMissing required cell fails JSON Schema -> `$0`Zero column shift
Shared strings & inline stringsResolves `t="s"` index lookup and `t="inlineStr"` textUTF-8 safe across international SKUsIncluded
CSV / TSV auto-delimiter`csv.Sniffer` + fallback delimiter detector (`,`, `\t`, `;`)Headerless/empty payload -> `billed_micros = 0`$0.020 (20,000 micros)
Type coercion & boundsValidates `minimum`, `maximum`, `enum`, `pattern`, `required`Uncoercible string in numeric column -> `schema_valid: false`, `$0`Strict contract gate
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

Validated Price Book Spreadsheet Row JSON Schema

{
  "type": "object",
  "required": [
    "sheets"
  ],
  "properties": {
    "sheets": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "name",
          "rows"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "sku",
                "unit_price"
              ],
              "properties": {
                "sku": {
                  "type": "string",
                  "minLength": 2
                },
                "unit_price": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          }
        }
      }
    }
  }
}

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": "sku,unit_price,currency\nSCRAPE-15,15.00,USD\nSCRAPE-59,59.00,USD",
    "content_type": "text/csv",
    "format_hint": "spreadsheet"
  }'

curl -fsSL -X POST "https://scrape.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"scrape_spreadsheet","arguments":{"content_text":"sku,unit_price\nA-1,19.5","content_type":"text/csv"}}}'

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 I extract an `.xlsx` file hosted at a public HTTPS URL?

Yes. Supply the public HTTPS URL to `/v1/extract` (or `scrape_spreadsheet` via `/mcp`), or pass `content_base64` with `content_type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"`.

What if a spreadsheet changes column names upstream and breaks my schema?

Because Scrape-Anything validates against your `json_schema` before billing, schema drift returns `schema_valid: false`, detailed `validation_errors`, and `billed_micros: 0` instead of silently ingesting nulls.

Does binary `.xlsx` parsing require Excel, pandas, or openpyxl?

No. Scrape-Anything uses pure Python 3 standard library `zipfile` and `xml.etree.ElementTree`, achieving millisecond cold start and deterministic parsing.

Related Structured Extraction Guides

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