# BRAINIAC Document Language Check

> BRAINIAC Document Language Check is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-17).

Checks a webpage or HTML document for missing, invalid, or mismatched lang attributes and WCAG language accessibility issues

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accessibility/document-language-check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-document-language-check-697575bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EUgZj7gq6SCtC8k5zSfnQ

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 brainiac-document-language-check-697575bf -d '<json body>'
```

Example prompt: Can you check whether https://www.example.com has a proper lang attribute set on the html element and flag any WCAG language accessibility issues?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call, no-account accessibility check specifically focused on document language attributes and WCAG language requirements. It is ideal for CI/CD pipelines, agent-driven audits, or one-off checks where you don't want to maintain a subscription to a full accessibility platform. It supports both URL-based fetching and raw HTML input, making it flexible for pre-publication checks.

## Known failure modes

- URL is unreachable or returns a non-200 response — check may fail or return an error status
- HTML input exceeds 200,000 character limit — request rejected
- Neither url nor html provided — request invalid
- Page uses JavaScript to set lang dynamically — static check won't detect it
- Network timeout fetching the URL — no result returned

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing: the page URL or source indicator, an array of issues each with a code (e.g. 'language_missing'), kind ('confirmed' or 'manual'), affected element, plain-English explanation, and remediation advice; the detected language value; overall language status ('missing', 'present', etc.); a WCAG compliance boolean; warnings array; timestamp of the check; and a list of static-analysis limitations (e.g. JavaScript not executed, manual checks not auto-confirmed).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?:\\/\\/\\S+$",
   "maxLength": 2000,
   "minLength": 8
  },
  "html": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "",
  "issues": [
   {
    "code": "language_missing",
    "kind": "confirmed",
    "element": "html",
    "explanation": "The page has no lang attribute on the html element.",
    "remediation": "Add a lang attribute, such as lang=\"en\", that matches the page language."
   },
   {
    "code": "language_not_compared",
    "kind": "manual",
    "element": "document",
    "explanation": "The page text was not checked for its human language.",
    "remediation": "Confirm that the lang value matches the language people read on the page."
   }
  ],
  "source": "html",
  "status": "checked",
  "language": "",
  "warnings": [],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "limitations": [
   "This is a static HTML check. It is not a WCAG conformance claim.",
   "JavaScript is not run, so states that appear only after interaction are not seen.",
   "…"
  ],
  "languageStatus": "missing",
  "wcagCompliance": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-document-language-check-697575bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
