Base URL
All API requests use the following base URL:Authentication
All requests require a Bearer token in theAuthorization header:
Response Format
All responses are JSON with a consistent structure:Success Response
Error Response
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
400 | Bad request - invalid parameters |
401 | Unauthorized - invalid or missing API key |
403 | Forbidden - insufficient permissions |
404 | Not found |
429 | Rate limit exceeded |
500 | Internal server error |
Rate Limits
Rate limits vary by plan:| Plan | Requests/month | Rate limit |
|---|---|---|
| Free | 10,000 | 10 req/s |
| Pro | 100,000 | 50 req/s |
| Enterprise | Unlimited | 200 req/s |
Pagination
List endpoints support pagination vialimit and offset:
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
limit | integer | 50 | 100 | Number of results |
offset | integer | 0 | - | Skip first N results |
Filtering
Most endpoints support filtering:lang- ISO 639-3 language codepos- Part of speechsource- Data source
Including Related Data
Useinclude to fetch related data in a single request:
Search
Text search is available on most endpoints via theq parameter:
- Exact matches
- Prefix matching
- Fuzzy matching (with
fuzzy=true)
Bulk Operations
For high-volume operations, use batch endpoints:SDKs
Official SDKs are coming soon:JavaScript
npm install @langdex/sdkPython
pip install langdexGo
go get langdex.co/sdk