Developers and AI agents

Two ways to use Chunlo from code or an AI assistant: build a wheel link that opens ready to spin, or call the API to pick a winner on our server and get a public verification link. No sign-up, no API key.

1. Wheel links

Any link like this opens a ready wheel. Nothing is stored; the wheel lives in the link.

https://chunlo.co/?e=Pizza,Sushi,Tacos&t=Dinner&theme=monsoon

Embed a wheel on any site: <iframe src="https://chunlo.co/embed?e=Yes,No" width="100%" height="560"></iframe>

2. Verified spin API

The server picks the winner with cryptographic randomness, stores a read-only record and returns a link anyone can open to check it.

curl -X POST https://chunlo.co/api/v1/spin \
  -H "content-type: application/json" \
  -d '{"entries": ["Pizza", "Sushi", "Tacos"], "title": "Dinner"}'

Or as a simple GET: https://chunlo.co/api/v1/spin?e=Pizza,Sushi,Tacos&t=Dinner

Response (201):

{
  "ok": true,
  "id": "k7Qm2xPa9c",
  "title": "Dinner",
  "winner": "Sushi",
  "index": 1,
  "entries": ["Pizza", "Sushi", "Tacos"],
  "count": 3,
  "createdAt": "2026-11-19T10:15:30.000Z",
  "verifyUrl": "https://chunlo.co/v/k7Qm2xPa9c",
  "apiUrl": "https://chunlo.co/api/v1/spins/k7Qm2xPa9c"
}

Optional custom odds: add "weights": [1, 1, 3] (one whole number 1–100 per entry), or &w=1-1-3 on the GET form. The record shows each entry's chance.

Look up any record with GET /api/v1/spins/{id}.

3. Short links

curl -X POST https://chunlo.co/api/v1/wheels \
  -H "content-type: application/json" \
  -d '{"entries": ["Aarav", "Sofia", "Kenji"], "title": "Stand-up order", "themeId": "studio", "keep": "active"}'

Returns {"ok": true, "id": "aB3dE5fG", "url": "https://chunlo.co/w/aB3dE5fG", "keep": "active", "expiresAt": "…"}.

Short links are read-only. keep sets the lifetime: 7d (deleted 7 days after creation), active (default; deleted after 30 days without being opened, and each GET /api/v1/wheels/{id} extends it) or 1y (deleted one year after creation). Expired links return 404. Add ?stage=1 to open a short link in Stage Mode.

Limits and errors

Specification

The full OpenAPI 3.1 description is at /api/openapi.json, and a site summary for AI tools is at/llms.txt.

Questions

Do I need an API key?

No. The API is open and free to use within the rate limits. Please show a link to the verifyUrl when you display a result.

How do AI assistants use Chunlo?

An assistant can reply with a wheel link such as /?e=Pizza,Sushi,Tacos so the person spins themselves, or call POST /api/v1/spin to pick a winner and share the verification link.

Can a spin record be changed or deleted?

No. Records are read-only once created, which is what makes the verification link trustworthy.