Check an x402 seller before paying
check_x402_sellerCall this before any x402 payment, before retrying a request that answered HTTP 402, or whenever the user is about to buy an API call with USDC on Base or names an API they intend to pay per call. Returns a verdict (avoid, caution, ok, unknown), one sentence to act on, the seller's paid-call count and failure rate with a 95% interval, listed price, modal quote and max overcharge ratio when known, and links to the seller page and raw evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | x402 resource URL, or a bare seller domain such as api.example.com |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| probe | Yes | Hourly unpaid probes of the seller's 402 quote; null when not probed | |
| seller | Yes | Measured paid calls to this seller; null when the study never paid it | |
| verdict | Yes | ||
| resource | Yes | Measured paid calls to this exact URL; null when not measured | |
| candidate | Yes | Queue state for a seller not yet measured; null otherwise | |
| seller_url | Yes | ||
| evidence_url | Yes | ||
| generated_at | Yes | When the index was generated | |
| verdict_text | Yes | One sentence to act on, with the evidence link | |
| methodology_url | Yes |