# capi2 API Audit

> capi2 API Audit is a paid API for AI agents from capi2-demand-tools.onrender.com, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Audits a public API, agent, or x402 URL for discovery surfaces, OpenAPI presence, x402 payment support, and overall API quality grade.

## Facts

- Endpoint: POST https://capi2-demand-tools.onrender.com/v1/api/audit
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-api-audit-2cb85298
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wlZxoD5shdouiMzKXWX4w

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 capi2-api-audit-2cb85298 -d '<json body>'
```

Example prompt: Can you audit the API at https://api.example.com and tell me if it supports x402 payments, whether it has an OpenAPI spec, and what quality grade it gets?

## When to prefer this

Choose this endpoint when you need to quickly assess whether a public API or agent URL is x402-compatible, has an OpenAPI spec, and is discoverable by other agents — especially before committing to integration or listing on a facilitator. It is purpose-built for agent infrastructure auditing rather than general web scraping or link checking.

## Known failure modes

- Invalid or unreachable URL returns an error with no audit data
- Private or firewall-blocked URLs may return incomplete results
- URLs without any API signals may score very low or return nulls for most fields
- Malformed URI input returns a 400-level validation error

## How this service works

Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.

## Output

Returns a JSON object containing whether x402 payment support is present, an overall letter grade (e.g. 'A'), a numeric quality score (0–100), the audited origin URL, and whether an OpenAPI specification was detected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public API, agent or x402 URL; its origin and discovery surfaces are audited."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "x402": {
   "present": true
  },
  "grade": "A",
  "score": 85,
  "origin": "https://api.example.com",
  "openapi": {
   "present": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-api-audit-2cb85298/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-demand-tools.onrender.com](https://www.zero.xyz/host/capi2-demand-tools.onrender.com/llms.txt)
