# hreflang-map

> hreflang-map is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Extracts and validates all hreflang alternate link declarations from a webpage, including language/region targets, x-default, self-references, and duplicate checks.

## Facts

- Endpoint: GET https://intel.rallylive.ca/site/hreflang
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hreflang-map-b99b54fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g0RQGLm5dnCOPTYCAl4gA

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 hreflang-map-b99b54fd
```

Example prompt: Can you pull the hreflang map for https://example.com/about and tell me which languages and regions it targets, whether the x-default is set, and if there are any self-reference or duplicate issues?

## When to prefer this

Choose this endpoint when you need to audit, debug, or map the international SEO hreflang declarations of a specific page — particularly useful for SEO tooling, site crawlers, or agents validating multi-language/multi-region web presences. Prefer this over general HTML scrapers when you specifically need structured hreflang data with built-in consistency checks like self-reference validation and duplicate detection.

## Known failure modes

- Page URL is unreachable or returns a non-2xx status, resulting in no data extracted
- Page has no hreflang tags, returning an empty map
- Malformed hreflang attributes on the page may be skipped or flagged
- Network timeouts if the target page is slow to respond
- Payment not provided or insufficient USDC balance causes 402 rejection

## How this service works

hreflang map: every language and region alternate a page declares (link rel=alternate hreflang), the x-default, and consistency checks (self-reference present, duplicates). See which markets a site serves. $0.01 per page.

## Output

Returns a structured map of all hreflang alternate link declarations found on the page, including each language/region code and its corresponding URL, the x-default URL if present, whether a self-referencing hreflang tag exists, and any consistency issues such as duplicates or missing entries.

## 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/hreflang-map-b99b54fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
