# AgentResolver HTTP Inspector

> AgentResolver HTTP Inspector is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Inspects an HTTPS URL via POST request and returns DNS, TLS, HTTP status, redirect, security headers, latency, and cache metadata

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/http-inspect
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-http-inspector-e9271403
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yvSwVY5IBoOgraTMibWtl

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 agentresolver-http-inspector-e9271403 -d '<json body>'
```

Example prompt: Can you inspect https://api.myservice.com/health — I want to see if the TLS cert is still valid, what security headers are set, and how fast it responds?

## When to prefer this

Choose this endpoint when you need a quick, structured diagnostic snapshot of an HTTPS URL — especially when you want TLS certificate details, security header presence, HTTP status, redirect behavior, and latency all in one call. Prefer it over raw HTTP clients when you need structured JSON output with pre-parsed TLS metadata and security header flags without writing custom parsing logic.

## Known failure modes

- Non-HTTPS URLs rejected — URL must start with https://
- URL longer than 2048 characters is rejected by schema validation
- Target URL is unreachable or times out — ok may be false or request errors
- Invalid JSON body type mismatch causes input schema validation failure
- TLS handshake failure if target has invalid/expired certificate — authorized: false returned

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

Returns a JSON object with: ok (boolean), DNS info (IP family), TLS details (issuer, subject, validity dates, days remaining, protocol, authorization status), HTTP status code, redirect chain (location, isRedirect), security header presence flags (CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy, X-Content-Type-Options), latency in milliseconds, content type, and cache-control header value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https://",
   "maxLength": 500
  },
  "body": {},
  "method": {
   "enum": [
    "GET",
    "HEAD",
    "POST"
   ],
   "type": "string"
  },
  "maxPriceUsd": {
   "type": "number",
   "maximum": 1000,
   "minimum": 0
  },
  "expectedPayTo": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  },
  "expectedNetwork": {
   "type": "string",
   "maxLength": 128
  },
  "allowUnpaidPostProbe": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "dns": {
   "family": 4
  },
  "tls": {
   "validTo": "Jan 1 00:00:00 2027 GMT",
   "issuerCn": "Example CA",
   "protocol": "TLSv1.3",
   "subjectCn": "example.com",
   "validFrom": "Jan 1 00:00:00 2026 GMT",
   "authorized": true,
   "daysRemaining": 108
  },
  "url": "https://example.com/",
  "x402": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "payTo": "0x1111111111111111111111111111111111111111",
   "score": 100,
   "checks": [
    {
     "id": "resource_binding",
     "label": "Challenge bound to requested resource",
     "passed": true,
     "weight": 10,
     "evidence": "resource=https://example.com/api."
    }
   ],
   "scheme": "exact",
   "network": "eip155:8453",
   "verdict": "strong",
   "version": 2,
   "detected": true,
   "resource": "https://example.com/api",
   "amountUsd": 0.005,
   "parseable": true,
   "acceptCount": 1,
   "amountAtomic": "5000",
   "challengeHeaderPresent": true
  },
  "trust": {
   "grade": "A",
   "score": 96,
   "checks": [
    {
     "id": "tls_authorized",
     "label": "TLS certificate authorized",
     "passed": true,
     "weight": 30,
     "evidence": "Certificate chain authorized."
    }
   ],
   "verdict": "strong",
   "x402Score": 100,
   "infrastructureScore": 91
  },
  "status": 200,
  "redirect": {
   "location": null,
   "isRedirect": false
  },
  "security": {
   "csp": false,
   "hsts": true,
   "xFrameOptions": true,
   "referrerPolicy": true,
   "permissionsPolicy": false,
   "xContentTypeOptions": true
  },
  "latencyMs": 85,
  "contentType": "text/html",
  "cacheControl": "max-age=3600"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-http-inspector-e9271403/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentresolver.vercel.app](https://www.zero.xyz/host/agentresolver.vercel.app/llms.txt)
