# CoCo HTML Table Counter

> CoCo HTML Table Counter is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Counts the number of HTML tables present in a target page or response, returning the total table count as a JSON number.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/html-tables?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-html-table-counter-6aa3f710
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eo3qhDjBIrVtUDgPiDG5I

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 coco-html-table-counter-6aa3f710
```

Example prompt: Can you check how many HTML tables are on that page and return the count for me?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) programmatic count of HTML table elements — ideal for lightweight document structure analysis, validation pipelines, or pre-processing steps before deeper HTML parsing. Not suitable if you need the actual table content, only the count.

## Known failure modes

- No query parameters provided — endpoint may return a default or error response
- HTML content with no tables returns table_count of 0
- Malformed or non-HTML input may produce unexpected count results
- Rate limiting or payment failure (x402) results in 402 Payment Required response

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing a single field `table_count` (number), representing the total count of HTML table elements found in the parsed content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "table_count"
     ],
     "properties": {
      "table_count": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "table_count": 1
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-html-table-counter-6aa3f710/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
