# link-rel-amphtml Extractor

> link-rel-amphtml 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-11-23).

Fetches a web page and returns all rel='amphtml' link elements with their resolved absolute URLs and a count.

## Facts

- Endpoint: GET https://site.intel.rallylive.ca/site/link-rel/amphtml?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/link-rel-amphtml-extractor-d5272ae0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jUeht3v81EUC5aERoPn9H

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-amphtml-extractor-d5272ae0
```

Example prompt: Can you check the page at https://www.example.com/article and tell me if it has a rel='amphtml' link — and if so, what the AMP URL is?

## When to prefer this

Use this endpoint when you need to programmatically discover whether a specific web page declares an AMP version via rel='amphtml' link tags. It is ideal for SEO auditing, content pipeline enrichment, or verifying AMP implementation. Prefer this over a generic HTML scraper when you specifically need AMP link discovery with resolved absolute URLs and a count, without parsing raw HTML yourself.

## Known failure modes

- Page is unreachable or returns non-200 status — no links returned
- Page has no rel='amphtml' links — count returns 0 with empty list
- Page uses JavaScript rendering so links are not in static HTML — may miss dynamically injected AMP links
- Relative URLs that cannot be resolved due to missing base URL — may return partial results
- Rate limiting or bot blocking by the target site — request may fail or return empty

## How this service works

The rel="amphtml" links of a page: every matching <link>/<a> with href, resolved to absolute URLs, with a count. AMP version. $0.01 per page.

## Output

Returns all <link> and <a> elements with rel='amphtml' found on the fetched page, with each href resolved to an absolute URL, plus a total count of matching links found.

## 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-amphtml-extractor-d5272ae0/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)
