# HTTP Headers Fetcher

> HTTP Headers Fetcher is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches HTTP response headers from a given URL using a HEAD or GET request, returning the headers as structured data.

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/http/headers?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/http-headers-fetcher-0520464a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sbwUT7_sbVEy4XoBZC-jV

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-headers-fetcher-0520464a -d '<json body>'
```

Example prompt: Can you fetch the HTTP response headers for https://example.com using a HEAD request so I can see what server software and cache settings it uses?

## When to prefer this

Choose this endpoint when you need to inspect the raw HTTP headers of a URL without downloading the full page body, especially for security audits, CDN detection, cache policy inspection, content-type verification, or server fingerprinting. It is more efficient than full page extraction when only metadata about the response is needed.

## Known failure modes

- Target URL is unreachable or times out — network error returned
- URL returns a redirect loop — may fail or return redirect headers only
- Invalid URL format provided — schema validation error
- Target server blocks automated requests — may return 403 or empty headers
- Non-HTTP/HTTPS URLs not supported — schema validation rejects them

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object containing the HTTP response headers from the target URL, including fields like Content-Type, Cache-Control, Server, X-Frame-Options, Strict-Transport-Security, CORS headers, and any other headers present in the server's response, along with a status indicator.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri"
      },
      "method": {
       "enum": [
        "HEAD",
        "GET"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/http-headers-fetcher-0520464a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
