{"uid":"cap_IuZLTfSfccS6Fu-VO2Jp2","slug":"fastx402-html-table-to-json-19931bca","name":"FastX402 HTML Table to JSON","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/html-table-to-json?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":["html"],"properties":{"html":{"type":"string","description":"HTML string containing one or more table elements"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"headers":{"type":"array","items":{"type":"string"}}}}}}}}}}},"responseSchema":{"type":"json","example":{"tables":[{"rows":[["Alice","30"],["Bob","25"]],"headers":["Name","Age"]}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0cqBh-BDWewn79erwlNPO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses HTML containing one or more table elements and returns structured JSON with headers and rows","exampleAgentPrompt":"Convert this HTML table to JSON for me — it has columns for Name and Age with a few rows of data: '<table><thead><tr><th>Name</th><th>Age</th></tr></thead><tbody><tr><td>Alice</td><td>30</td></tr><tr><td>Bob</td><td>25</td></tr></tbody></table>'","exampleUseCases":[{"title":"Scraping financial data from a webpage","prompt":"I copied this HTML from a stock price comparison page and it has a big table of tickers, prices, and changes — can you convert it to JSON so I can process the numbers programmatically?"},{"title":"Processing emailed HTML reports","prompt":"I received an HTML email with a table showing monthly sales figures by region — parse the HTML table out of it and give me the data as structured JSON with headers and rows."},{"title":"Extracting Wikipedia table data","prompt":"Here's the raw HTML source of a Wikipedia page that has a table listing countries and their populations — extract all the table rows and headers and return them as JSON."}],"resultDescription":"A JSON object containing a 'tables' array, where each element represents one HTML table found in the input. Each table object has a 'headers' array (column names as strings) and a 'rows' array of arrays (each inner array is one row of cell values as strings).","failureModes":["Missing or empty 'html' query parameter returns an error","HTML with no table elements yields an empty tables array","Malformed or highly nested HTML may result in incomplete or empty row/header extraction","Very large HTML strings may hit size limits or timeout","Colspan/rowspan HTML table structures may not be correctly flattened into rows"],"whenToPreferThis":"Choose this endpoint when you have raw HTML markup containing one or more table elements and need structured JSON output without setting up a parsing library. It is ideal for agent workflows that scrape web pages, process HTML emails, or extract tabular data from documents, especially when no API key or account setup is desired and a micro-payment per call is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:46:23.821Z","isFirstParty":false,"canonicalSlug":"fastx402-html-table-to-json-19931bca"}