API Reference/

Solver API

New

Anagrams

Find all exact anagrams of a word in O(1) time, or pass exact=false to return every shorter valid sub-anagram buildable from the given letters.

GET/api/v1/solver/anagrams/:letters

Requires API key

Returns anagrams (or sub-anagrams) formed from :letters, enriched with Scrabble score and English frequency tier.

Path Parameters

NameDescription
:lettersrequired
string2–20 English letters (a–z).

Query Parameters

NameDescription
exact
booleantrue for exact-length anagrams using every letter; false for all shorter sub-anagrams. Defaults to true.
includeSelf
booleanInclude the input word itself if it is a valid dictionary word. Defaults to false.
commonOnly
booleanRestrict matches to everyday vocabulary (basic & common bands). Defaults to false.
sort
stringSort order: length, score, frequency, or alpha. Defaults to length.
limit
integerMaximum matches returned (1–200). Defaults to 50.
minLength
integerMinimum word length when exact=false (default 2). Defaults to 2.
maxLength
integerMaximum word length when exact=false (defaults to input length).

Request

bash
curl "https://api.playanagrama.com/api/v1/solver/anagrams/listen?exact=true" \
  -H "Authorization: Bearer ak_your_key_here"

Response Fields

NameDescription
letters
stringNormalized lowercase input letters.
exact
booleanWhether exact-length matching was used.
results
object[]Sorted list of matching words.
results[].word
stringMatching anagram word.
results[].length
integerCharacter length.
results[].scrabbleScore
integerStandard English Scrabble tile value.
results[].frequencyBand
stringbasic, common, known, or rare.
count
integerNumber of results returned in this response.
totalMatches
integerTotal matching words before applying the limit cap.

Response 200

JSON
{
  "letters": "listen",
  "exact": true,
  "results": [
    {
      "word": "silent",
      "length": 6,
      "scrabbleScore": 6,
      "frequencyBand": "basic"
    },
    {
      "word": "enlist",
      "length": 6,
      "scrabbleScore": 6,
      "frequencyBand": "common"
    },
    {
      "word": "inlets",
      "length": 6,
      "scrabbleScore": 6,
      "frequencyBand": "known"
    },
    {
      "word": "tinsel",
      "length": 6,
      "scrabbleScore": 6,
      "frequencyBand": "known"
    }
  ],
  "count": 4,
  "totalMatches": 4
}

Response 400 — Invalid letters

JSON
{
  "error": {
    "code": "INVALID_PARAMS",
    "message": "letters must be 2-20 English letters (a-z)."
  }
}
Was this page helpful?
Anagrama API Docs | Developer Reference