# extract-canonical-and-alternates-as-text

> extract-canonical-and-alternates-as-text 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-10).

Fetches a webpage and extracts all canonical and alternate link elements, returning them as plain-text lines with a count

## Facts

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

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-text-9bca7979
```

Example prompt: Can you fetch https://example.com/blog/my-post and extract all of its canonical and alternate link elements, returning them as plain text lines with a count?

## When to prefer this

Choose this endpoint when you need a lightweight, no-browser extraction of just canonical and alternate link elements from a page in plain text format, suitable for SEO audits, content pipelines, or agent workflows that need simple line-by-line output rather than full JSON structures. Prefer it over full-page scrapers when only canonical/hreflang metadata is needed, and over JSON variants when downstream tools expect plain text.

## Known failure modes

- Target URL is unreachable or returns non-200 status, resulting in an error response
- Page has no canonical or alternate elements, returning an empty result with a count of zero
- Malformed or relative canonical URLs may be returned as-is without resolution
- Rate limiting or payment failure (x402) if the $0.01 USDC micropayment is not processed
- Very large pages may cause slow response times

## How this service works

Extract the page's canonical and alternates as text: fetches the URL, pulls every canonical and alternates element and returns them as plain lines, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A plain-text response containing one canonical or alternate link element per line, plus a total count of how many elements were found on the page. No HTML or JSON structure — just clean, line-separated URLs and a summary count.

## 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-text-9bca7979/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)
