# WebLens Site Audit API

> WebLens Site Audit API is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.75/call, status unknown (last checked 2026-10-01).

Performs an AI-powered audit of a website URL, returning SEO, performance, security, and accessibility scores along with actionable issue findings and recommendations.

## Facts

- Endpoint: POST https://api.weblens.dev/intel/site-audit?utm_source=zero.xyz
- Price: $0.75/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-site-audit-api-2a775106
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CSfGCOWwtpPO1J-mDwAfl

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 weblens-site-audit-api-2a775106 -d '<json body>'
```

Example prompt: Can you run a full site audit on https://myshop.com and tell me what SEO, performance, security, and accessibility issues it has, along with scores and what I should fix first?

## When to prefer this

Choose this endpoint when you need a structured, scored breakdown of a website's SEO, performance, security, and accessibility health in a single call. It is particularly useful when you want actionable issue lists with severity ratings and recommendations rather than raw page content. Prefer this over a generic scrape endpoint when the goal is site quality assessment rather than data extraction. The caching discount makes it cost-effective for repeated monitoring of the same URL.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Payment failure via x402 protocol prevents the audit from running
- Timeout if the target site is extremely slow to respond
- Rate limiting if too many audits are requested in a short window
- Cached response returned if URL was recently audited (cheaper but potentially stale)

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

A JSON object containing the audited URL, a list of issues (each with a message, category such as SEO/performance/security/accessibility, and severity level), numeric scores (0–100) for SEO, security, performance, and accessibility, an ISO timestamp of when the audit ran, a request ID, and a list of prioritized plain-language recommendations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to audit (http/https)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "issues": [
   {
    "message": "Missing meta description",
    "category": "seo",
    "severity": "high"
   },
   {
    "message": "Render-blocking CSS",
    "category": "performance",
    "severity": "low"
   }
  ],
  "scores": {
   "seo": 87,
   "security": 95,
   "performance": 92,
   "accessibility": 88
  },
  "auditedAt": "2026-04-06T12:00:00.000Z",
  "requestId": "req_audit123",
  "recommendations": [
   "Add unique meta descriptions to every page",
   "Defer non-critical CSS"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-site-audit-api-2a775106/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
