API health check pack: uptime, latency, headers, x402
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.
Inputs
| Name | Type | Description |
|---|---|---|
url (required) | string | The API endpoint URL |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/pack/api-health?url=https%3A%2F%2Fpetstore3.swagger.io%2Fapi%2Fv3%2Fpet%2FfindByStatus%3Fstatus%3Davailable"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/pack/api-health?url=https%3A%2F%2Fpetstore3.swagger.io%2Fapi%2Fv3%2Fpet%2FfindByStatus%3Fstatus%3Davailable&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"pack": "api-health",
"url": "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available",
"up": true,
"status": 200,
"latencyMs": {
"min": 180,
"median": 210,
"max": 260
},
"redirects": 0,
"security": {
"grade": "C"
},
"x402": {
"paid": false
},
"openapi": {
"found": true,
"specUrl": "https://petstore3.swagger.io/api/v3/openapi.json",
"title": "Swagger Petstore - OpenAPI 3.0",
"operationCount": 19
},
"failed": {}
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is pack_api_health, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp