# SiteCheck – Web Page HTML Tables Extractor

> SiteCheck – Web Page HTML Tables Extractor is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Fetches a web page and extracts all HTML tables as structured row/column data including headers, captions, and row counts.

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/tables?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-web-page-html-tables-extractor-ea3cb610
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EqNwn0CdnIz_UmhKX0uoM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sitecheck-web-page-html-tables-extractor-ea3cb610
```

Example prompt: Can you pull all the HTML tables from https://www.w3schools.com/html/html_tables.asp and give me the headers and rows for each one?

## When to prefer this

Use this endpoint when you need to extract structured tabular data directly from static HTML on a web page without needing a full browser rendering pipeline. It is ideal for pages where tables are present in the raw HTML (Wikipedia, government data portals, pricing pages, stats pages) rather than rendered dynamically by JavaScript. Prefer this over general web scrapers when the target data is specifically in HTML table tags and you want clean header/row structure returned without additional parsing work.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return an error or empty table list
- Page uses JavaScript to render tables — JS-rendered tables are not captured, only static HTML tables are returned
- robots.txt disallows crawling — endpoint respects robots.txt and may skip the page
- Page has no HTML tables — returns tableCount of 0 with empty tables array
- Malformed or missing URL parameter — returns validation error
- Very large pages with many tables may have rows truncated (truncated flag set to true)

## How this service works

Every HTML table of a web page as JSON: caption, headers and rows, up to 10 tables with 200 rows each. Tables that a script draws are not included. robots.txt is respected; a page it disallows answers 403, not charged.

## Output

Returns a JSON object containing the page URL, a list of all HTML tables found (each with index, headers array, rows as arrays of strings, caption, row count, and truncation flag), total table count, the fetch timestamp, and a note about JavaScript-rendered table limitations and robots.txt compliance.

## Request schema (JSON Schema)

```json
{
 "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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Web page address, e.g. https://example.com/page"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://www.w3schools.com/html/html_tables.asp",
  "note": "Tables are read from the HTML only: JavaScript-rendered tables are not included, and a nested table is read as part of its outer one. robots.txt respected.",
  "source": "the page itself, fetched once",
  "tables": [
   {
    "rows": [
     [
      "Alfreds Futterkiste",
      "Maria Anders"
     ],
     [
      "Centro comercial Moctezuma",
      "Francisco Chang"
     ]
    ],
    "index": 0,
    "caption": null,
    "headers": [
     "Company",
     "Contact"
    ],
    "rowCount": 6,
    "truncated": false
   },
   {
    "rows": [
     [
      "<table>",
      "Defines a table"
     ],
     [
      "<th>",
      "Defines a header cell in a table"
     ]
    ],
    "index": 1,
    "caption": null,
    "headers": [
     "Tag",
     "Description"
    ],
    "rowCount": 10,
    "truncated": false
   }
  ],
  "checkedAt": "2026-10-14T04:49:25.427Z",
  "tableCount": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-web-page-html-tables-extractor-ea3cb610/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
