# SVG Accessibility Audit

> SVG Accessibility Audit is a paid API for AI agents from relic-forge-api.bakongi.chatgpt.site, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Performs heuristic accessibility checks on SVG markup, reporting on ARIA attributes, title/description elements, ID uniqueness, and accessible name source quality.

## Facts

- Endpoint: POST https://relic-forge-api.bakongi.chatgpt.site/api/svg-accessibility-audit?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/svg-accessibility-audit-85c81d73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t8MbwnsAGSXosXx5N7nPE

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 svg-accessibility-audit-85c81d73 -d '<json body>'
```

Example prompt: Can you audit this SVG markup for accessibility issues — check if it has a proper title, description, aria-labelledby references, no duplicate IDs, and whether a screen reader would find a usable name: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' aria-labelledby='t1 d1'><title id='t1'>Magic Relic</title><desc id='d1'>A glowing artifact</desc><circle cx='50' cy='50' r='40'/></svg>

## When to prefer this

Use this endpoint when you need a fast, lightweight heuristic check of SVG accessibility attributes — especially ARIA labelling, title/desc presence, and ID uniqueness — without spinning up a full browser render or screen reader test. It is best suited for CI pipelines, agent-driven asset validation, or pre-publish checks on inline SVG where a quick signal about accessible name wiring is sufficient. Prefer alternatives if you need full XML parsing, browser accessible-name algorithm compliance, or actual screen reader output.

## Known failure modes

- Malformed or missing SVG body may return an error or produce inaccurate heuristic counts
- Highly nonstandard SVG constructs can cause false positives or false negatives in element counts
- Missing payment / x402 auth will result in a 402 payment required response
- Namespace-prefixed or entity-encoded markup may not be fully parsed, as XML namespace parsing is not performed
- Very large SVG inputs may be rejected or time out

## How this service works

Create CC0 game relics, compare public BTC funding data, screen Pennsylvania vendor names, inspect public email-domain DNS, and use small Base USDC agent tools.

## Output

A JSON object reporting: whether a root <svg> element was found, the count of <title> and <desc> elements and whether the first has non-whitespace text, aria-hidden status, aria-label presence, aria-labelledby reference count and missing reference count, viewBox presence, ID count and duplicate ID count, the inferred accessible name source heuristic, input byte count, schema version, audit timestamp, and an array of known limitations of the heuristic approach. On successful paid calls, a Base network settlement transaction hash is also returned.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": {
   "elementCount": 1,
   "firstHasNonWhitespaceText": true
  },
  "method": "bounded lexical checks; not XML parsing",
  "idAudit": {
   "idAttributeCount": 1,
   "duplicateIdValueCount": 0
  },
  "rootRole": "img",
  "checkedAt": "2026-10-22T06:24:13.709Z",
  "ariaHidden": false,
  "inputBytes": 167,
  "settlement": {
   "network": "base",
   "transaction": "<hash returned after a successful paid call>"
  },
  "description": {
   "elementCount": 1,
   "firstHasNonWhitespaceText": true
  },
  "limitations": [
   "This does not parse XML namespaces, fully decode entities, implement the browser accessible-name algorithm, render the SVG, or test any screen reader.",
   "Heuristic counts can include markup-like text in unusual SVG constructs and can miss malformed or nonstandard markup; false positives and false negatives are possible.",
   "A candidate name source or existing ID reference does not prove that assistive technology will announce a useful name.",
   "The SVG is processed in memory only: this endpoint does not fetch URLs, store the markup, or forward it. Submit public, non-confidential SVG markup only."
  ],
  "rootSvgFound": true,
  "schemaVersion": 1,
  "ariaLabelledby": {
   "referenceCount": 1,
   "attributePresent": true,
   "missingReferenceCount": 0
  },
  "viewBoxPresent": true,
  "nameSourceHeuristic": "aria-labelledby_targets_present_content_unverified",
  "ariaLabelNonWhitespace": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/svg-accessibility-audit-85c81d73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relic-forge-api.bakongi.chatgpt.site](https://www.zero.xyz/host/relic-forge-api.bakongi.chatgpt.site/llms.txt)
