HTML Table Extractor – Any Web Table to JSON/CSV avatar

HTML Table Extractor – Any Web Table to JSON/CSV

Pricing

$0.30 / 1,000 rows

Go to Apify Store
HTML Table Extractor – Any Web Table to JSON/CSV

HTML Table Extractor – Any Web Table to JSON/CSV

Extract every HTML table on any page into rows with proper headers, captions and table index. Works on Wikipedia, government stats, docs and reports. Extracts fields: url, tableIndex, tableCaption, rowIndex, data.

Pricing

$0.30 / 1,000 rows

Rating

0.0

(0)

Developer

CarrierDaily

CarrierDaily

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Security

Limited permissions

Share

Extract every HTML table on any page into rows with proper headers, captions and table index. Works on Wikipedia, government stats, docs and reports.

Why this actor

  • Header de-duplication and layout-table filtering; one row per table row ready for Sheets.
  • Pay only for results: $0.30 per 1,000 rows, no start fee, failed lookups are free.
  • Robust: automatic retries with exponential backoff, respects Retry-After, per-item error rows instead of crashed runs.
  • Clean, flat JSON/CSV/Excel output ready for Google Sheets, Make, Zapier, n8n, Clay, or the Apify API.

Use cases

  • Pull stats tables into spreadsheets
  • Build datasets from Wikipedia lists
  • Monitor tables that change
  • Feed tables to LLMs

How to use HTML Table Extractor

  1. Configure urls, tableIndex, minRows in the Input tab (or leave the prefilled sample values to test immediately).
  2. Optionally set maxItems to cap the number of results and control spend.
  3. Click Start and export structured results as JSON, CSV, Excel, or connect directly via API / MCP / n8n / Make.

Input

FieldTypeDescription
urlsarrayPages containing HTML elements.
tableIndexinteger0-based index; leave empty for all tables.
minRowsintegerSkip layout tables smaller than this.
maxItemsinteger0 = no limit. Caps cost.

Example input:

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

Output

Each dataset item looks like this (real sample from a test run, long fields trimmed):

{
"url": "https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue",
"tableIndex": 0,
"tableCaption": null,
"rowIndex": 0,
"data": {
"Ranks": "USD (in billions)",
"Name": null,
"Industry": null,
"Revenue": null,
"Profit": null,
"Employees": null,
"Headquarters [ note 1 ]": null,
"State-owned": null,
"Ref.": null
},
"scrapedAt": "2026-10-14T23:42:14+00:00"
}

Rows that could not be processed contain an error field and are not charged.

Extracted output fields

Every dataset row includes structured fields ready for spreadsheets, CRMs, and AI pipelines:

  • Fields: url, tableIndex, tableCaption, rowIndex, data, scrapedAt

Comparison: HTML Table Extractor vs alternatives

FeatureThis Actor (shawndunn/html-table-extractor)Typical alternatives
Pricing model$0.30 / 1,000 results, $0.00 start fee$20–$49/mo subscription or per-run start fees
Failed / error lookups$0.00 (never charged)Often billed by compute time even on failures
API keys / proxies requiredNone (works out of the box)Often requires paid third-party keys or residential proxies
AI Agent & MCP readyYes (mcp.apify.com compatible, optional defaults)Strict required schemas that reject agent calls

Pricing

Pay-per-event: $0.0003 per row (= $0.30 / 1,000). Use Max results to cap spend. Apify's free plan credit covers thousands of results per month.

Integrations & API

Run on a schedule in Apify Console, call via the Apify API / Python & JS clients, or connect to Make, Zapier, n8n, Google Sheets, Slack and webhooks. Works as a tool for AI agents via Apify MCP.

Use with AI agents (MCP)

HTML Table Extractor is configured for zero-config AI agent tool use via the Apify MCP Server (no required-field blocking on defaulted inputs).

Streamable HTTP endpoint:

https://mcp.apify.com/?tools=shawndunn/html-table-extractor

Claude Desktop / Cursor / Windsurf mcpServers config:

{
"mcpServers": {
"apify-html-table-extractor": {
"url": "https://mcp.apify.com/?tools=shawndunn/html-table-extractor",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_TOKEN>"
}
}
}
}

Direct synchronous API call:

POST https://api.apify.com/v2/acts/shawndunn~html-table-extractor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>

FAQ

Is this an official tool? No. It is an independent actor and is not affiliated with, sponsored or endorsed by the data source or any trademark owner named here.

Is it legal? The actor only reads publicly available data from public endpoints, without logins, and does not bypass paywalls or access controls. You are responsible for using the data in line with applicable laws (e.g. GDPR) and the source sites' terms.

Something broke? Open an issue in the Issues tab; we typically respond within 24 hours and ship fixes fast.

More tools by shawndunn