API Reference

The Dictionary API provides programmatic access to comprehensive lexical data, including definitions, pronunciations, etymologies, translations, and synonyms across 100+ languages. All endpoints are available over HTTPS and return JSON responses.

Base URL
https://api.dictionary.com/v1
ℹ️
All requests must include a valid API key in the Authorization header. Responses are returned in UTF-8 encoded JSON.

Authentication

Dictionary API uses Bearer token authentication. Include your API key in the request header as shown below:

Request Header
Authorization: Bearer YOUR_API_KEY

Generate your API key from the Developer Dashboard. Keep your keys secure and never expose them in client-side code.

Rate Limits

API requests are rate-limited based on your subscription tier. Limits are applied per API key per minute.

Plan Requests/Minute Burst Limit
Free 60 10
Pro 1,000 50
Enterprise Custom Custom

GET /words/{word}

Retrieves comprehensive lexical data for a specific word, including definitions, phonetics, parts of speech, and usage examples.

Parameters

Name Type Required Description
word string Required The target word to look up
include string Optional Comma-separated fields: phonetics,examples,etymology

Example Request

curl
curl -X GET "https://api.dictionary.com/v1/words/ephemeral" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Example Response

200 OK - JSON
{ "word":  "ephemeral",
 "phonetic":  "/əˈfem.ər.əl/",
 "meanings": [
  {
     "partOfSpeech":  "adjective",
     "definitions": [
      {
         "definition":  "Lasting for a very short time.",
         "example":  "The ephemeral nature of cherry blossoms."
      }
    ]
  }
],
 "source":  "Dictionary API v1"}

POST /translate

Translates a word or phrase into the target language with context-aware results.

Request Body

application/json
{ "text":  "hello world",
 "source_lang":  "en",
 "target_lang":  "es",
 "formality":  "standard"}

Example Response

200 OK - JSON
{ "translation":  "hola mundo",
 "source_text":  "hello world",
 "detected_lang":  "en",
 "alternatives": [ "buenos días mundo"]}

GET /synonyms/{word}

Returns semantic synonyms, antonyms, and related terms with relevance scores.

Name Type Required Description
word string Required Target word
type enum Optional synonyms, antonyms, or all

Error Codes

Dictionary API uses standard HTTP status codes and returns detailed error objects.

Code Meaning Description
400 Bad Request Missing or invalid parameters
401 Unauthorized Invalid or missing API key
404 Not Found Word not found in dictionary
429 Too Many Requests Rate limit exceeded. Retry after X-RateLimit-Reset
500 Server Error Internal processing error

Error Response Format

401 Unauthorized
{ "error": {
   "code":  "unauthorized",
   "message":  "Invalid API key provided.",
   "status":  401
}}