{"uid":"cap_gqA-HNHbs7HV21kuj17iz","slug":"agenttools-html-table-extractor-a2aa5f70","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://agenttools-hub.vercel.app/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.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V03ce60TsUJdAaGZGQszW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all HTML tables from a given URL or raw HTML string and returns them as structured JSON with headers and rows intact.","exampleAgentPrompt":"Can you extract all the tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP and give me the data as structured JSON rows and columns?","exampleUseCases":[{"title":"Pricing table from SaaS page","prompt":"Pull the pricing comparison table from https://example-saas.com/pricing and give me all the plan names, features, and prices as structured JSON."},{"title":"Stats table from sports page","prompt":"Extract the stats table from this Wikipedia page https://en.wikipedia.org/wiki/2023_FIFA_World_Cup and give me all the match results as rows and columns."},{"title":"Parse raw HTML table","prompt":"I have this raw HTML snippet with a product comparison table — can you parse it into structured JSON with the headers and rows kept intact?"}],"resultDescription":"Returns a JSON array of tables found on the page, each containing a 'headers' array (column names) and a 'rows' array of arrays (cell values), preserving the original table structure. May also include table index and count of tables found.","failureModes":["URL is inaccessible or returns a non-200 status — no tables returned","Page contains no HTML tables — returns empty array","Malformed raw HTML provided — partial or empty extraction","Limit parameter set too low — only first N tables returned","Page requires JavaScript rendering — static HTML fetch may miss dynamically loaded tables","Rate limiting or timeout on the target URL — extraction fails"],"whenToPreferThis":"Choose this endpoint when you need to extract structured tabular data from a webpage or raw HTML without using a vision model or complex scraping pipeline. It is ideal for pricing tables, comparison charts, statistics tables, and any page where data is already structured in HTML table tags. Prefer this over general-purpose web scrapers when you specifically need table data as clean JSON rows and columns, and over vision models when the source is parseable HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:16.916Z","isFirstParty":false,"canonicalSlug":"agenttools-html-table-extractor-a2aa5f70"}