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
π¦ Get Random Words (with pronunciation) for Free using this API
π Languages
- English
- Dutch
- Spanish
- French
- Chinese
- Japanese
π API
-
English Random Words -
https://random-words-api.vercel.app/word
-
Dutch Random Words -
https://random-words-api.vercel.app/word/dutch
-
Spanish Random Words -
https://random-words-api.vercel.app/word/spanish
-
French Random Words -
https://random-words-api.vercel.app/word/french
-
Chinese Random Words -
https://random-words-api.vercel.app/word/chinese
-
Japanese Random Words -
https://random-words-api.vercel.app/word/japanese
-
Turkish Random Words -
https://random-words-api.vercel.app/word/turkish
-
PWA Demo - Check Here
π Route Options (English Only)
- Base URL:
https://random-words-api.vercel.app/word/english
- /noun
- /sentence
- /question
- /adjective
- /idiom
- /verb
- /letter
- /paragraph
- /vocabulary
- /1-word-quotes
- /2-word-quotes
- /3-word-quotes
- /affirmation
π Sample API Response
- API:
https://random-words-api.vercel.app/word/
- Method:
GET
[
{
"word": "Exactor",
"definition": "One who exacts; extortioner; claimer of rights ",
"pronunciation": "Eksaktor"
}
]
π Sample Dutch Response
- API:
https://random-words-api.vercel.app/word/dutch
- Method:
GET
[
{
"word": "Perfect"
"definition"
β¦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"