# x402 Endpoint Linter & Compliance Checker

> x402 Endpoint Linter & Compliance Checker is a paid API for AI agents from agy-x402-gateway.omega-x402-edge.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Inspects a target HTTPS URL to verify it correctly implements the x402 HTTP payment protocol, returning a compliance score, pass/fail checks, and a list of defects.

## Facts

- Endpoint: GET https://agy-x402-gateway.omega-x402-edge.workers.dev/api/v1/x402-lint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-endpoint-linter-compliance-checker-393304be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yoUNwa0Fo0Ajcg2yGHsiL

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 x402-endpoint-linter-compliance-checker-393304be
```

Example prompt: Can you lint my x402 endpoint at https://aero.lonestaroracle.xyz/pool and tell me whether it's bazaar-ready, what score it gets, and list any defects in its payment header implementation?

## When to prefer this

Use this endpoint when you need to verify that a specific HTTPS endpoint correctly implements the x402 HTTP payment protocol before listing it on a bazaar or integrating it as a payment-gated API. It is the right choice when you want a structured compliance score and defect list rather than simply probing whether a 402 response is returned. Prefer this over generic HTTP probing tools when x402-specific header validation and bazaar-readiness signals are required.

## Known failure modes

- Target URL is not reachable or returns a non-HTTPS scheme — inspection fails with an error
- Target URL does not respond with a 402 status — is_402 check fails, score drops
- Missing or malformed x402 payment headers — defects listed, bazaar_ready returns false
- Network timeout on the target endpoint — linter may return an incomplete result
- Invalid or missing 'url' query parameter — request returns a validation error

## How this service works

24/7 Edge pay-per-call biomedical, multi-chain token/escrow/wallet forensics, clean web extraction, and x402 verification APIs settled via USDC on Base and Solana.

## Output

A JSON object containing: a numeric compliance score (0–100), a checks object with boolean results for individual x402 protocol checks (e.g. is_402, has_v2_header), an array of defect strings describing any non-conformances, a verdict string (e.g. 'buyer_ready'), a bazaar_ready boolean flag, the target URL, HTTP status code observed, header byte size, inspection timestamp, and detected blockchain networks.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "Target HTTPS x402 endpoint URL to inspect"
      }
     }
    },
    "discoverable": {
     "type": "boolean"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "target_url",
      "http_status",
      "score",
      "bazaar_ready",
      "checks",
      "defects"
     ],
     "properties": {
      "score": {
       "type": "number"
      },
      "checks": {
       "type": "object"
      },
      "defects": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "verdict": {
       "type": "string"
      },
      "target_url": {
       "type": "string"
      },
      "http_status": {
       "type": "number"
      },
      "bazaar_ready": {
       "type": "boolean"
      },
      "header_bytes": {
       "type": "number"
      },
      "inspected_at": {
       "type": "string"
      },
      "networks_detected": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 100,
  "checks": {
   "is_402": true,
   "has_v2_header": true
  },
  "defects": [],
  "verdict": "buyer_ready",
  "target_url": "https://aero.lonestaroracle.xyz/pool",
  "http_status": 402,
  "bazaar_ready": true,
  "inspected_at": "2026-11-05T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-endpoint-linter-compliance-checker-393304be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agy-x402-gateway.omega-x402-edge.workers.dev](https://www.zero.xyz/host/agy-x402-gateway.omega-x402-edge.workers.dev/llms.txt)
