Pay per Crawl in practice for publishers and SaaS
How content portals, technical blogs, and SaaS platforms can meter AI crawler access per request using HTTP 402.
Why meter automated access
AI crawlers generate high request volume without ad clicks or human subscriptions. Pay per Crawl turns automated reading into direct per request revenue.
With the open x402 standard, servers keep pages free for human browsers while returning HTTP 402 to automated agents requesting premium or structured endpoints.
Recommended server flow
Detect automated clients via User Agent or dedicated routes such as /api/markdown. Without a valid payment header, return HTTP 402 advertising USDC pricing and facilitator details.
if (isAiCrawler(req) && !req.headers.get("payment-signature")) {
return new Response(null, {
status: 402,
headers: { "PAYMENT-REQUIRED": JSON.stringify({ scheme: "exact", asset: "USDC", amount: "5000" }) },
});
}