DEV Community

MC Naveen
MC Naveen

Posted on

I made an Free API to get random words and Generate pronunciation on the go

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

GitHub logo mcnaveen / Random-Words-API

πŸ¦„ Get Random Words (with pronunciation) for Free using this API

Random Words API

All Contributors

build-test

πŸ¦„ 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"
  }
]
Enter fullscreen mode Exit fullscreen mode

🌐 Sample Dutch Response

  • API: https://random-words-api.vercel.app/word/dutch
  • Method: GET
[
  {
    "word": "Perfect"
    "definition"
…
Enter fullscreen mode Exit fullscreen mode

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)

Collapse
 
mskian profile image
Santhosh Veer

it was really fun
Learn new words daily

Collapse
 
saikiranpatro profile image
Sai Kiran Patro • Edited

I'm getting API response error.
Please update it.
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
mcnaveen profile image
MC Naveen

Sorry, It was some dependencies issue.
Fixed now. Enjoy πŸŽ‰

Collapse
 
victorhedegran profile image
VictorHedegran

I think the dependencies needs updating again, I get an error stating "Something Went Wrong - Enter the Correct API URL"