HTML Table Extractor - Web Page Tables to CSV, JSON & Excel avatar

HTML Table Extractor - Web Page Tables to CSV, JSON & Excel

Pricing

$1.00 / 1,000 table extracteds

Go to Apify Store
HTML Table Extractor - Web Page Tables to CSV, JSON & Excel

HTML Table Extractor - Web Page Tables to CSV, JSON & Excel

Extract every HTML table from web pages into clean JSON rows and CSV downloads: real headers, colspan and rowspan handled, numbers cleaned, links kept, CSS selector and keyword filter. Respects robots.txt. $1 per 1,000 tables.

Pricing

$1.00 / 1,000 table extracteds

Rating

0.0

(0)

Developer

Wood Between Studio

Wood Between Studio

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

HTML Table Extractor: Turn Web Page Tables into JSON, CSV and Excel

Extract every HTML <table> from a list of web pages into clean, structured data. Real header rows are detected (including multi-row headers), colspan and rowspan are expanded so columns line up, footnote markers are removed, numbers can be converted, links can be kept, and each table is also saved as a CSV file with a download link.

Why use it?

  • Tables that actually line up. Merged cells (colspan/rowspan) are filled in correctly, duplicate header names are made unique, repeated header rows are skipped.
  • Pick the right table. CSS selector (e.g. table.wikitable), "contains text" keyword filter, minimum row count to skip layout tables; navigation boxes are ignored by default.
  • Two output shapes. One item per table (with its rows inside) or one item per row, ready for CSV/Excel export.
  • Polite. Respects each site's robots.txt and fetches every page once.
  • Cheap and fair. $1 per 1,000 tables, no start fee. Pages without matching tables are free.

Use cases

  • Pulling statistics, rankings and reference lists (e.g. Wikipedia tables) into spreadsheets
  • Price, spec and comparison tables on product and documentation pages you are allowed to reuse
  • Turning public reports and government data pages into CSV
  • Feeding tabular web data into Google Sheets, databases or LLM pipelines

Input

FieldDefaultNotes
startUrls(required)Pages with tables
tableSelectortableCSS selector
containsTextKeep only tables containing this text
minRows2Minimum data rows
outputModetablestables or rows
cleanNumbersfalse"1,234.5" / "45%" to numbers
includeLinksfalseAdds <column>_link fields
saveCsvtrueCSV per table in the key-value store
maxTablesPerPage50
{ "startUrls": ["https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population"], "tableSelector": "table.wikitable", "cleanNumbers": true }

Output (tables mode)

{
"pageUrl": "https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population", "tableIndex": 0,
"caption": "List of countries and territories by total population", "headers": ["Location", "Population", "% of world", "Date", "Source (official or from the United Nations)", "Notes"],
"rowCount": 240, "columnCount": 6, "csvUrl": "https://api.apify.com/v2/key-value-stores/.../records/en.wikipedia.org-0-0", "status": "success",
"rows": [{ "Location": "World", "Population": 8232000000, "% of world": 100, "Date": "13 Jun 2025", "Source (official or from the United Nations)": "UN projection", "Notes": "" }]
}

Pricing

Pay per event: $0.001 per table extracted ($1 per 1,000). No start fee.

Notes

Works on static HTML (tables built by JavaScript after page load are not seen). Only use it on pages whose terms allow reuse of their data, and respect copyright and licences (e.g. Wikipedia's CC BY-SA). Built by Wood Between Studio. Questions? Open an issue on the Issues tab.