{"uid":"cap_ru5XydQh_6b0aqXFdEXgz","slug":"x402-paid-before-you-purchase-counter-cb5f7e26","name":"x402 Paid-Before-You Purchase Counter","description":"Pay one hundredth of a cent to receive the exact sequential number of this purchase among all successful purchases of this endpoint. A tiny x402 curiosity and payment experiment.","url":"https://x402-zoo.lolagent.workers.dev/api/paid-before-you","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E70TOf9P91J0BtSLMaJbm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the sequential purchase number of this call among all successful paid requests to this endpoint, functioning as a tiny x402 micropayment experiment.","exampleAgentPrompt":"Pay the tiny fee and tell me what sequential purchase number I am on the x402-zoo paid-before-you endpoint — I'm curious how many people have bought before me.","exampleUseCases":[{"title":"Curiosity purchase sequence check","prompt":"I want to see what number I am among everyone who has ever paid this endpoint — go ahead and make the micropayment and tell me my purchase number."},{"title":"Testing x402 micropayment flow","prompt":"Run a quick x402 payment test on the paid-before-you endpoint and tell me what sequential number comes back — I want to confirm the payment protocol is working."},{"title":"Tracking adoption of a paid endpoint","prompt":"Make the micropayment on the paid-before-you counter and report back the purchase number so I can gauge how many agents or users have already tried this experiment."}],"resultDescription":"An integer representing the exact sequential position of this successful purchase among all prior paid calls to this endpoint — e.g. '42' means 41 purchases occurred before this one.","failureModes":["Payment failure or insufficient funds returns a 402 error without incrementing the counter","Network or worker timeout may result in a failed payment with no counter response","Concurrent purchases may cause slight sequencing races at high volume","Invalid or missing x402 payment header results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you want to experiment with the x402 micropayment protocol in a low-stakes, curiosity-driven way, verify that an x402 payment flow works end-to-end, or simply want to see how many agents or users have interacted with a live paid API endpoint. It is not a production data service — it is a novelty experiment and protocol demo.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:47.221Z","isFirstParty":false}