# x402 Site Audit API

> x402 Site Audit API is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Audits a webpage URL for SEO, security headers, metadata, indexability, and technical site health metrics

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/site-audit?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-site-audit-api-b1b0aa8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SaBLysl-8ryvhjGM4knYj

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 x402-site-audit-api-b1b0aa8b
```

Example prompt: Can you do a full SEO and security audit of https://mystore.com/landing-page — I want to know the score, any missing meta tags, whether it's indexable, and what security headers are missing?

## When to prefer this

Choose this endpoint when you need a fast, no-signup, pay-per-call SEO and security audit of a specific URL without subscribing to a full SEO platform. Ideal for AI agents that need programmatic access to page metadata, security headers, indexability, and structured data on-demand. Best for single-page spot checks rather than full-site crawls. The x402 micropayment model ($0.02 USDC per call) makes it cost-effective for low-volume or ad-hoc audits.

## Known failure modes

- URL is unreachable or returns non-200 status — returns actual HTTP status in response with partial data
- Invalid or malformed URL — likely returns error or empty result
- Page behind authentication — only publicly accessible content is audited
- Timeout on slow pages — may return incomplete data
- JavaScript-rendered content may not be fully captured by the crawler

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

Returns a JSON object with SEO score (0-100), page title and length, meta description, H1/H2 headings and counts, canonical URL, final URL after redirects, redirect chain, HTTPS status, indexability flag, noindex source, robots meta, viewport, hreflang tags, open graph tags, Twitter card data, JSON-LD types, microdata flag, word count, link counts (internal/external/nofollow), image counts and missing alt text, detected technologies, security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP), and a list of issues with severity levels.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Page URL to audit."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "h1": [
   "Example Domain"
  ],
  "url": "https://example.com/",
  "lang": "en",
  "https": true,
  "links": {
   "external": 1,
   "internal": 0,
   "nofollow": 0
  },
  "score": 94,
  "title": "Example Domain",
  "images": {
   "total": 0,
   "missing_alt": 0
  },
  "issues": [
   {
    "code": "missing_meta_description",
    "message": "No meta description.",
    "severity": "warning"
   }
  ],
  "status": 200,
  "h1_count": 1,
  "h2_count": 0,
  "hreflang": [],
  "viewport": "width=device-width, initial-scale=1",
  "canonical": null,
  "final_url": "https://example.com/",
  "indexable": true,
  "microdata": false,
  "open_graph": {},
  "word_count": 28,
  "robots_meta": null,
  "technologies": [],
  "title_length": 14,
  "twitter_card": {},
  "json_ld_types": [],
  "noindex_source": null,
  "redirect_chain": [],
  "meta_description": null,
  "security_headers": {
   "referrer_policy": null,
   "x_frame_options": null,
   "permissions_policy": false,
   "x_content_type_options": null,
   "content_security_policy": false,
   "strict_transport_security": null,
   "cross_origin_opener_policy": null
  },
  "canonical_is_self": null,
  "meta_description_length": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-site-audit-api-b1b0aa8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
