# agent402.tools X402 Quote Probe

> agent402.tools X402 Quote Probe is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Probes any URL and decodes its HTTP 402 payment requirements into structured JSON, returning price, asset, network, and pay-to address so an agent can decide whether and how to pay.

## Facts

- Endpoint: GET https://agent402.tools/api/x402-quote
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-x402-quote-probe-6dd08f9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wcVBzy_u0bzF22F0P62n5

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 agent402-tools-x402-quote-probe-6dd08f9c
```

Example prompt: Before calling it, can you check what the payment requirements are for https://api.example.com/paid — how much it costs, what asset and network it wants, and where to send payment?

## When to prefer this

Use this endpoint when an agent encounters an HTTP 402 response and needs to understand the payment terms before deciding to pay. Ideal for pre-flight checks before committing to a payment, budget validation, or discovering payment asset/network requirements for any x402-compliant resource. Choose this over generic HTTP inspection tools because it specifically decodes x402 payment semantics into structured, agent-actionable JSON.

## Known failure modes

- Target URL does not return a 402 status — no payment requirements to decode
- Target URL is unreachable or times out
- Malformed or non-x402 402 response — cannot parse payment requirements
- Missing required 'url' query parameter — returns validation error
- Target URL uses an unrecognized payment scheme incompatible with x402

## How this service works

Probe any URL and decode its HTTP 402 payment requirements (price, asset, network, pay-to) into clean JSON - what an agent needs to decide whether/how to pay. Read-only; does not pay. ?url=https://api.example.com/paid&method=GET

## Output

A clean JSON object containing the decoded HTTP 402 payment requirements of the probed URL: price amount, payment asset (e.g. USDC), blockchain network, pay-to wallet address, and any other x402 payment fields — everything an agent needs to evaluate whether and how to pay, without actually making a payment.

## 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",
       "description": "URL of the paid resource to probe"
      },
      "method": {
       "type": "string",
       "description": "HTTP method to probe with (default GET)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "status": {
       "type": "integer"
      },
      "accepts": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "asset": {
          "type": "string"
         },
         "payTo": {
          "type": "string"
         },
         "scheme": {
          "type": "string"
         },
         "network": {
          "type": "string"
         },
         "maxAmountRequired": {
          "type": "string"
         }
        }
       }
      },
      "paymentRequired": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://api.example.com/paid",
  "status": 402,
  "accepts": [
   {
    "asset": "USDC",
    "payTo": "0x…",
    "scheme": "exact",
    "network": "base",
    "maxAmountRequired": "1000"
   }
  ],
  "paymentRequired": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-x402-quote-probe-6dd08f9c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
