All templates
Concepts

Table Data Extraction

Extract structured data from HTML tables with 6 different patterns: infobox, data tables, ranked lists, comparison matrices, multi-table, and interactive sorted tables.

Get the code Quickstart
This template demonstrates 6 patterns for extracting data from various types of HTML tables. It handles infobox/key-value tables, standard data tables with headers, ranked leaderboards, feature comparison matrices, multi-table pages, and interactive tables that require sorting. The agent uses structured Zod schemas to extract clean, typed data from tables on sites like Wikipedia, comparison portals, and data-heavy pages. Includes helper functions to convert extracted data to CSV or JSON formats. Perfect for: Data collection, competitive research, building datasets, price monitoring, or any task requiring structured table data.