# extract-links-as-csv

> extract-links-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 and extracts all hyperlink elements, returning them as CSV rows with a total count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/links/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-links-as-csv-1fbbcd94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_buKgykjopBKKYg75n7_OD

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-links-as-csv-1fbbcd94
```

Example prompt: Can you extract all the links from https://example.com/blog and give me the results as a CSV with a count of how many there are?

## When to prefer this

Choose this endpoint when you need a clean, CSV-formatted list of all hyperlinks from a single page without a browser, and when downstream processing (spreadsheets, pipelines, databases) benefits from CSV structure over JSON. Prefer over JSON variants when CSV is the required format. Use the bulk endpoints for processing multiple URLs simultaneously.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Pages behind authentication or bot detection may return empty or blocked results
- Pages with no anchor/link elements return an empty CSV with a zero count
- Malformed URLs in the query parameter cause a request failure
- Very large pages with thousands of links may result in slower response times

## How this service works

Extract the page's links as csv: fetches the URL, pulls every links 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-formatted response where each row represents a link found on the fetched page, along with a total count of links discovered. The output is structured and machine-readable, suitable for direct ingestion into spreadsheets, databases, or downstream pipeline steps.

## 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-links-as-csv-1fbbcd94/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)
