# HTTP HEAD URL Health Check

> HTTP HEAD URL Health Check is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Performs an HTTP HEAD request against a public URL and returns the status code, latency in milliseconds, and a subset of response headers for uptime and health monitoring

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/http-head
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/http-head-url-health-check-30ef7a0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zrb8qjNWvPTdRFicXR1_B

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 http-head-url-health-check-30ef7a0f
```

Example prompt: Can you do a quick health check on https://api.example.com — tell me if it's up, how fast it responded, and what HTTP status code it returned?

## When to prefer this

Use this endpoint when you need a lightweight, paid uptime signal for a public HTTPS URL without downloading the full response body. Ideal for agent-driven health monitoring, brand protection pipelines, or pre-flight checks before hitting a dependency. Prefer this over a full GET-based scrape when you only need status, latency, and headers. Part of a suite that also offers TLS cert checks, DNS lookups, and redirect chain following on the same host.

## Known failure modes

- Non-HTTPS or private/local URLs rejected — only public https:// URLs accepted
- Target URL is unreachable or DNS fails — returns ok: false with no status
- Target returns a non-2xx status — ok may be false, status code still returned
- Timeout on slow upstream — returns ok: false, latency may still be reported
- Malformed or missing url query parameter — returns validation error

## How this service works

Public URL status, latency, and response header subset for uptime and health agents

## Output

Returns a JSON object with: ok (boolean indicating success), status (HTTP status code integer), ms (round-trip latency in milliseconds), headers (subset of response headers), and service (string label for the target service).

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public https:// URL"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ms": {
       "type": "number"
      },
      "ok": {
       "type": "boolean"
      },
      "status": {
       "type": "number"
      },
      "headers": {
       "type": "object"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/http-head-url-health-check-30ef7a0f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
