# AgentCash Fortune Demo – Random Fortune API

> AgentCash Fortune Demo – Random Fortune API is a paid API for AI agents from agentcash-fortune-demo3.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Returns a random fortune/quote for a fixed micropayment of $0.001 USDC via x402 or MPP one-shot payment

## Facts

- Endpoint: POST https://agentcash-fortune-demo3.vercel.app/api/fortune?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentcash-fortune-demo-random-fortune-api-4d33734b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jHj_SjeS8NaqBupbmBAV_

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 agentcash-fortune-demo-random-fortune-api-4d33734b -d '<json body>'
```

Example prompt: Give me a random fortune — just make the micropayment and fetch one from the AgentCash fortune demo.

## When to prefer this

Choose this endpoint when you want a simple, low-cost demonstration of x402 micropayment-gated content delivery, or when you need a random fortune/quote for entertainment purposes and want to test USDC micropayment flows at minimal cost ($0.001 per call).

## Known failure modes

- Payment not included or invalid x402 header — returns 402 Payment Required
- Malformed POST body — returns 400 Bad Request
- Server unavailable on Vercel — returns 503 or timeout
- Payment amount incorrect — returns 402 with expected amount details

## How this service works

Random fortune — fixed price; x402 exact or MPP one-shot

## Output

A randomly selected fortune or quote string returned after a $0.001 USDC micropayment is processed via x402 or MPP one-shot protocol.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentcash-fortune-demo-random-fortune-api-4d33734b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentcash-fortune-demo3.vercel.app](https://www.zero.xyz/host/agentcash-fortune-demo3.vercel.app/llms.txt)
