402 checker
Paste a paid API endpoint and see what it asks for: the price, the networks, the protocol and the version. Works with x402, MPP and L402. It never pays.
For buyers
See the price and the networks an endpoint accepts before you fund a wallet or let an agent call it. Check the address being paid too.
How to pay an x402 API →For sellers
Confirm your endpoint sends what clients expect: the right version, a readable header, real networks instead of test ones, and the price you meant.
How to accept x402 payments →Questions about the checker
What does the 402 checker do?+
It sends one ordinary request to the address you give it, with no payment, and reads the reply. If the endpoint answers 402 Payment Required, the checker decodes the payment details and lists every option: the protocol, the network, the price and the address that would be paid.
Does it pay anything?+
No. The checker has no wallet and cannot pay. It only reads the price that the endpoint quotes to any caller who has not paid yet.
Which protocols does it understand?+
x402 version 2 (the PAYMENT-REQUIRED header), x402 version 1 (offers in the response body), MPP (the WWW-Authenticate: Payment header) and L402 (the WWW-Authenticate: L402 header with a Lightning invoice). If a reply carries more than one, it lists them all.
Why does it show a raw number instead of a dollar price?+
Prices in a 402 reply are whole numbers in the token's smallest unit. The checker converts them to dollars only when it recognizes the token as USDC, or when the endpoint states the number of decimals itself. For any other token it shows the number exactly as quoted, because guessing the decimals would risk showing a price that is wrong by a factor of a million.
My endpoint is POST only. Can I check it?+
Yes. Choose POST next to the address. The checker sends an empty JSON object as the body. Most paid endpoints answer 402 before they look at the input, so that is enough to see the price.
It says my endpoint did not ask for payment. Why?+
The usual reasons are that the route is free for that method, the address redirects somewhere else (the checker does not follow redirects), or a cache or proxy in front of your server answered instead of your payment middleware.
What do you keep?+
Ask402 does not store the addresses you check or the replies. The request is made from our server, so the endpoint sees our server's address, not yours, and a user agent that names this checker.
New to all this? Start with what x402 is or what each field in a 402 reply means.