{"uid":"cap_thrj--KzEdxvn2Bz4Oa6t","slug":"vextorium-html-table-extractor-865a4f4e","name":"Vextorium HTML Table Extractor","description":"Extract the HTML tables of a web page as JSON (headers and rows, merged cells handled, layout tables skipped): Wikipedia lists, public statistics or reports, ready to analyze.","url":"https://api.vextorium.com/v1/html-tables?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["url"],"properties":{"url":{"type":"string"},"index":{"type":"integer","description":"Only this table"},"max_rows":{"type":"integer"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"tables":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"rows":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"Country/Territory":{"type":["null","string"]},"IMF ( 2026 ) [ 1 ]":{"type":["null","string"]},"Regional groupings":{"type":["null","string"]},"World Bank (2024) [ 6 ]":{"type":["null","string"]},"World Bank (2025) [ 6 ]":{"type":["null","string"]},"United Nations (2024) [ 7 ]":{"type":["null","string"]}}}},"index":{"type":["null","number"]},"title":{"type":["null","string"]},"columns":{"type":["array","null"],"items":{"type":["null","string"]}},"num_rows":{"type":["null","number"]}}}},"url_final":{"type":["string","null"]},"tables_on_page":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"tables":[{"rows":[{"Country/Territory":"World","IMF ( 2026 ) [ 1 ]":"126,295,331","World Bank (2025) [ 6 ]":"118,350,166","United Nations (2024) [ 7 ]":"111,565,144"},{"Country/Territory":"United States","IMF ( 2026 ) [ 1 ]":"32,383,920","World Bank (2025) [ 6 ]":"30,769,700","United Nations (2024) [ 7 ]":"29,298,000"}],"index":2,"title":"GDP forecast or estimate (million US$) by country","columns":["Country/Territory","IMF ( 2026 ) [ 1 ]"],"num_rows":222},{"rows":[{"IMF ( 2026 ) [ 1 ]":"126,295,331","Regional groupings":"World","World Bank (2024) [ 6 ]":"110,983,000"},{"IMF ( 2026 ) [ 1 ]":"73,813,712","Regional groupings":"Advanced Economies/High Income [ r 1 ]","World Bank (2024) [ 6 ]":"71,321,000 [ r 2 ]"}],"index":3,"title":"GDP forecast or estimate (million US$) by region or grouping","columns":["Regional groupings","IMF ( 2026 ) [ 1 ]"],"num_rows":13}],"url_final":"https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)","tables_on_page":8}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0HmkhhS4Jm0PjBqzaig39","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a webpage and extracts all HTML tables from it, returning structured rows, columns, and titles for each table found.","exampleAgentPrompt":"Can you extract all the HTML tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal) and give me the data as structured JSON rows and columns?","exampleUseCases":[{"title":"Wikipedia statistics data extraction","prompt":"Pull all the tables from https://en.wikipedia.org/wiki/List_of_countries_by_population and give me the country names and population figures as structured data."},{"title":"Government statistics page scraping","prompt":"Extract the tables from https://www.worldometers.info/world-population/population-by-country/ — I only want the first table and cap it at 50 rows."},{"title":"Financial data table from public report","prompt":"Grab just table index 2 from https://www.imf.org/en/Publications/WEO and return its rows and column headers as JSON so I can work with the numbers."}],"resultDescription":"A JSON object containing an array of tables found on the page. Each table includes its index, title, column headers, number of rows, and an array of row objects (key-value pairs matching column names to cell values). Also returns the final resolved URL after any redirects and the total count of tables on the page.","failureModes":["URL is unreachable or returns a non-200 HTTP status — no tables returned","Page contains no HTML tables — empty tables array","Specified table index does not exist on the page — empty or null result","Page requires JavaScript rendering — static HTML scraper may miss dynamically loaded tables","Rate-limited or blocked by the target website — request may fail or return partial data"],"whenToPreferThis":"Choose this endpoint when you need to extract structured tabular data directly from a public webpage — especially Wikipedia, government statistics pages, or financial data portals — without writing your own scraper. It's ideal for one-off or pay-per-call data needs where setting up a full scraping pipeline isn't worth the overhead. Use the index parameter when you know which specific table you want to avoid processing noise from other tables on the page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:36:25.035Z","isFirstParty":false,"canonicalSlug":"vextorium-html-table-extractor-c48d04bb"}