# Wordle API
> A complete toolkit for Wordle-style word games: score a guess against a hidden answer and get the exact green/yellow/grey feedback pattern (with correct duplicate-letter handling), validate any word against the official dictionary, solve a puzzle from the clues collected so far (returns the remaining consistent answers and a suggested next guess that best narrows them down), pull a random answer word, and fetch the deterministic daily word for any date with its puzzle number. Built on the official answer list (2,315 words) and the full set of ~13,000 accepted guesses. Every endpoint accepts input via the query string or the request body and returns lean JSON. Pure server-side compute (no third-party upstream), so responses are instant and always available. Ideal for word-game backends, solvers and assistants, bots and educational apps.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/wordle-api/..."
```

## Pricing
- **Free** (Free) — 16,000 calls/Mo, 4 req/s
- **Basic** ($5/Mo) — 130,000 calls/Mo, 8 req/s
- **Pro** ($13/Mo) — 1,100,000 calls/Mo, 25 req/s
- **Mega** ($33/Mo) — 6,000,000 calls/Mo, 60 req/s

## Endpoints

### Wordle

#### `GET /v1/daily` — Deterministic daily word

**Parameters:**
- `date` (query, optional, string) — YYYY-MM-DD (default today) Example: `2026-01-01`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/daily?date=2026-01-01"
```

#### `GET /v1/meta` — Dictionary sizes

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/meta"
```

#### `GET /v1/random` — Random answer word

**Parameters:**
- `size` (query, optional, string) — 1..20 (default 1) Example: `1`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/random?size=1"
```

#### `GET /v1/score` — Score a guess against an answer

**Parameters:**
- `guess` (query, required, string) — 5-letter guess Example: `crane`
- `answer` (query, required, string) — 5-letter answer Example: `crate`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/score?guess=crane&answer=crate"
```

#### `GET /v1/solve` — Solve from clues

**Parameters:**
- `guesses` (query, required, string) — word:pattern pairs (g/y/x), comma-separated Example: `crane:xxxgx,slate:ggxxx`
- `limit` (query, optional, string) — Max candidates 1..500 Example: `50`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/solve?guesses=crane%3Axxxgx%2Cslate%3Aggxxx&limit=50"
```

#### `GET /v1/validate` — Validate a word

**Parameters:**
- `word` (query, required, string) — 5-letter word Example: `aalii`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/wordle-api/v1/validate?word=aalii"
```


---
Marketplace page: https://www.oanor.com/api/wordle-api
OpenAPI spec: https://www.oanor.com/api/wordle-api/openapi.json
