The Story
From long time I want to learn a new word everyday. But I'm not fond of reading or going through the dictionary every single day. I wanted to do something technical.
So I created this API.
Tech Stack
- NodeJS with Cheerio, Express
- Compromise-pronounce for generating pronunciation
mcnaveen / Random-Words-API
🦄 Get Random Words (with pronunciation) for Free using this API
Random Words API
🚀 API
-
Free API -
https://random-words-api.vercel.app/word
-
Dutch Random Words -
https://random-words-api.vercel.app/word/dutch
-
PWA Demo - Check Here
🎛 Route Options
- Base URL:
https://random-words-api.vercel.app/word
- /noun
- /sentence
- /question
- /adjective
- /idiom
- /verb
- /letter
- /paragraph
- /vocabulary
- /1-word-quotes
- /2-word-quotes
- /3-word-quotes
- /affirmation
🌐 Sample API Response
[
{
"word": "Exactor",
"definition": "One who exacts; extortioner; claimer of rights ",
"pronunciation": "Eksaktor"
}
]
🌐 Sample Dutch Response
[
{
"word": "Perfect",
"definition": "Perfect",
"pronunciation": "Perfekt"
}
]
💡 Learn New word
✨ Installation (Development)
# Clone the Repo
git clone https://github.com/mcnaveen/Random-Words-API random-words
# Cd into Directory
cd random-words
# Install Dependencies
yarn install
#
…It fetches the word from the web and generate pronunciation on the go.
Feel free to use it. PRs are welcome.
Thanks to @mskian for Progressive Web App.
https://wordsonrandom.netlify.app/
Top comments (4)
it was really fun
Learn new words daily
I'm getting API response error.
Please update it.
dev-to-uploads.s3.amazonaws.com/up...
Sorry, It was some dependencies issue.
Fixed now. Enjoy 🎉
I think the dependencies needs updating again, I get an error stating "Something Went Wrong - Enter the Correct API URL"