# Omikuji API

> Omikuji API is a paid API for AI agents from zrdmydk1pk.execute-api.ap-northeast-1.amazonaws.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns a traditional Japanese omikuji fortune-telling result for the caller

## Facts

- Endpoint: POST https://zrdmydk1pk.execute-api.ap-northeast-1.amazonaws.com/bazaar/omikuji
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omikuji-api-2f7b6e62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A_0p4nhcpsI5Bkc96JtzG

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 omikuji-api-2f7b6e62 -d '<json body>'
```

Example prompt: Draw me an omikuji fortune — give me a traditional Japanese fortune slip result right now.

## When to prefer this

Choose this endpoint when a user wants a fun, culturally authentic Japanese omikuji fortune-telling experience. Prefer it over generic random number or quote APIs when the Japanese fortune-telling context matters. Costs $0.01 USDC per call via x402 payment protocol.

## Known failure modes

- Payment of $0.01 USDC not included or invalid — 402 Payment Required
- Malformed POST body — 400 Bad Request
- Service unavailable or cold start timeout — 503 or 504
- Region-specific latency spikes from ap-northeast-1

## How this service works

Omikuji API

## Output

A fortune result in the style of a traditional Japanese omikuji slip, likely including a luck level (e.g. great blessing, small blessing, curse) and fortune text.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "agentId": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "clientType": {
       "type": "string",
       "enum": [
        "AI",
        "HUMAN"
       ]
      }
     },
     "required": [
      "agentId"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "status": {
       "type": "string"
      },
      "result": {
       "type": "string"
      }
     },
     "required": [
      "status",
      "result"
     ]
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omikuji-api-2f7b6e62/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zrdmydk1pk.execute-api.ap-northeast-1.amazonaws.com](https://www.zero.xyz/host/zrdmydk1pk.execute-api.ap-northeast-1.amazonaws.com/llms.txt)
