HTML Table Extractor: Web Page Tables to Clean JSON Rows avatar

HTML Table Extractor: Web Page Tables to Clean JSON Rows

Pricing

Pay per event

Go to Apify Store
HTML Table Extractor: Web Page Tables to Clean JSON Rows

HTML Table Extractor: Web Page Tables to Clean JSON Rows

Pull every data table from any web page as clean rows keyed by column name. Handles merged cells, stacked headers and nested tables. Fast HTTP, no browser, export to CSV.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Damian Obernikowicz

Damian Obernikowicz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Features

Limited permissions

Share

HTML Table Extractor

Give it web pages and get their tables as structured rows, one result per table, ready for code, spreadsheets or LLMs.

What it does

  • Real rows, not cell soup: merged cells are expanded so every row has the same columns, and repeated column names stay distinct.
  • Stacked headers are joined: Population over 2024 becomes Population 2024.
  • Layout tables filtered: set a minimum number of rows and columns.
  • Priced per table returned, so pages with no matching table cost nothing beyond the run start.
  • Bad inputs don't fail the run: each input's status is listed in SUMMARY in the key-value store, and failed inputs produce no charged results.

Input

{
"urls": [
"https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue"
]
}

All options are described on the Input tab.

Output

Each result has these fields, plus fetchedAt. Fields without a value are null.

  • url: Requested URL.
  • finalUrl: URL after redirects.
  • tableIndex: Position of the table on the page, from 0.
  • caption: Table caption, if any.
  • hasHeaderRow: False if the table has no marked header, so columns are named column_1, column_2.
  • headers: Column names.
  • rows: Rows as objects keyed by column name.
  • rowCount: Number of data rows.
  • columnCount: Number of columns.

Pricing

$0.001 per table returned, plus $0.001 per run. If you set a maximum cost per run, the Actor stops at that limit.

Limits

  • It reads HTML without running JavaScript. Tables a page builds in the browser aren't found, and grids made from div elements aren't tables.
  • At most 5,000 rows per table and about 8 MB per page.
  • Cell text only: links and images inside cells aren't output.
  • A header is recognised only when the page marks it with thead or th. Others get column_1 style names and hasHeaderRow: false.
  • It respects robots.txt and doesn't use proxies. Blocked pages are listed as failed and not charged.

Issues

Open an issue on the Issues tab with your input and run ID. This Actor isn't affiliated with or endorsed by the services it reads.