{"uid":"cap_hpMw0x0NS5ILO_go09Y5k","slug":"agenttools-html-table-extractor-81d32912","name":"AgentTools HTML Table Extractor","description":"Extract every HTML table from a page (or raw HTML) as structured JSON: headers and rows kept intact. The deterministic answer to 'get the pricing table / comparison table / stats table from this page' — no vision model needed. Use this when an agent needs to hTML tables → structured JSON rows and columns.","url":"https://agentstoolshub.com/api/v1/dev/table-extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"Or provide raw HTML instead"},"html":{"type":"string","description":"Raw HTML"},"limit":{"type":"number","description":"Max tables"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4VAARnBejVc2ISXghGGTp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a webpage by URL or accepts raw HTML and returns every HTML table as structured JSON with headers and rows preserved","exampleAgentPrompt":"Can you pull all the HTML tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP and give me the data as structured JSON with headers and rows?","exampleUseCases":[{"title":"Extract pricing table from SaaS page","prompt":"Grab the pricing comparison table from https://www.notion.so/pricing and give me all the plan names, features, and prices as structured JSON rows."},{"title":"Parse sports stats from Wikipedia","prompt":"Extract all the stats tables from https://en.wikipedia.org/wiki/2024_Summer_Olympics_medal_table and return the headers and rows as JSON — I need to compare country medal counts."},{"title":"Scrape schedule table from raw HTML","prompt":"I have this raw HTML snippet from a conference page — can you pull out the session schedule table and give me the structured rows with speaker names, times, and topics?"}],"resultDescription":"Returns an array of extracted tables, each containing a headers array (column names) and a rows array (arrays of cell values), preserving the original table structure from the HTML. Includes metadata such as table count and index.","failureModes":["URL is unreachable or returns a non-200 status — no tables returned","Page has no HTML tables (uses CSS grid/flexbox instead) — empty array returned","SSRF-guarded URLs (private IP ranges, localhost) blocked","Raw HTML is malformed or truncated — partial extraction or empty result","limit parameter caps results, potentially missing tables beyond the threshold","Dynamic tables rendered via JavaScript may not be captured since the endpoint fetches static HTML"],"whenToPreferThis":"Choose this endpoint when you need deterministic, structured extraction of HTML tables from a page without relying on a vision model or LLM parsing. It is ideal for pricing pages, comparison tables, stats tables, schedules, and any tabular data embedded in standard HTML table elements. Prefer it over general scraping endpoints when the target data is specifically in <table> tags and you need clean header/row JSON output reliably and cheaply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:50:11.158Z","isFirstParty":false,"canonicalSlug":"agenttools-html-table-extractor-81d32912"}