Check an x402 seller before paying
One free call returns the seller's last measured 402, its payee history and a signed receipt; here is how to read it.
Before you start
You need the seller's hostname or the URL your agent will call. Nothing else: no key, no account. The call below is free and is the same one Guard makes inside your x402 client.
curl "https://botsrated.com/v1/preflight?url=<host>"
1. Is the seller covered?
If the answer says host_not_covered, we have no measurements for that host yet. This says nothing about the seller; it means you are on your own for the next steps, and your agent's policy should say whether that is acceptable (Guard's not_covered reason code).
2. Read the last 402
latest_probe is the seller's most recent payment request as we received it: HTTP status, whether it was a valid 402, latency, the quoted amount and the payTo address. Compare the amount and address with the 402 your own client just received. Same address and same or lower amount means the seller is serving you what it serves everyone.
3. Check freshness
freshness.stale is true when our last check is older than 24 hours. A stale record still tells you what was true then; it does not tell you what is true now. For a first payment to a new seller, prefer a fresh record or run your own request first.
4. Look at the change history
Open /s/<host> and scroll to "What changed". A long stretch with no payTo or price changes is one kind of fact; a payee change two days ago is another. Each row links the signed receipt that showed the new state, so you can see the raw observation rather than a summary.
5. Check the receipt
Every preflight answer carries a receipt_url. Open it: the page checks its ed25519 signature in your browser against our published keys (/proof lists them), or pass the URL to GET /v1/verify?url=. A matching signature means the record is ours and unaltered. It does not grade the seller.
6. Decide, then automate the decision
Write down what you would do with each answer: pay, pay with a cap, pause for a human, or skip. Then put that into Guard as a policy so the check runs before every signature instead of only on the first day. The default preset warns on an unobserved payTo and lets the payment through; the strict preset blocks it.
How BotsRated measures this
- Unpaid probes: we request the seller's route without paying and record the 402 exactly as returned (status, valid 402, amount, asset, network, payTo, latency). A separate, much smaller set of paid test purchases exists for a few hosts and is labelled as such.
- payTo and quoted amount are recorded on every check, which is what makes "observed before" a measurable statement. Guard's reason codes
payto_not_observed,price_above_observed,data_staleandnot_coveredare each the outcome of one comparison against those stored checks. - Current unpaid-check and test-purchase receipts are signed on their own with Ed25519. A few early receipts are covered by the signed dataset snapshot instead; the receipt page says so when that applies. Keys are at /.well-known/botsrated-key; /proof explains them, and
GET /v1/verify?url=checks a receipt for free. - The free MCP tool
preflightonhttps://botsrated.com/mcpreturns the same answer, so an agent can run this routine itself before calling a paid tool.
Full field reference and the stack-by-stack install for Guard: /docs.
Every measured fact on this site links to the signed record behind it. If a record about your own service looks wrong, use /disputes.