# Extract Canonical and Alternates as JSON

> Extract Canonical and Alternates 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-12).

Fetches a web page URL and extracts all canonical link elements and alternate link elements, returning them as a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/canonical-and-alternates/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-canonical-and-alternates-as-json-f492b940
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1mWEBC3sx8yt5l6g-GWQu

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-canonical-and-alternates-as-json-f492b940
```

Example prompt: Can you fetch https://www.example.com/blog/my-post and extract all the canonical and alternate link elements from that page as a JSON array?

## When to prefer this

Choose this endpoint when you need a structured, machine-readable JSON extraction of canonical and alternate link elements from a single web page without needing a browser. It is purpose-built for SEO metadata pipelines, hreflang audits, and canonical tag verification where you only need these specific link element types — not full page scraping or general metadata extraction.

## Known failure modes

- URL is unreachable or returns a non-200 status — likely returns an error or empty result
- Page has no canonical or alternate link elements — returns an empty array with count 0
- URL is malformed or missing — request validation error
- Page blocks server-side fetching (e.g. requires JavaScript rendering) — may return incomplete results
- Payment not provided or insufficient — x402 payment required error

## How this service works

Extract the page's canonical and alternates as json: fetches the URL, pulls every canonical and alternates 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 containing all canonical and alternate link elements found on the fetched page, along with a count of how many elements were extracted. Each element in the array represents one canonical or alternate link tag parsed from the page's 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-canonical-and-alternates-as-json-f492b940/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)
