# x402check - x402 Endpoint Inspector

> x402check - x402 Endpoint Inspector is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-25).

Inspects a given HTTPS URL to determine if it requires x402 payment, what payment terms it accepts, and whether it is reachable and valid.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/x402check/check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402check-x402-endpoint-inspector-f77050ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7aoAiMPV6uY7x96hnxTFD

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 x402check-x402-endpoint-inspector-f77050ab
```

Example prompt: Can you check whether https://api.firstmention.uk/s/bizcal-api/day is an x402-gated endpoint, and if so, what USDC price and wallet address it requires for payment?

## When to prefer this

Use this endpoint when you need to programmatically discover or validate whether a given HTTPS URL is protected by the x402 payment protocol, what USDC amount and wallet it requires, and whether it is properly configured and reachable. Prefer this over manual inspection or generic HTTP probing tools when working within a Web3 agent stack that needs to auto-negotiate payment terms before calling pay-per-use APIs on the Base network.

## Known failure modes

- URL is not reachable — returns reachable: false with an appropriate HTTP status or network error
- URL does not implement x402 — returns is_x402: false with no accepts array
- Malformed URL input — schema validation error before request is made
- Endpoint returns unexpected non-402 status — captured in http_status field with warnings
- Payment for x402check itself fails — 402 returned for the inspector call itself

## How this service works

Preflight an x402 endpoint before you pay: reachable? valid 402 terms (scheme, network, asset, amount, payTo)? is the payTo clean of OFAC sanctions? how old is its domain (RDAP)? Returns a verdict and a list of problems. $0.01/call.

## Output

Returns a JSON object containing the inspected URL, whether it is an x402 endpoint, the HTTP status code, a list of accepted payment methods (asset, scheme, network, price in USD, payTo wallet address), a verdict (ok/error), reachability status, latency in milliseconds, and any warnings about the configuration.

## 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",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "is_x402": {
       "type": "boolean"
      },
      "verdict": {
       "type": "string"
      },
      "problems": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://seller.example/api",
  "valid": true,
  "accepts": [
   {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x3CfD4B1AfE41ad99b11881d77e2B0d9adc212f13",
    "scheme": "exact",
    "network": "base",
    "resource": "https://seller.example/api",
    "maxAmountRequired": "10000"
   }
  ],
  "is_x402": true,
  "verdict": "OK_TO_PAY",
  "problems": [],
  "reachable": true,
  "http_status": 402,
  "endpoint_domain": {
   "found": true,
   "domain": "seller.example",
   "age_days": 412
  },
  "payTo_sanctions": {
   "match": false,
   "checked": 19957
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402check-x402-endpoint-inspector-f77050ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
