# Rotary Agency Deck of Cards API

> Rotary Agency Deck of Cards API is a paid API for AI agents from rotaryagency.uk, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Returns a virtual deck of cards or card draw results for game and simulation use cases

## Facts

- Endpoint: GET https://rotaryagency.uk/api/free/deckofcards?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rotary-agency-deck-of-cards-api-dff5e211
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wgKIFWfkF_6DqUT2gqla4

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 rotary-agency-deck-of-cards-api-dff5e211
```

Example prompt: Can you draw 5 random playing cards from a shuffled deck for me so I can simulate a poker hand?

## When to prefer this

Choose this endpoint when you need a simple, low-cost ($0.002/call) virtual deck of cards API for games, simulations, or prototyping without building your own randomization logic. Prefer this over implementing card randomization manually or using heavier game APIs when you just need basic card draw functionality.

## Known failure modes

- Invalid deck ID returns an error response
- Requesting more cards than remain in the deck may return partial results or error
- Service may be unavailable if the upstream free-source API is down
- Malformed query parameters may return a 400 bad request
- Payment not accepted results in 402 Payment Required before data is returned

## How this service works

Free-source data APIs (100% margin, no proxy, $0.002/call): ...

## Output

Returns structured JSON containing drawn card data including card values (e.g. Ace, King, 7), suits (Hearts, Spades, Clubs, Diamonds), and remaining deck state or count.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "varies": "endpoint-specific structured JSON"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rotary-agency-deck-of-cards-api-dff5e211/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rotaryagency.uk](https://www.zero.xyz/host/rotaryagency.uk/llms.txt)
