# extract-anchors-as-json

> extract-anchors-as-json 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-13).

Fetches a web page and extracts all anchor (<a>) elements, returning them as a structured JSON array with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/anchors/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-anchors-as-json-eab5f92c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-rik7Tj4WKy1v4SzfNekm

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-anchors-as-json-eab5f92c
```

Example prompt: Can you fetch https://www.example.com and extract all the anchor links from that page and give me the results as a JSON list?

## When to prefer this

Choose this endpoint when you need a clean, structured JSON list of all anchor elements from a static or server-rendered web page, without spinning up a browser. Ideal for pipelines, agents, and automation workflows that need machine-readable link data at low cost ($0.01/page). Prefer over scraping SDKs or browser automation when the page content is available server-side and you only need anchors (not full DOM, images, or other elements).

## Known failure modes

- Target URL is unreachable or returns a non-200 status — service may return an error or empty result
- Page uses JavaScript-only rendering and anchors are injected client-side — may miss dynamically rendered links since no browser is used
- Malformed URL input — request fails with an error
- Page has no anchor elements — returns empty array with count of 0
- Rate limiting or access restrictions on the target URL — may result in incomplete or blocked extraction

## How this service works

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

## Output

A JSON array of all anchor (<a>) elements found on the fetched page, along with a total count of anchors. Each element in the array represents one anchor tag extracted from the page HTML.

## 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-anchors-as-json-eab5f92c/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)
