# page-language-detect

> page-language-detect 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).

Detects the declared HTML language, content-detected language, agreement between them, and hreflang alternate count for any web page URL.

## Facts

- Endpoint: GET https://intel.rallylive.ca/site/language
- 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/page-language-detect-bf763737
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3UFbMQXL3GkeDrYC9BqYs

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 page-language-detect-bf763737
```

Example prompt: Check what language https://example.com/about is actually written in and whether the HTML lang attribute matches — also tell me how many hreflang alternates it has.

## When to prefer this

Choose this endpoint when you need to verify or route pages based on language before passing them to a translation API or language-specific model, or when auditing multilingual sites for hreflang SEO correctness. It is specifically valuable when you need both the declared language and the content-detected language together with their agreement, rather than just a simple language guess.

## Known failure modes

- URL unreachable or returns non-200 HTTP status — no language data returned
- Page has no detectable text content (e.g. purely image-based) — content detection may be unreliable or absent
- Language not in supported set (only 12 European languages + CJK/Arabic) — may return unknown or low-confidence result
- No HTML lang attribute present — declared lang field returns null or empty
- Payment not processed — 402 response before any analysis is performed

## How this service works

Page language detection: the declared html lang and content-language, the language detected from the text itself (12 European languages plus CJK/Arabic scripts), agreement between the two, and the hreflang alternates count. Route content to the right model or translator. $0.01 per page.

## Output

Returns the declared HTML lang attribute value, the content-language HTTP header, the language detected from page text (covering 12 European languages plus CJK and Arabic scripts), a flag or score indicating agreement between declared and detected languages, and the count of hreflang alternate links on the page.

## 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/page-language-detect-bf763737/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)
