Random Word API
Endpoints
/all
Returns all stored words. This will be a huge data dump and will take a long time to fetch and will probably slow down your application.
/word
Return one stored word randomly. Options can be further specified, see the parameters menu.
/languages
Return a list of stored language codes. Useful if you want a multilanguage app. See GitHub to find out how to add your own.
Parameters
The parameters can be combined.
?number
Sets the number of requested words. If it exceeds the maximum stored amount, it will just return all of them.
For example: https://random-word-api.herokuapp.com/word?number=42 would return 42 words.
?length
Sets the length of requested words. This will only return words that contain x amount of letters.
For example: https://random-word-api.herokuapp.com/word?length=7 would return a word with a length of seven.
?lang
Sets the language of requested words. Currently supported languages:
- English (just don't provide the parameter)
- Spanish (?lang=es)
- Italian (?lang=it)
- German (?lang=de)
- French (?lang=fr)
- Chinese (?lang=zh)
- Brazilian Portuguese (?lang=pt-br)
For example: https://random-word-api.herokuapp.com/all?lang=zh would return all Chinese words.