Dictionary API Reference

RESTful API for accessing comprehensive word definitions, phonetics, synonyms, and multilingual translations. Base URL: https://api.dictionary.com/v2

ℹ️ Authentication Required
All endpoints require a valid API key passed via the Authorization header or X-Dictionary-Key query parameter.

Authentication

Dictionary API uses Bearer token authentication. Include your API key in every request.

Request Header Authorization: Bearer your_api_key_here

Alternatively, pass it as a query parameter for server-to-server requests:

Query Parameter https://api.dictionary.com/v2/search?q=hello&api_key=your_api_key_here

Rate Limits

Plan Requests/Minute Requests/Day Burst
Free301,00010
Pro30050,00050
EnterpriseCustomUnlimitedCustom

Exceeding limits returns 429 Too Many Requests. Include Retry-After header in responses.

Get Word Definition

GET /definitions/:word Retrieve full details for a specific word

Path Parameters

ParameterTypeDescription
word *stringExact word to look up (URL-encoded)

Response (200 OK)

JSON { "word": "dictionary", "phonetics": [ {"text": "/ˈdɪk.ʃən.er.i/", "audio": "https://audio.dict.com/dic_1024.mp3"} ], "origin": "Late Middle English: from medieval Latin dictionarium, from late Latin dictio(n-), from Latin dicere 'say'.", "meanings": [ { "partOfSpeech": "noun", "definitions": [ {"definition": "A book or electronic resource that lists the words of a language and gives their meaning.", "example": "The word isn't in the dictionary."}, {"definition": "A comprehensive reference work containing information on a particular subject."} ], "synonyms": ["thesaurus", "lexicon", "glossary", "encyclopedia"], "antonyms": [] } ], "license": "ODC By 1.0", "source": "dictionary-com" }

Translate Word

POST /translations Translate a word to another language

Request Body

FieldTypeDescription
text *stringWord or phrase to translate
target_lang *stringTarget ISO 639-1 code
source_langstringSource ISO 639-1 code (auto-detected if omitted)

Example Request

JavaScript (fetch) fetch('https://api.dictionary.com/v2/translations', { method: 'POST', headers: { 'Authorization': 'Bearer sk_live_...', 'Content-Type': 'application/json' }, body: JSON.stringify({ text: 'hello', target_lang: 'es', source_lang: 'en' }) }) .then(res => res.json()) .then(console.log);

Response (200 OK)

JSON { "original": "hello", "translation": "hola", "source_language": "en", "target_language": "es", "alternatives": ["buenos días", "saludos", "ola"], "confidence": 0.98 }

Error Codes

The Dictionary API uses standard HTTP status codes. Error responses include a JSON body with details.

400 Bad Request - Invalid parameters or malformed JSON 401 Unauthorized - Missing or invalid API key 403 Forbidden - API key disabled or insufficient permissions 404 Not Found - Word not found in dictionary 429 Too Many Requests - Rate limit exceeded 500 Internal Server Error - Unexpected API failure
Error Response Format { "error": { "code": 401, "message": "Invalid API key provided", "type": "authentication_error", "documentation_url": "https://docs.dictionary.com/errors#401" } }