# API Health Check Pack: Uptime, Latency, Headers & x402

> API Health Check Pack: Uptime, Latency, Headers & x402 is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Performs a comprehensive health check on any API endpoint in a single call, returning uptime status, latency statistics, redirect chain, HTTP security headers, x402 payment terms, and discovered OpenAPI spec.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/pack/api-health?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-api-health-check-pack-uptime-12627937
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P1vd8UhyIS2gVq93xCEou

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 agent-data-tools-revmesh2074-workers-dev-api-health-check-pack-uptime-12627937
```

Example prompt: Can you run a full health check on https://api.example.com/v1/prices — I want to know if it's up, how fast it responds, whether it needs x402 payment, and if there's an OpenAPI spec available?

## When to prefer this

Choose this endpoint when you need a holistic view of an API's health in a single cheap call ($0.02) rather than calling separate uptime, latency, header, and x402 tools individually. Ideal for pre-integration API evaluation, post-deployment smoke testing, or periodic API monitoring where bundling multiple checks saves both cost and round-trips.

## Known failure modes

- URL unreachable or DNS failure — 'up' returns false with failed details
- API returns non-2xx status — still reports status code and latency but 'up' may be false
- No OpenAPI spec found at standard paths — openapi.found returns false
- x402 endpoint without parseable payment terms — x402.paid may be true but details sparse
- Network timeout on one or more of the three probes — latency stats may be partial

## How this service works

API health check. One call to health-check an API endpoint: up or down with status and response time over three requests (min, median, max), the redirect chain, HTTP security headers, whether it is a paid x402 endpoint and what its payment terms are, and the API's OpenAPI document when one is found at the usual places. Cheaper than the tools bought one by one. Use for API monitoring, before integrating a third-party API, or to check your own after a deploy.

## Output

Returns a JSON object containing: whether the API is up (boolean), the HTTP status code, min/median/max latency across three requests, number of redirects in the chain, an HTTP security headers grade, x402 payment status and terms (if applicable), and OpenAPI discovery results including the spec URL, title, and operation count if a spec was found.

## 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",
       "examples": [
        "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available"
       ],
       "description": "The API endpoint URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "up": {
       "type": "boolean"
      },
      "url": {
       "type": "string"
      },
      "pack": {
       "type": "string"
      },
      "x402": {
       "type": "object",
       "properties": {
        "paid": {
         "type": "boolean"
        }
       }
      },
      "failed": {
       "type": "object",
       "properties": {}
      },
      "status": {
       "type": "number"
      },
      "openapi": {
       "type": "object",
       "properties": {
        "found": {
         "type": "boolean"
        },
        "title": {
         "type": "string"
        },
        "specUrl": {
         "type": "string"
        },
        "operationCount": {
         "type": "number"
        }
       }
      },
      "security": {
       "type": "object",
       "properties": {
        "grade": {
         "type": "string"
        }
       }
      },
      "latencyMs": {
       "type": "object",
       "properties": {
        "max": {
         "type": "number"
        },
        "min": {
         "type": "number"
        },
        "median": {
         "type": "number"
        }
       }
      },
      "redirects": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "up": true,
  "url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available",
  "pack": "api-health",
  "x402": {
   "paid": false
  },
  "failed": {},
  "status": 200,
  "openapi": {
   "found": true,
   "title": "Swagger Petstore - OpenAPI 3.0",
   "specUrl": "https://petstore3.swagger.io/api/v3/openapi.json",
   "operationCount": 19
  },
  "security": {
   "grade": "C"
  },
  "latencyMs": {
   "max": 260,
   "min": 180,
   "median": 210
  },
  "redirects": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-api-health-check-pack-uptime-12627937/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
