# Swift Bot Labs Toolbox – Web HTTP Headers Checker

> Swift Bot Labs Toolbox – Web HTTP Headers Checker is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Fetches HTTP response headers for a given URL and grades its security header configuration, including redirect chain and response time.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/web/headers?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-web-http-headers-checker-704eddd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Jez5Pn5w-f14KFhC-QqY8

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 swift-bot-labs-toolbox-web-http-headers-checker-704eddd8
```

Example prompt: Can you check the HTTP headers for https://mycompany.com using a GET request and tell me what security headers are present, which ones are missing, and what security grade it gets?

## When to prefer this

Choose this endpoint when you need a quick, deterministic, pay-per-call check of a URL's HTTP response headers and security posture without setting up an account. Ideal for one-off audits, pre-launch security checks, or automated pipelines that need header data on demand. Prefer this over browser-based DevTools or full crawlers when you only need headers and redirect info, not page content.

## Known failure modes

- Invalid or unreachable URL returns an error or non-200 status
- Timeout if the target server is slow to respond
- Private/internal URLs (e.g. localhost) may be blocked or return no result
- Payment not accepted results in HTTP 402 before the tool executes
- Missing required 'url' query parameter causes a validation error

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with: the tool name ('web-headers'), response time in milliseconds, final URL, HTTP status code, a security grade (letter, e.g. 'A'), lists of present and missing security headers, and an array of redirect hops (each with from/to URL and status code).

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "method": {
       "enum": [
        "HEAD",
        "GET"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "web-headers",
  "result": {
   "ms": 180,
   "url": "https://github.com/",
   "status": 200,
   "security": {
    "grade": "A",
    "missing": [],
    "present": [
     "strict-transport-security",
     "content-security-policy"
    ]
   },
   "redirects": [
    {
     "to": "https://github.com/",
     "from": "http://github.com/",
     "status": 301
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-web-http-headers-checker-704eddd8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
