# extract-classes-as-csv

> extract-classes-as-csv is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Fetches a web page URL and extracts all CSS class names, returning them as CSV rows with occurrence counts

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/classes/csv?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-classes-as-csv-493d6c0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4pj7uQ4BFzUYuzbQGc0zC

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 extract-classes-as-csv-493d6c0a
```

Example prompt: Can you pull all the CSS classes from https://example.com and give me a CSV with the class names and how many times each one appears on the page?

## When to prefer this

Choose this endpoint when you need a structured, machine-readable CSV of all CSS classes present on a specific web page, especially for front-end audits, design-system analysis, or feeding class data into automated pipelines. It requires no browser or JavaScript rendering and is optimized for single-page, single-element-type extraction at low cost. Prefer this over JSON or text variants when downstream tooling expects CSV format.

## Known failure modes

- Invalid or unreachable URL returns an error with no CSV output
- Page with no class attributes returns an empty or header-only CSV
- Paywalled or bot-blocked pages may return incomplete or empty results
- Malformed HTML may result in partial class extraction
- Network timeout if the target page is slow to respond

## How this service works

Extract the page's classes as csv: fetches the URL, pulls every classes element and returns them as CSV rows, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A CSV document where each row represents a unique CSS class name found on the fetched page, accompanied by a count of how many times that class appears. The response is plain structured text suitable for direct ingestion into spreadsheets, data pipelines, or further analysis.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-classes-as-csv-493d6c0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from page.intel.rallylive.ca](https://www.zero.xyz/host/page.intel.rallylive.ca/llms.txt)
