The Simple English Dictionary API is a user-friendly tool that offers straightforward definitions for words. It is also customizable, allowing for self-hosting to meet specific requirements. With over more than 121k words, the API contains vast amount of data.
This project was inspired by simple-english-dictionary on GitHub. The output files were obtained from tusharlock10's dictionary repo and uploaded to Dropbox.
- Provides simple English definitions for words
- Can be hosted on a platform as an API or self-hosted
- Supports GET requests with parameters for word lookup
- Returns responses in JSON format
Please note that this project is intended for educational purposes only. The Simple English Dictionary API should not be used for commercial purposes without prior permission from the author.
The data can be accessed in various formats(is self hosting), including:
- Two big chunks of json data separated into two files in "meaningsJson/" directory
- A single JSON file called "processed/meanings.json" that contains all the words present in those two json files
- You can also opt to replace this files with files from simple-english-dictionary repository.
However, if you want to change the json schema, you may also need to update how the API works with input as well.
To use the Simple English Dictionary API, you'll need:
- An internet connection (if using the hosted version)
- Node.js installed (if self-hosting)
No installation is required for the hosted version. Simply make GET requests to the API endpoint with the appropriate parameters.
API Endpoint: https://meanings.onrender.com/api/:word
- Clone the repository:
git clone https://github.com/Mirza-Glitch/simple-english-dictionary-api.git
- cd:
cd simple-english-dictionary-api
- Install dependencies:
npm install
- Run the express server:
npm start
-
Make GET requests to
http://localhost:3000/api/:word1/:word2
with the appropriate parameters. -
login as admin at
http://localhost:3000/login
with "admin" as username and password (use this to add, edit and delete dictionary data from API and more...). -
Change admin password and username from admin dashboard.
Make GET requests to the API endpoint with the following parameters:
word
(required): The word to look up
Example request:
https://meanings.onrender.com/api/b
Example response:
[
{
"WORD": "B",
"MEANINGS": [
{
"partsOfSpeech": "Noun",
"definition": "the 2nd letter of the Roman alphabet",
"relatedWords": [
"Letter",
"Letter of the alphabet",
"Alphabetic character"
],
"exampleSentence": []
},
{
"partsOfSpeech": "Noun",
"definition": "the blood group whose red cells carry the B antigen",
"relatedWords": ["Blood group", "Blood type"],
"exampleSentence": []
}
],
"ANTONYMS": [],
"SYNONYMS": [
"Bel",
"Vitamin b complex",
"B complex",
"Atomic number 5",
"Barn"
]
}
]
You can also add another parameter for second word like:
https://meanings.onrender.com/api/a/b
This will fetch data for word 'a' and also for 'b'
You can also visit the official website for documentation
This project is licensed under the MIT License - see the LICENSE.md file for details.
This project was created by Mirza-Glitch.