Lessons from trying to buy from ~1,900 x402 APIs in one day (1,255 delivered)
retained text
spent today trying to buy from pretty much every x402 endpoint listed at $0.01 or less. about 1,900 attempts, 1,255 actually delivered, $12.19 spent in total on base. stuff that went wrong, and what our buyer checks now before it pays: - paying and getting another 402 back. happened 151 times today. most of those payments never settle (when we audited a batch earlier, about 4 in 5 hadn't), so it's usually a broken checkout rather than theft. but a blind retry can pay twice. now: if a 402 comes back after paying, check whether the first payment settled before doing anything else. - price changes. 20+ endpoints quoted more live than they list, up to 5x ($0.01 listed, $0.05 in the 402). now: compare the price in the 402 to what you expected and refuse if it's higher. - calling it wrong. json-rpc style endpoints want a POST with a body. a bare GET either fails or you pay for an error. now: read the input schema the seller declares and send that. - checking settlement through a public rpc. our own mistake. base's public endpoint rate limits log queries, so dozens of payments looked unproven when they had actually settled. 54 of today's turned out fine once we switched to a keyed rpc. - treating a 402 as proof of anything. it only means the endpoint wants money. it says nothing about what you get after paying. curious what checks other people run before their agents pay for things.
document fetched 2026-10-20 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1x9xgci/lessons_from_trying_to_buy_from_1900_x402_apis_in