API

Read-only JSON API for the dictionary. All responses are UTF-8 JSON. Base URL: https://dictionary.axomiyagpt.com. Calls from any origin are allowed (CORS), and no key is needed.

Errors

GET /api/search

Search headwords, romanisations and English glosses.

ParameterMeaning
qSearch text. Assamese text matches the start of a headword. Latin text matches the start of a romanisation or the start of a word in an English gloss.
prefixAssamese first letter or letters, e.g. ক. Matches the start of a headword.
posPart of speech: noun, adjective or verb.
limitResults per page, 1 to 50. Default 20.
offsetNumber of results to skip. Default 0.

Example

curl "https://dictionary.axomiyagpt.com/api/search?q=king&limit=2"

Response

{
  "query": { "q": "king", "pos": null, "prefix": "", "limit": 2, "offset": 0 },
  "results": [
    {
      "id": 288,
      "term": "অঙ্গদ",
      "lang": "as",
      "roman": null,
      "source": "xobdo",
      "pos": "Noun",
      "meaningAs": "...",
      "meaningEn": "the son of Bali, the monkey king"
    }
  ],
  "hasMore": true,
  "nextOffset": 2
}

GET /api/suggest

Autocomplete: headwords that start with the typed text. Works from one character.

ParameterMeaning
qText typed so far. Assamese text matches headwords; Latin text matches romanisations (e.g. k).
limitSuggestions to return, 1 to 20. Default 10.

Example

curl "https://dictionary.axomiyagpt.com/api/suggest?q=ক&limit=5"

Response

{
  "query": { "q": "ক", "limit": 5 },
  "suggestions": [
    { "id": 1234, "term": "ক", "lang": "as", "roman": "ka" }
  ]
}

GET /api/words/{id}

One word with all of its senses and synonyms.

ParameterMeaning
idWord id from a search result. Must be a positive integer.

Example

curl "https://dictionary.axomiyagpt.com/api/words/35245"

Response

{
  "id": 35245,
  "term": "ক্ষাৰ",
  "lang": "as",
  "roman": "kṣāra",
  "source": "candrakanta",
  "senses": [
    {
      "id": 42953,
      "meaningEn": "",
      "meaningAs": "\"খাৰ\" চোবাঁ।",
      "posEn": "Noun",
      "posAs": "বি.",
      "synonyms": []
    }
  ]
}

GET /api/stats

Word and sense counts, with source attribution.

Example

curl "https://dictionary.axomiyagpt.com/api/stats"

Response

{
  "words": 116407,
  "senses": 58407,
  "links": 79200,
  "sources": [
    { "source": "xobdo", "words": 81111 },
    { "source": "candrakanta", "words": 35296 }
  ],
  "attribution": { "source": "...", "sourceUrl": "...", "xobdoNotice": "..." },
  "builtAt": "..."
}