# Deck Shuffle API

> Deck Shuffle API is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a randomly shuffled 52-card deck, with optional seed for reproducible results

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/deck-shuffle
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deck-shuffle-api-2a508227
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nqRMVE75RnNqaW4ul9npr

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 deck-shuffle-api-2a508227
```

Example prompt: Shuffle a standard 52-card deck for me and return the full card order — use the seed 'game42' so I get the same shuffle every time.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) server-side shuffled deck without implementing your own random logic — especially useful when you need a reproducible shuffle via the seed parameter for testing, simulations, or deterministic game workflows. Prefer over client-side shuffling when audit trails or reproducibility matter.

## Known failure modes

- Invalid or malformed seed parameter — API may return an error or fall back to random shuffle
- Network timeout on the Cloudflare Worker edge
- Unexpected empty or malformed response if the worker is temporarily unavailable

## How this service works

Return a shuffled 52-card deck for games, simulations and reproducible seeded workflows.

## Output

Returns a complete shuffled array of 52 playing cards (e.g. [{suit, rank}, ...] or equivalent representation), ordered randomly. When a seed is provided, the same seed always produces the same shuffle, enabling reproducible workflows and testing.

## 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": {
      "seed": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deck-shuffle-api-2a508227/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)
