# Lucky Numbers Generator (x402 Pay-Per-Call)

> Lucky Numbers Generator (x402 Pay-Per-Call) is a paid API for AI agents from v0-x402-payments-demo.vercel.app, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Returns six lucky numbers with a short interpretation, seeded by Base blockchain block timing, requiring a micropayment via x402 protocol.

## Facts

- Endpoint: GET https://v0-x402-payments-demo.vercel.app/api/lucky-numbers
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/v0-x402-payments-demo-vercel-app-54ae93a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SNTKvrqNIeMM71b5qwGIJ

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 v0-x402-payments-demo-vercel-app-54ae93a8
```

Example prompt: Give me six lucky numbers with an interpretation — use the blockchain-seeded one where timing adds a little flavor to the result.

## When to prefer this

Use this endpoint when a user wants a fun, entertainment-focused lucky number generator with a unique on-chain randomness twist. Ideal for novelty, gaming, or lottery-adjacent use cases where blockchain-seeded randomness adds authenticity. Prefer over generic random number generators when the user wants an interpretation alongside the numbers.

## Known failure modes

- Missing X-PAYMENT header returns 402 with payment instructions and accepted asset details
- Invalid or insufficient payment results in payment rejection
- Network issues with Base blockchain may affect seed timing
- Malformed payment header returns an error string in the response body

## How this service works

Lucky numbers — Six lucky numbers with a short interpretation. Seeded by Base block timing for flavor.

## Output

Returns six lucky numbers along with a short interpretation of their meaning, with randomness seeded by Base blockchain block timing for added on-chain flavor. Requires a $0.01 USDC micropayment via x402 protocol on Base network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [],
 "properties": {}
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_x402",
  "error",
  "accepts",
  "x402Version",
  "_paymentRequired",
  "_wwwAuthenticate"
 ],
 "properties": {
  "_x402": {
   "type": "boolean"
  },
  "error": {
   "type": "string"
  },
  "accepts": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "asset",
     "extra",
     "payTo",
     "scheme",
     "network",
     "mimeType",
     "resource",
     "description",
     "outputSchema",
     "maxAmountRequired",
     "maxTimeoutSeconds"
    ],
    "properties": {
     "asset": {
      "type": "string"
     },
     "extra": {
      "type": "object",
      "required": [
       "name",
       "version"
      ],
      "properties": {
       "name": {
        "type": "string"
       },
       "version": {
        "type": "string"
       }
      }
     },
     "payTo": {
      "type": "string"
     },
     "scheme": {
      "type": "string"
     },
     "network": {
      "type": "string"
     },
     "mimeType": {
      "type": "string"
     },
     "resource": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "outputSchema": {
      "type": "object",
      "required": [
       "input"
      ],
      "properties": {
       "input": {
        "type": "object",
        "required": [
         "type",
         "method",
         "discoverable"
        ],
        "properties": {
         "type": {
          "type": "string"
         },
         "method": {
          "type": "string"
         },
         "discoverable": {
          "type": "boolean"
         }
        }
       }
      }
     },
     "maxAmountRequired": {
      "type": "string"
     },
     "maxTimeoutSeconds": {
      "type": "number"
     }
    }
   }
  },
  "x402Version": {
   "type": "number"
  },
  "_paymentRequired": {
   "type": "boolean"
  },
  "_wwwAuthenticate": {
   "type": "null"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/v0-x402-payments-demo-vercel-app-54ae93a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from v0-x402-payments-demo.vercel.app](https://www.zero.xyz/host/v0-x402-payments-demo.vercel.app/llms.txt)
