# link-rel-alternate Extractor

> link-rel-alternate Extractor is a paid API for AI agents from site.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Extracts all rel="alternate" links from a web page, resolving them to absolute URLs with a count, useful for finding language and format alternates.

## Facts

- Endpoint: GET https://site.intel.rallylive.ca/site/link-rel/alternate?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/link-rel-alternate-extractor-faf6985c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c6L6Z9KtqvMZPa5zSt-Vy

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 link-rel-alternate-extractor-faf6985c
```

Example prompt: Can you pull all the rel="alternate" links from https://www.example.com/article — I want to see every language version and alternate format (like AMP or RSS) that page declares, with their absolute URLs?

## When to prefer this

Use this endpoint when you specifically need to discover language alternates (hreflang), format alternates (RSS, AMP, PDF), or other rel=alternate link annotations declared in a page's HTML. It is preferable over a full-page scrape when you only need alternate link metadata and want a focused, low-cost extraction. Choose this over generic link extractors when the rel attribute type matters and you want resolved absolute URLs ready to use.

## Known failure modes

- Page returns non-200 status — no links extracted
- Page has no rel=alternate links — returns empty list with count 0
- Relative URLs that cannot be resolved if base URL is ambiguous
- JavaScript-rendered pages may not expose alternate links if only rendered client-side
- Rate limiting or access restrictions on the target page returning an error
- Invalid or malformed URL input causing request failure

## How this service works

The rel="alternate" links of a page: every matching <link>/<a> with href, resolved to absolute URLs, with a count. Language/format alternates. $0.01 per page.

## Output

A list of all <link> and <a> elements with rel="alternate" found on the target page, each resolved to an absolute URL, along with a total count of matching links. Typical results include hreflang entries for different language/region versions and format alternates such as RSS, Atom, AMP, or PDF representations.

## 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/link-rel-alternate-extractor-faf6985c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from site.intel.rallylive.ca](https://www.zero.xyz/host/site.intel.rallylive.ca/llms.txt)
