# x402 Paid-Before-You Purchase Counter

> x402 Paid-Before-You Purchase Counter is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-14).

Returns the sequential purchase number of this call among all successful paid requests to this endpoint, functioning as a tiny x402 micropayment experiment.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/paid-before-you
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-paid-before-you-purchase-counter-cb5f7e26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ru5XydQh_6b0aqXFdEXgz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-paid-before-you-purchase-counter-cb5f7e26
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-paid-before-you-purchase-counter-cb5f7e26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
