Dictionary API Documentation

Welcome to the Dictionary API. This RESTful API provides programmatic access to our comprehensive linguistic database, including definitions, etymology, synonyms, antonyms, pronunciation audio, and real-time translations across 100+ languages.

💡
All endpoints are served over HTTPS. Base URL: https://api.dictionary.com/v1

Authentication

The Dictionary API uses API keys to authenticate requests. You can view and manage your API keys in the developer dashboard. All API requests must be made over HTTPS.

Authenticate your requests by including the Authorization header with a Bearer token:

HTTP Header
Authorization: Bearer <YOUR_API_KEY>
⚠️
Never expose your API keys in client-side code or public repositories. Use environment variables or server-side proxies.

GET /words/{id}

Retrieve comprehensive data for a specific word, including definitions, phonetics, part of speech, and example sentences.

ParameterTypeDescription
idRequiredstringUnique word identifier or exact term
langstringLanguage code (ISO 639-1). Default: en
cURL
curl -X GET "https://api.dictionary.com/v1/words/ephemeral?lang=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
JSON Response (200)
{
  "word": "ephemeral",
  "phonetic": "/əˈfem.ər.əl/",
  "pos": "adjective",
  "definitions": [
    {
      "meaning": "Lasting for a very short time",
      "example": "The ephemeral beauty of cherry blossoms",
      "domain": "general"
    }
  ],
  "audio": "https://cdn.dictionary.com/audio/ephemeral.mp3",
  "etymology": "Latin ephemera, from Greek ephēmeros"
}

GET /words/search

Search for words matching a query term. Supports fuzzy matching and autocomplete suggestions.

ParameterTypeDescription
qRequiredstringSearch query term
limitintegerMax results (1-50). Default: 10
pageintegerPagination page number

GET /synonyms/{word}

Retrieve a ranked list of synonyms and antonyms for a given word, grouped by semantic relevance.

JSON Response (200)
{
  "word": "quick",
  "synonyms": ["fast", "rapid", "swift", "hasty", "brisk"],
  "antonyms": ["slow", "sluggish", "leisurely"],
  "context_score": 0.94
}

POST /translate

Translate text or phrases between supported languages with context-aware neural models.

Request Body
{
  "text": "The quick brown fox jumps over the lazy dog",
  "source_lang": "en",
  "target_lang": "es",
  "preserve_formatting": true
}

Error Codes

The Dictionary API uses standard HTTP status codes to indicate success or failure. Errors are returned as JSON with a consistent structure.

200
Request succeeded
400
Invalid parameters
401
Invalid or missing API key
403
Account suspended
429
Rate limit exceeded
500
Server error
Error Response Format
{
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "You have exceeded 1000 requests per minute",
    "retry_after": 45,
    "documentation_url": "https://docs.dictionary.com/errors"
  }
}

Rate Limits

API requests are limited based on your plan tier. When you exceed the limit, you will receive a 429 Too Many Requests response.

PlanRequests/MinDaily Quota
Free6010,000
Pro1,0001,000,000
EnterpriseCustomUnlimited