Sandbox: trial the OD API
The sandbox environment emulates the Oxford Dictionaries API and gives you the chance to evaluate its functionality. This provides a great opportunity to try the API before moving to a paid-plan Access to the Sandbox includes a finite amount of 500 calls to all languages and endpoints for the dictionary datasets, and is limited to the first letter of the alphabet.
For example: Querying the words endpoint in English:
✅ GET https://od-api-sandbox.oxforddictionaries.com/api/v2/words/en-gb?q=apple
Returns successful response (200 response code) because word begins with first letter of the alphabet.
❌ GET https://od-api-sandbox.oxforddictionaries.com/api/v2/words/en-gb?q=banana
Does not return a successful response (404 response code) because word does not begin with first letter of the alphabet.
First letter of the alphabet
The first letter of the alphabet for all languages that use the Latin alphabet is a. Here are the first letters of the alphabet or equivalent for other languages offered on the API:
Language | Language Code | First Letter Equivalent |
---|---|---|
Arabic | AR | أ |
Greek | EL | α |
Gujarati | GU | અ |
Hindi | HI | अ |
Marathi | MR | अ |
Russian | RU | а |
Tamil | TA | அ |
Telugu | TE | అ |
Tatar | TT | а |
Urdu | UR | ا |
Accessing the Sandbox
You will need your unique app key and app id to access the Sandbox. Please view them here or signup to generate these credentials. You can access the Sandbox via the documentation or your own code or test tool (e.g. Python code, Postman, CURL etc…)
Sample Entries request in Python, using the first letter of the alphabet for the “word_id”, your App ID and App Key
- import requests
- import json
- app_id = "<your_app_id>"
- app_key = "<your_app_key>"
- language = "en-gb"
- word_id = "example"
- url = "https://od-api-sandbox.oxforddictionaries.com:443/api/v2/entries/" + language + "/" + word_id.lower()
- r = requests.get(url, headers={"app_id": <your_app_id>, "app_key": <your_app_key>})
Understanding your usage
You will be emailed once you have used 50% of your limit and again when you have reached your limit. After you have reached your limit you will receive a 429 error code. See also: HTTP Status Codes