# API Health Report

> API Health Report is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Measures endpoint status, latency, redirects, content type, and reachability for any URL in a single call.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/api-health-report
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-delx-ai-a732ad3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G0_b1w6gSskUjwWN16Bgy

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 api-delx-ai-a732ad3e -d '<json body>'
```

Example prompt: Can you run a full health check on https://api.example.com/v1/users — I need to know if it's reachable, what status code it returns, how long it takes to respond, whether there are any redirects, and what content type it's serving?

## When to prefer this

Use this endpoint when you need a quick, composite health snapshot of any URL — combining status, latency, redirects, and content type in one call — rather than making multiple separate probes. Ideal before calling an external dependency in an agent workflow, during incident diagnosis, or when verifying a newly registered domain or API is live.

## Known failure modes

- Target URL is unreachable or DNS fails — returns reachability=false with error detail
- Target returns unexpected content type — captured in report but not an error
- Malformed URL input — 400 validation error
- Payment not provided or insufficient — 402 payment required
- Target endpoint times out — latency reported as timeout with status unreachable

## How this service works

Check endpoint status, latency, redirects, content type, and JSON validity for $0.001 USDC. One single-fetch structured result, no API key.

## Output

A structured report including HTTP status code, response latency in milliseconds, any redirect chain with intermediate URLs, detected content type, and overall reachability verdict for the probed endpoint.

## Example request

```json
{
 "url": "https://www.example.com",
 "timeout": 8
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "timeout": {
   "type": "integer",
   "maximum": 15,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "server": "cloudflare",
   "status": 200,
   "is_json": true,
   "final_url": "https://api.example.com/health",
   "json_valid": true,
   "latency_ms": 184,
   "content_type": "application/json",
   "cache_control": "no-store",
   "response_bytes": 128
  },
  "tool_name": "util_api_health_report"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-delx-ai-a732ad3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
