meetDeveloper / freeDictionaryAPI

There was no free Dictionary API on the web when I wanted one for my friend, so I created one.
https://dictionaryapi.dev/
GNU General Public License v3.0
2.48k stars 253 forks source link

[Suggestion] Add the ability to request a random word #196

Open Logboy2000 opened 5 months ago

Logboy2000 commented 5 months ago

I currently use a separate 'random word' API and will run into issues where your API doesn't have one of their words and vice versa.

It would be highly appreciated if you could add an endpoint that returns a random word from your list so this is no longer an issue. e.g. (https://api.dictionaryapi.dev/api/v2/random/en)

glordicus commented 2 months ago

The project includes the wordlist in the meta/wordlist file, each word is on a separate line. If you choose a random line and read it, you will get a random word that matches to the API. Hope that helps.