x402 is a payment protocol that lets AI agents pay for an API inside the HTTP request itself, with no sign-ups, API keys, or contracts. It is drawing attention as the payment layer for paid APIs that serve AI agents, but almost no data has been published on how
often x402 APIs are actually called or how much their providers earn.
This book publishes real request and revenue data from 90 x402 APIs the author ran on AWS, together with an analysis of about 40,000 API listings on Bazaar, the x402 API catalog. It shows which APIs are bought, by whom, and how much, and lays out three strategies for offering APIs with x402 based on that data.
It also walks through building an x402 service step by step, and presents a scalable,
low-cost AWS architecture (Lambda, CloudFront, DynamoDB) that keeps the cost of each unpaid 402 response at a fraction of a cent.
The first three chapters are free to read as a sample.