Please refer to the documentation of the API you are using. https://random-word-api.herokuapp.com/home

There is no option to choose words from a specific category. You might want to change the API altogether.

Answer from Maureen Jain on Stack Overflow
🌐
API Ninjas
api-ninjas.com › home › api directory › random word api
Random Word API - API Ninjas
How do I get an API key and start using the Random Word API? Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
🌐
PyPI
pypi.org › project › random_word
random_word · PyPI
This is a simple python package to generate random English words.
      » pip install random_word
    
Published: Nov 21, 2024
Version: 1.0.13
Discussions

How to fetch a random word of a specific category in Python using the requests module? - Stack Overflow
I am working on a Python project in which I need to fetch a random word from an API such as Heroku, but only of a specific category, for example "Fruits", or "Colors". I was abl... More on stackoverflow.com
🌐 stackoverflow.com
looking for a random word API where I can specify parts of speech and syllable counts that returns multiple words, or open source dictionary data I can host myself
datamuse.com/api More on reddit.com
🌐 r/learnprogramming
4
1
May 18, 2022
What is a good API to generate a random common word?

If you're on Linux there should be a words file. Just pick a random line.

More on reddit.com
🌐 r/learnpython
2
1
November 3, 2019
Generating a random word from the os in Python - Stack Overflow
I'm creating a hangman game in Python, and I would like to be able to generate a random word. I could always make a list, but I would like to be not have to manually write all the words if possible... More on stackoverflow.com
🌐 stackoverflow.com
People also ask

How do I get an API key and start using the Random Word API?
Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
🌐
api-ninjas.com
api-ninjas.com › home › api directory › random word api
Random Word API - API Ninjas
What are some use cases for the Random Word API?
It generates unique and interesting words ideal for songwriting prompts, word games, and educational applications, and pairs well with the Dictionary and Thesaurus APIs to look up definitions or synonyms for the words it returns.
🌐
api-ninjas.com
api-ninjas.com › home › api directory › random word api
Random Word API - API Ninjas
What does the Random Word API response include?
The /v2/randomword endpoint returns a JSON array of word strings (for example a single-element array like the word 'escapade'), or an error if the request is unsuccessful.
🌐
api-ninjas.com
api-ninjas.com › home › api directory › random word api
Random Word API - API Ninjas
🌐
Herokuapp
random-word-api.herokuapp.com › home
Random Word API
For example: https://random-word-api.herokuapp.com/word?number=3&diff=1 would return 3 easy/common words.
🌐
Reddit
reddit.com › r/sideproject › i built a random word api
r/SideProject on Reddit: I built a Random Word API
November 9, 2025 - What it does: A simple GET request returns a JSON with a random English word, its definition, part of speech, and lists of synonyms and antonyms, you also can specify your English level, for example, if you're beginner (A1), you can get only ...
Starred by 126 users
Forked by 23 users
Languages: Python 91.7% | Makefile 8.3%
Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › looking for a random word api where i can specify parts of speech and syllable counts that returns multiple words, or open source dictionary data i can host myself
r/learnprogramming on Reddit: looking for a random word API where I can specify parts of speech and syllable counts that returns multiple words, or open source dictionary data I can host myself
May 18, 2022 -

Hey r/learnprogramming, this is my first time posting in this sub, not sure if there's a more fitting one.

For a project I'm working on, I want to generate random words in bulk with specific parts of speech (noun, verb, adjective, etc), and with a specific number of syllables. I've done some pretty heavy googling for API's and open source dictionaries but haven't found one that quite fits my requirements.

Wordnik has a random word API endpoint, however you can only specify parts of speech, not the number of syllables. They do have a syllables ("hyphenation") end point, but checking syllable counts for each word I pull (I'm talking hundreds at a time) would be computationally expensive, not to mention I'd hit my request limit pretty quickly.

WordsAPI has a search endpoint where you can specify parts of speech and syllables, and if you specify random = true it will return ONE random word, so I'd have to hammer the API like a hundred requests at a time, and there's a 2500 request a day limit on the free tier, and I don't really have money to burn on a subscription for a higher limit. They also offer their full data dump for $630, which again I can't really afford at the moment.

Does anyone know of any random word API's where I can specify parts of speech and number of syllables to get multiple words, or know of any open source dictionaries or something that I can host somewhere to build my own API?

thanks!

🌐
PyPI
pypi.org › project › wonderwords
wonderwords
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
GitHub
github.com › aquibzahidi › random-word-api
GitHub - aquibzahidi/random-word-api: python rest api to generate random words · GitHub
python rest api to generate random words. Contribute to aquibzahidi/random-word-api development by creating an account on GitHub.
Author: aquibzahidi
🌐
PyPI
pypi.org › project › RandomWords
RandomWords
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Libraries.io
libraries.io › pypi › Random-Word
Random-Word 1.0.11 on PyPI - Libraries.io - security & maintenance data for open source software
This is a simple python package to generate random english words - 1.0.11 - a Python package on PyPI
🌐
Readthedocs
wonderwords.readthedocs.io › _ › downloads › en › latest › pdf pdf
Wonderwords documentation
Wonderwords is a python package with a command line interface with the purpose of generating random words and
🌐
Wordnik
developer.wordnik.com
'Sign up for a Wordnik API key!'
Wordnik provides information about millions of words through our developer-friendly RESTful API with a generous free tier.
🌐
Wordsapi
wordsapi.com › docs
introduction – API Reference
Just append random=true to your request. Only one word will be returned.
🌐
DEV Community
dev.to › lubiah › generating-random-words-in-python-2obi
Generating random words in python - DEV Community
September 10, 2021 - It contains a collection of string constants import random #Python's module for generating random objects lowercase_letters = string.ascii_lowercase #A constant containing lowercase letters def lowercase_word(): #The function responsible for generating the word lowercase word = '' #The variable which will hold the random word random_word_length = random.randint(1,10) #The random length of the word while len(word) != random_word_length: #While loop word += random.choice(lowercase_letters) #Selects a random character on each iteration return word #Returns the word random_word = lowercase_word()
🌐
RapidAPI
rapidapi.com › uiopuiopuiop3385 › api › random-word-api
Random Word API
This easy-to-use, 100% free API randomely picks out words from the entire english dictionnary with many parameters.
🌐
DEV Community
dev.to › mcnaveen › i-made-an-free-api-to-get-random-words-with-pronunciation-127o
I made an Free API to get random words and Generate pronunciation on the go - DEV Community
December 20, 2020 - [ { "word": "Exactor", "definition": "One who exacts; extortioner; claimer of rights ", "pronunciation": "Eksaktor" } ] API: https://random-words-api.vercel.app/word/dutch