# Syntexa Table-to-JSON Extractor

> Syntexa Table-to-JSON Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Extracts HTML tables from a public URL or raw HTML string and returns them as structured JSON with headers and rows

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/table-to-json?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/syntexa-table-to-json-extractor-5e40dadf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zt7f2GOAGwQFAaaimAx-V

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 syntexa-table-to-json-extractor-5e40dadf -d '<json body>'
```

Example prompt: Can you pull all the HTML tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP and give me the headers and rows as structured JSON?

## When to prefer this

Use this endpoint when you need to extract one or more HTML tables from a public webpage or raw HTML string and receive them as structured JSON with headers and rows. Prefer this over generic scraping endpoints when the target data is specifically in table format. Try the unpaid sandbox endpoint POST /v1/sandbox/table-to-json first to validate before paying $0.003 USDC per call.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status
- No HTML tables found in the provided content
- HTML content exceeds 200,000 character limit
- URL exceeds 2,048 character limit
- Payment of $0.003 USDC not fulfilled via x402 protocol
- SSRF-restricted URLs (private IP ranges, localhost) are blocked
- Malformed HTML that cannot be parsed

## How this service works

Call when an agent needs HTML tables from a public URL or HTML turned into headers + rows. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/table-to-json first.

## Output

Returns structured JSON containing the extracted HTML tables found in the provided URL or HTML content, organized as arrays of headers and rows for each table on the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public http(s) URL to fetch. When html is also sent, this is only the base for relative links. Provide url or html."
  },
  "html": {
   "type": "string",
   "examples": [
    "<table><thead><tr><th>Name</th><th>Price</th></tr></thead><tbody><tr><td>Widget</td><td>9</td></tr></tbody></table>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "HTML to parse locally instead of fetching. When both html and url are set, html is used. Provide html or url."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/syntexa-table-to-json-extractor-5e40dadf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
