Dictionary API Documentation
Build powerful language features into your application. Access 15M+ words, instant definitions, AI-powered insights, and 100+ language support through our RESTful API.
API Keys
Access the API using Bearer token authentication. Generate keys in your dashboard.
Base URL
https://api.dictionary.com/v2
Rate Limits
Free: 50 req/min | Pro: 1000 req/min | Enterprise: Custom
Authentication
All API requests require authentication using API keys. Include your API key in the Authorization header as a Bearer token.
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Rate Limits
Rate limits are applied per API key and reset every 60 seconds. The current usage is returned in response headers.
X-RateLimit-Limit: 50 X-RateLimit-Remaining: 42 X-RateLimit-Reset: 1620000000
Endpoints
Core endpoints for dictionary operations.
Search the dictionary for word definitions, phonetics, and examples. Supports partial matching and language filtering.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Required | Word or phrase to search |
| language | string | Optional | ISO 639-1 language code (default: en) |
| include_synonyms | boolean | Optional | Include synonyms in response |
curl -X GET "https://api.dictionary.com/v2/words?query=ephemeral&language=en" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
import requests headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" } response = requests.get( "https://api.dictionary.com/v2/words", params={"query": "ephemeral", "language": "en"}, headers=headers ) print(response.json())
const response = await fetch( 'https://api.dictionary.com/v2/words?query=ephemeral&language=en', { headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } } ); const data = await response.json();
{
"word": "ephemeral",
"phonetic": "/əˈfem.ər.əl/",
"part_of_speech": "adjective",
"definitions": [
{
"definition": "Lasting for a very short time; transitory.",
"example": "The ephemeral beauty of cherry blossoms."
}
],
"synonyms": ["fleeting", "transient", "momentary"],
"etymology": "Greek ephēmeros 'lasting only a day'"
}
Retrieve synonyms and antonyms for a given word with relevance scores and usage context.
curl -X GET "https://api.dictionary.com/v2/synonyms?word=ephemeral&limit=5" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"word": "ephemeral",
"synonyms": [
{
"word": "fleeting",
"relevance": 0.95,
"part_of_speech": "adjective"
},
{
"word": "transient",
"relevance": 0.92,
"part_of_speech": "adjective"
}
]
}
Error Handling
The API uses standard HTTP status codes and returns detailed error messages in JSON format.
| Status Code | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 400 | Bad Request | Invalid parameters or malformed request |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | API key revoked or insufficient permissions |
| 404 | Not Found | Word not found in dictionary |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Server Error | Internal server error |
{
"error": {
"code": "WORD_NOT_FOUND",
"message": "The word 'xyz' was not found in our dictionary.",
"status": 404,
"suggestions": ["xylophone", "zyzzyva"]
}
}