# x402 Fun – Fortune Cookie

> x402 Fun – Fortune Cookie is a paid API for AI agents from fun.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns one short upbeat fortune message and six lucky numbers (1–49), optionally seeded for reproducibility.

## Facts

- Endpoint: GET https://fun.kagurazaka.dev/v1/fortune-cookie?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-fun-fortune-cookie-07c4014b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bhwtwjK2rtQv20TNz89hF

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-fun-fortune-cookie-07c4014b
```

Example prompt: Give me a fortune cookie — pull one of those short upbeat fortunes with six lucky numbers, using the seed 'alice-2025-06-10' so I get the same one every time today.

## When to prefer this

Choose this endpoint when you need a lightweight, cheerful fortune cookie experience — either random or deterministically reproducible via a seed — with both a message and lucky numbers in one call. Prefer over generic random-quote endpoints when the lottery-style lucky numbers are also needed, or when repeatability per user/date combination matters.

## Known failure modes

- Invalid or malformed seed string may still succeed but produce unexpected results — seed is freeform text
- Service unavailable or payment failure returns HTTP 402 or 5xx
- No required parameters means most calls succeed; edge cases limited to network or provider outages

## How this service works

A fortune cookie: one short, upbeat fortune (80 written for this service) and six lucky numbers from 1 to 49. Give a seed for a repeatable draw.

## Output

A JSON object containing: an integer ID identifying which of the 80 fortunes was drawn, a short upbeat fortune message string (e.g. 'Rest is part of the work, not a break from it.'), and an array of six distinct lucky numbers in the range 1–49.

## 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",
     "properties": {
      "seed": {
       "type": "string",
       "description": "optional; the same seed always gives the same answer (such as a user id plus today's date)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "id": {},
      "message": {},
      "lucky_numbers": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": 32,
  "message": "Rest is part of the work, not a break from it.",
  "lucky_numbers": [
   6,
   7,
   17,
   30,
   41,
   42
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-fun-fortune-cookie-07c4014b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fun.kagurazaka.dev](https://www.zero.xyz/host/fun.kagurazaka.dev/llms.txt)
