| HTML Table Pattern | Why Naive Scrapers Break | Scrape-Anything Grid Resolution | Schema Safety |
|---|---|---|---|
| `colspan="2"` header groups | Header count != data cell count; columns drift | Expands parent header across spanned columns and joins child header | Stable column names across rows |
| `rowspan="3"` category labels | Rows 2 and 3 shift left by 1 column | Occupies `(r+1, c)` and `(r+2, c)` and carries group value cleanly | Zero column misalignment |
| `<tfoot>` totals row | Mixed into line items, double-counting sums | Separated into explicit `footer_rows` metadata | Clean aggregate math |
| Formatted currencies (`$1,499.00`) | Stored as dirty strings breaking numeric schemas | Numeric/currency parser extracts typed float & currency code | Passes `type: number` validation |
| `rel="next"` table pagination | Truncated after page 1 | Extracts `pagination.next_url` & page links automatically | Ready for `/v1/batch` traversal |
{
"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
}
}
}
}
}
}
curl -fsSL -X POST "https://scrape.fastmesh.dev/v1/extract" \
-H "Content-Type: application/json" \
-d '{
"content_text": "<table><thead><tr><th rowspan=\"2\">Plan</th><th colspan=\"2\">Pricing</th></tr><tr><th>USD</th><th>Credits</th></tr></thead><tbody><tr><td>Starter</td><td>$15</td><td>1,000</td></tr><tr><td>Growth</td><td>$59</td><td>5,000</td></tr></tbody></table>",
"format_hint": "html_table"
}'
curl -fsSL -X POST "https://scrape.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"scrape_table","arguments":{"url":"https://example.org/rates"}}}'
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).
When a table has multiple header rows with `colspan` and `rowspan`, the 2D grid tracks parent group labels above child columns and combines distinct header segments into a clean, deduplicated key per column.
Yes. Send `content_text` with `content_type: "text/html"` and `format_hint: "html_table"` to `/v1/extract` or the `scrape_table` MCP tool.
Attach `minItems: 1` on `tables` in `json_schema`. If no table exists, validation returns `schema_valid: false` and `billed_micros: 0`.