{"uid":"cap_23IGxpPcbP5e41g1H5Zlq","slug":"web-scraper-api-structured-elements-extractor-bb5caed3","name":"Web Scraper API – Structured Elements Extractor","description":"Extract structured elements: heading hierarchy (h1-h6), lists, tables as 2D arrays, and images with alt text, plus element counts.","url":"https://web-scraper-api-production-bf20.up.railway.app/scrape/structured?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute http(s) URL of the page to scrape, e.g. 'https://example.com'."}}},"responseSchema":null,"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_rjvUZTMj4UEfep_jPJumE","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":"Extracts structured HTML elements from a webpage including heading hierarchy (h1–h6), lists, tables as 2D arrays, and images with alt text, plus element counts.","exampleAgentPrompt":"Can you scrape https://en.wikipedia.org/wiki/Solar_System and give me all the headings, tables, lists, and images with their alt text as structured data?","exampleUseCases":[{"title":"Extract Wikipedia article outline","prompt":"Scrape https://en.wikipedia.org/wiki/Climate_change and pull out the full heading hierarchy (h1 through h6) so I can see the article's structure at a glance."},{"title":"Pull pricing tables from competitor page","prompt":"Go to https://www.competitor-saas.com/pricing and extract all the tables as 2D arrays so I can compare their pricing tiers."},{"title":"Audit images and alt text on landing page","prompt":"Scrape https://www.mysite.com/landing and give me every image found along with its alt text so I can check for missing or poor accessibility descriptions."}],"resultDescription":"Returns structured JSON containing: an array of headings (each with level h1–h6 and text), an array of lists (ordered/unordered with items), tables represented as 2D arrays of cell values, images with their src URLs and alt text, and a summary of element counts for each type.","failureModes":["Invalid or non-absolute URL returns a 400 validation error","Unreachable or non-existent URL results in a connection/fetch error","Pages with heavy JavaScript rendering may return incomplete or empty structured elements if content is rendered client-side","Pages behind authentication or paywalls return no usable content","Very large pages may time out or return partial results","Pages with no structured elements (headings, tables, lists, images) return empty arrays with zero counts"],"whenToPreferThis":"Choose this endpoint when you need structured HTML elements (headings, tables, lists, images) extracted as typed, machine-readable arrays from a URL — rather than plain text content or link extraction. Ideal for outline analysis, table data extraction, image auditing, and content structure inspection. Prefer this over the plain-text scraper when you need hierarchical or tabular structure preserved, and over the links extractor when your goal is content elements rather than hyperlinks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:35:37.996Z","isFirstParty":false,"canonicalSlug":"web-scraper-api-structured-elements-extractor-bb5caed3"}