[{"data":1,"prerenderedAt":218},["ShallowReactive",2],{"blog:\u002Fblog\u002Fx402-analytics":3},{"id":4,"title":5,"body":6,"date":204,"description":205,"extension":206,"keywords":207,"meta":208,"navigation":209,"path":210,"readingMinutes":211,"seo":212,"stem":213,"tags":214,"__hash__":217},"blog\u002Fblog\u002Fx402-analytics.md","x402 analytics: what to measure when your AI agents pay per request",{"type":7,"value":8,"toc":196},"minimark",[9,31,36,44,72,87,91,94,137,141,148,156,160,176,184],[10,11,12,13,18,19,25,26,30],"p",{},"Once your agents start paying with ",[14,15,17],"a",{"href":16},"\u002Fblog\u002Fwhat-is-x402","x402",", the\n",[14,20,24],{"href":21,"rel":22},"https:\u002F\u002Fblog.cloudflare.com\u002Fx402\u002F",[23],"nofollow","open standard for HTTP-native stablecoin payments"," backed by\nCoinbase and a growing set of infrastructure providers, spend stops being a monthly invoice you\ncan reason about and becomes a stream of hundreds or thousands of micro-payments —\na tenth of a cent here, two cents there, across dozens of domains. Individually they're\ninvisible. In aggregate they're your bill. ",[27,28,29],"strong",{},"x402 analytics"," is the layer that turns that\nstream into something you can actually see, question, and control.",[32,33,35],"h2",{"id":34},"a-wallet-explorer-is-not-analytics","A wallet explorer is not analytics",[10,37,38,39,43],{},"The instinct is to point a block explorer at your agent's wallet. It will dutifully list every\ntransfer — but a flat ledger of ",[40,41,42],"code",{},"USDC out"," rows answers almost none of the questions you have:",[45,46,47,56,62,65],"ul",{},[48,49,50,51,55],"li",{},"Which ",[52,53,54],"em",{},"agent"," spent this? (A wallet address doesn't map to a task or a service.)",[48,57,50,58,61],{},[52,59,60],{},"domain"," or API did the money go to?",[48,63,64],{},"How many paywalls did the agent hit, and how many did it actually pay?",[48,66,67,68,71],{},"Which payments ",[27,69,70],{},"succeeded"," — as in, the resource was served — and which quietly failed?",[10,73,74,75,78,79,82,83,86],{},"A ledger tells you money moved. Analytics tells you ",[52,76,77],{},"why",", ",[52,80,81],{},"where",", and ",[52,84,85],{},"whether it worked",".\nThat gap is the whole point of an x402 analytics layer.",[32,88,90],{"id":89},"the-metrics-that-matter","The metrics that matter",[10,92,93],{},"When you're running agents that pay per request, a useful x402 dashboard tracks a small set of\ndimensions well:",[95,96,97,103,109,115,121,131],"ol",{},[48,98,99,102],{},[27,100,101],{},"Spend over time"," — total USDC out, by hour and day, so a runaway loop shows up as a spike\nbefore it shows up on your card.",[48,104,105,108],{},[27,106,107],{},"Spend by agent"," — attribute every payment to the API key (and therefore the agent or task)\nthat made it. This is what turns \"we spent $340\" into \"the crawler spent $310 of it.\"",[48,110,111,114],{},[27,112,113],{},"Spend by domain"," — where the money is going. One domain quietly eating 80% of spend is a\npricing decision waiting to be made.",[48,116,117,120],{},[27,118,119],{},"Paywalls hit vs. payments made"," — the ratio of 402 challenges encountered to payments\ncompleted. A wallet can't give you this; it never sees the challenges.",[48,122,123,126,127,130],{},[27,124,125],{},"Payment reliability"," — the share of payments that succeeded versus the ones that ",[52,128,129],{},"paid but\nstill failed",". More on that below — it's the metric everyone forgets.",[48,132,133,136],{},[27,134,135],{},"Cost per successful request"," — spend divided by resources actually served. If failed\npayments are climbing, this number tells you you're paying for nothing.",[32,138,140],{"id":139},"from-analytics-to-insight-the-paid-but-failed-problem","From analytics to insight: the \"paid but failed\" problem",[10,142,143,144,147],{},"Raw spend numbers are table stakes. The insight lives in the failures. In x402, an agent can pay\non-chain and ",[52,145,146],{},"still"," not get the resource — the origin returns 402 again because the amount was\nwrong or a facilitator didn't confirm in time, or it returns a 5xx after the money already moved.\nThe seller just logs \"payment failed\"; from your side, the money is gone and the request didn't\ncomplete.",[10,149,150,151,155],{},"Good x402 analytics surfaces exactly these cases — see\n",[14,152,154],{"href":153},"\u002Fblog\u002Fdebugging-x402-payments","debugging x402 payments"," for the full anatomy of a paid-but-failed\nattempt. Layer alerts on top (payment-failure rate crossing a threshold, spend spiking N× over the\nprevious window) and analytics stops being a rear-view mirror and starts catching problems while\nthey're still cheap.",[32,157,159],{"id":158},"x402-analytics-with-402report","x402 analytics with 402.report",[10,161,162,166,167,170,171,175],{},[14,163,165],{"href":164},"\u002F","402.report"," is built to be exactly this layer for the ",[27,168,169],{},"buy side"," — the team whose agents\nare doing the paying. Point your agent's HTTP client at the proxy with one API key, and every\nx402 challenge it hits and payment it makes is attributed to an agent, a domain, and a moment in\ntime, then rendered as live spend insights and payment forensics. It's\n",[14,172,174],{"href":173},"\u002Fblog\u002Fagent-spend-observability","non-custodial",": it observes the payments your agents make from\ntheir own wallets — it never holds, signs, or settles funds.",[10,177,178,179,183],{},"Because the data also ships as a ",[14,180,182],{"href":181},"\u002Fblog\u002Fx402-mcp-payments","Model Context Protocol server",", your\nagent can query its own analytics mid-task — \"how much have I spent this month?\", \"which of my\npayments failed?\" — without a dashboard or a human in the loop.",[10,185,186,187,190,191,195],{},"If your agents are paying with x402, you want this visibility ",[52,188,189],{},"before"," the bill surprises you.\n",[14,192,194],{"href":193},"\u002F#waitlist","Join the 402.report waitlist"," for early access.",{"title":197,"searchDepth":198,"depth":198,"links":199},"",2,[200,201,202,203],{"id":34,"depth":198,"text":35},{"id":89,"depth":198,"text":90},{"id":139,"depth":198,"text":140},{"id":158,"depth":198,"text":159},"2026-07-08","x402 turns every API call into a micro-payment. x402 analytics is the layer that makes that spend legible — the metrics that matter, why a wallet explorer isn't enough, and how to turn raw payments into spend insights.","md","x402 analytics, 402 analytics, agent spend analytics, x402 dashboard, agent payment analytics, x402 insights, ai agent spend tracking, x402 monitoring",{},true,"\u002Fblog\u002Fx402-analytics",6,{"title":5,"description":205},"blog\u002Fx402-analytics",[17,215,216],"analytics","observability","GgrCcCcc89GH2UHHmJK6Axernd-yo61aPT_gaQ1Rqxo",1784841653182]