Solver API
NewPattern Search
Search the English word list by wildcard pattern — ideal for crosswords, Wordle solvers, and Hangman helpers. Use _ or ? for a single unknown letter, * for zero or more letters, and combine with contains (yellow letters) and excludes (gray letters).
GET/api/v1/solver/pattern
Requires API key
Matches dictionary words against a safe linear-time wildcard pattern with bitmask pre-filtering on required and excluded letters.
Query Parameters
| Name | Description |
|---|---|
patternrequired | string1–30 characters using a-z, _ or ? (any single letter), and * (any sequence of letters). Example: c_a_e or un*able. |
contains | stringLetters (a–z) that must appear somewhere in the word (like Wordle yellow tiles). |
excludes | stringLetters (a–z) that must not appear anywhere in the word (like Wordle gray tiles). |
commonOnly | booleanRestrict matches to everyday vocabulary (basic & common bands). Defaults to false. |
sort | stringSort order: frequency, length, score, or alpha. Defaults to frequency. |
limit | integerMaximum matches returned (1–200). Defaults to 50. |
minLength | integerMinimum word length (applies when pattern contains '*'). Defaults to 2. |
maxLength | integerMaximum word length (applies when pattern contains '*'). Defaults to 20. |
Request
bash
curl "https://api.playanagrama.com/api/v1/solver/pattern?pattern=c_a_e&contains=r&excludes=t&commonOnly=true" \
-H "Authorization: Bearer ak_your_key_here"Response Fields
| Name | Description |
|---|---|
pattern | stringNormalized lowercase pattern. |
results | object[]Sorted list of matching words. |
results[].word | stringMatched word. |
results[].length | integerWord length. |
results[].scrabbleScore | integerStandard Scrabble tile value. |
results[].frequencyBand | stringbasic, common, known, or rare. |
count | integerNumber of results returned. |
totalMatches | integerTotal matching words before limit. |
Response 200
JSON
{
"pattern": "c_a_e",
"results": [
{
"word": "crane",
"length": 5,
"scrabbleScore": 7,
"frequencyBand": "common"
},
{
"word": "craze",
"length": 5,
"scrabbleScore": 16,
"frequencyBand": "common"
}
],
"count": 2,
"totalMatches": 2
}Response 400 — Invalid pattern
JSON
{
"error": {
"code": "INVALID_PARAMS",
"message": "pattern is required (1-30 chars) using letters a-z, '_' or '?' for one letter, and '*' for any letters."
}
}Was this page helpful?