Thesaurus API
NewRhymes
Find perfect and near (slant) English rhymes ranked by frequency tier, with optional filters for syllable count and word length. Built for poetry tools, songwriting apps, and phonics games.
GET/api/v1/thesaurus/:word/rhymes
Requires API key
Returns frequency-ranked perfect rhymes, near (slant) rhymes, or both in a single response. Powered by an in-memory phonetic rhyme index for single-digit millisecond latency.
Path Parameters
| Name | Description |
|---|---|
:wordrequired | stringEnglish word (1–40 letters a–z). |
Query Parameters
| Name | Description |
|---|---|
type | stringMatch mode: perfect, near, or all (returns separate perfect and near arrays). Defaults to perfect. |
limit | integerMaximum rhymes returned per group (1–100). Defaults to 30. |
syllables | integerOnly return rhymes with this exact syllable count. |
minLength | integerMinimum word length. |
maxLength | integerMaximum word length. |
Request
bash
curl "https://api.playanagrama.com/api/v1/thesaurus/light/rhymes?type=perfect&limit=15" \
-H "Authorization: Bearer ak_your_key_here"Response Fields
| Name | Description |
|---|---|
word | stringNormalized lowercase input word. |
type | stringRequested rhyme type (included when type is perfect or near). |
syllables | integerEstimated syllable count of the input word. |
rhymeKey | stringNormalized phonetic tail used for matching. |
rhymes | object[]Matched rhymes when type=perfect or type=near. When type=all, replaced by separate perfect[] and near[] arrays. |
rhymes[].word | stringRhyming word. |
rhymes[].syllables | integerSyllable count of the rhyming word. |
rhymes[].frequencyBand | stringbasic, common, known, or rare. |
rhymes[].score | integer100 for perfect rhymes, 65 for near rhymes. |
count | integerTotal rhymes returned. |
Response 200 (type=perfect)
JSON
{
"word": "light",
"type": "perfect",
"syllables": 1,
"rhymeKey": "yt",
"rhymes": [
{
"word": "night",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
},
{
"word": "right",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
},
{
"word": "sight",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
},
{
"word": "bright",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
},
{
"word": "flight",
"syllables": 1,
"frequencyBand": "common",
"score": 100
}
],
"count": 5
}Response 200 (type=all)
JSON
{
"word": "light",
"syllables": 1,
"rhymeKey": "yt",
"perfect": [
{
"word": "night",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
},
{
"word": "right",
"syllables": 1,
"frequencyBand": "basic",
"score": 100
}
],
"near": [
{
"word": "like",
"syllables": 1,
"frequencyBand": "basic",
"score": 65
},
{
"word": "type",
"syllables": 1,
"frequencyBand": "basic",
"score": 65
}
],
"count": 4
}Was this page helpful?