# Mat Web & Data Toolkit — HTTP Headers Fetcher

> Mat Web & Data Toolkit — HTTP Headers Fetcher is a paid API for AI agents from automatom.matt-d59.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Fetches the HTTP response headers for a given public URL and returns them along with status code and response time as JSON.

## Facts

- Endpoint: GET https://automatom.matt-d59.workers.dev/headers?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mat-web-data-toolkit-http-headers-fetcher-55bfdda5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y-gZZGMtg5Y-s_MjhF6B7

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 mat-web-data-toolkit-http-headers-fetcher-55bfdda5
```

Example prompt: Can you fetch the HTTP response headers for https://example.com and tell me the status code, content type, and how fast it responded?

## When to prefer this

Choose this endpoint when you need to inspect the raw HTTP headers returned by a public URL — e.g. to check security posture, content-type, caching policy, CORS settings, or redirect behavior — without needing to parse the page body. It is distinct from full-page scraping endpoints on the same service that return title, links, and readable text.

## Known failure modes

- URL is unreachable or times out — likely returns an error object or non-200 status
- Invalid or malformed URL provided — may return a 400-level error
- Private or localhost URLs may be blocked by the worker sandbox
- Some sites may block automated requests, resulting in 403 or empty header sets
- SSL/TLS errors on the target site may prevent fetching

## How this service works

Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.

## Output

Returns a JSON object containing the final resolved URL, HTTP status code, response time in milliseconds, and a map of all HTTP response headers (e.g. content-type, cache-control, set-cookie, server, etc.).

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ms": 11,
  "url": "https://example.com/",
  "status": 200,
  "headers": {
   "content-type": "text/html"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mat-web-data-toolkit-http-headers-fetcher-55bfdda5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automatom.matt-d59.workers.dev](https://www.zero.xyz/host/automatom.matt-d59.workers.dev/llms.txt)
