Skip to content
Open Dictionary

API reference

Three read only routes, all under one host. Responses are JSON in UTF-8.

Base URLhttps://api.opendictionary.dev

Endpoints

Real responses for hello, shortened.

GET/api/v2/entries/en/{word}

Drop-in replacement for api.dictionaryapi.dev. Same fields, same order.

Example
[
  {
    "word": "hello",
    "phonetic": "/hɛˈloʊ/",
    "phonetics": [
      {
        "text": "/həˈləʊ/",
        "audio": "https://upload.wikimedia.org/wikipedia/commons/transcoded/4/48/En-uk-hello.ogg/En-uk-hello.ogg.mp3",
        "sourceUrl": "https://commons.wikimedia.org/wiki/File:En-uk-hello.ogg",
        "license": { "name": "CC BY 3.0 us", "url": "https://creativecommons.org/licenses/by/3.0/us/deed.en" }
      }
    ],
    "meanings": [
      {
        "partOfSpeech": "interjection",
        "definitions": [
          {
            "definition": "A greeting used when answering the telephone.",
            "synonyms": [],
            "antonyms": [],
            "example": "Hello? How may I help you?"
          }
        ],
        "synonyms": ["ciao", "good morning", "good day", "greetings", "hi"],
        "antonyms": ["goodbye"]
      }
    ],
    "license": { "name": "CC BY-SA 4.0", "url": "https://creativecommons.org/licenses/by-sa/4.0" },
    "sourceUrls": ["https://en.wiktionary.org/wiki/hello"]
  }
]

GET/api/v3/entries/en/{word}

Full entry: every etymology, pronunciations by accent, audio with license and author, inflected forms, senses with tags, examples and every kind of relation.

Example
{
  "word": "hello",
  "entries": [
    {
      "word": "hello",
      "etymology": "First attested in 1826. From holla, hollo (attested 1588). ...",
      "pronunciations": [
        { "ipa": "/hɛˈloʊ/", "accents": ["US"], "tags": ["General-American"] }
      ],
      "audio": [
        {
          "file": "En-uk-hello.ogg",
          "mp3Url": "https://upload.wikimedia.org/wikipedia/commons/transcoded/4/48/En-uk-hello.ogg/En-uk-hello.ogg.mp3",
          "oggUrl": "https://upload.wikimedia.org/wikipedia/commons/4/48/En-uk-hello.ogg",
          "accents": ["UK"],
          "tags": ["UK"],
          "sourceUrl": "https://commons.wikimedia.org/wiki/File:En-uk-hello.ogg",
          "license": { "name": "CC BY 3.0 us", "url": "https://creativecommons.org/licenses/by/3.0/us/deed.en" },
          "author": "Association Shtooka, Judith Franck"
        }
      ],
      "rhymes": ["-ɛləʊ", "-əʊ"],
      "homophones": ["hallow (salary-celery merger)"],
      "hyphenation": [],
      "wikipedia": ["Thomas Edison"],
      "partsOfSpeech": [
        {
          "partOfSpeech": "interjection",
          "headword": "hello",
          "forms": [{ "form": "hullo", "tags": ["UK", "alternative"] }],
          "relations": {
            "synonyms": [{ "word": "ciao" }],
            "antonyms": [{ "word": "goodbye" }]
          },
          "senses": [
            {
              "definition": "A greeting (salutation) said when meeting someone or acknowledging someone’s arrival or presence.",
              "parentDefinitions": [],
              "tags": [],
              "topics": [],
              "examples": [{ "text": "Hello, everyone.", "type": "example" }],
              "relations": {}
            }
          ]
        }
      ]
    }
  ],
  "license": { "name": "CC BY-SA 4.0", "url": "https://creativecommons.org/licenses/by-sa/4.0" },
  "sourceUrls": ["https://en.wiktionary.org/wiki/hello"]
}

Arrays are always present. Optional fields are left out when Wiktionary has no value.

{
  word, license, sourceUrls,
  entries: [{
    word, etymologyNumber?, etymology?,
    pronunciations: [{ ipa?, enpr?, accents, tags, note? }],
    audio: [{ file, mp3Url?, oggUrl?, accents, tags, sourceUrl, license?, author? }],
    rhymes, homophones, hyphenation, wikipedia,
    partsOfSpeech: [{
      partOfSpeech, headword?,
      forms: [{ form, tags }],
      relations: { synonyms?, antonyms?, hypernyms?, hyponyms?, meronyms?, holonyms?,
                   troponyms?, coordinateTerms?, related?, derived? },
      senses: [{
        definition, parentDefinitions, tags, topics, qualifier?,
        examples: [{ text, type, reference?, translation? }],
        relations, formOf?, altOf?
      }]
    }]
  }]
}

GET/api/v3/translations/en/{word}

Translations of the word into other languages, with part of speech and sense. hello alone has 884 of them.

Example
{
  "word": "hello",
  "translations": [
    {
      "word": "hello",
      "partOfSpeech": "interjection",
      "language": "Portuguese",
      "languageCode": "pt",
      "translation": "olá",
      "sense": "greeting"
    },
    {
      "word": "hello",
      "partOfSpeech": "interjection",
      "language": "Japanese",
      "languageCode": "ja",
      "translation": "今日は",
      "sense": "greeting",
      "roman": "konnichi wa"
    }
  ],
  "license": { "name": "CC BY-SA 4.0", "url": "https://creativecommons.org/licenses/by-sa/4.0" },
  "sourceUrls": ["https://en.wiktionary.org/wiki/hello"]
}

Word rules

  • Words are case insensitive: Hello, HELLO and hello return the same entry.
  • Use a straight apostrophe, as in don't. Typographic apostrophes are not found.
  • Expressions with more than one word use a regular space, URL encoded: ice%20cream.

Errors

An unknown word returns HTTP 404. The body of a 404 is an HTML page, not JSON, and it may change. Always check the status code before reading the body.

Unlike dictionaryapi.dev, v2 does not return a No Definitions Found JSON body.

const response = await fetch('https://api.opendictionary.dev/api/v2/entries/en/notaword');
if (response.status === 404) {
  console.log('Word not found');
}

Fair use and rate limit

Each IP address can make up to 100 requests every 10 seconds. There is no key and no paid plan.

Please cache responses on your side when you can, and set a descriptive User-Agent if you send a lot of requests.

Need the whole dataset? Download the kaikki.org dump or build it with the repository instead of crawling the API.

CORS and caching

Responses are application/json; charset=utf-8, allow any origin (Access-Control-Allow-Origin: *) and are cached for 24 hours, so you can call the API straight from the browser.

License and credits

Dictionary content comes from Wiktionary, extracted by Wiktextract and published by kaikki.org, under CC BY-SA 4.0. Every response carries the license and the Wiktionary source URLs.

Audio files come from Wikimedia Commons. Each file has its own license and author, returned next to it.

The code of the API and of this website is MIT licensed.