I would check out Random Word API. It's simple and free to use. If your looking for JS code, here it is:

Example Usage with Javascript/JQuery

function RandomWord() {
    var requestStr = "http://randomword.setgetgo.com/get.php";

    $.ajax({
        type: "GET",
        url: requestStr,
        dataType: "jsonp",
        jsonpCallback: 'RandomWordComplete'
    });
}

function RandomWordComplete(data) {
    alert(data.Word);
}
Answer from Tom on Stack Exchange
🌐
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.
People also ask

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
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
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
🌐
npm
npmjs.com › package › random-words
random-words - npm
random-words generates random words for use as sample text.
      » npm install random-words
    
Published: Jan 25, 2024
Version: 2.0.1
      » npm install @apiverve/randomwords
    
Published: Feb 16, 2026
Version: 1.1.14
🌐
GitHub
github.com › TylrPopcorn › Random-Word-Generator
GitHub - TylrPopcorn/Random-Word-Generator: A simple application that will generate a random word from an external API. · GitHub
A simple application that will generate a random word from an external API. Developed using HTML, React.js, JavaScript, CSS, Node.js, and TypeScript
Author: TylrPopcorn
🌐
Devpost
devpost.com › software › api-project-3q10zt
Random Word Generator | Devpost
We can easily generate a random word and it's definitions by connecting both the APIs. JavaScript concepts, how APIs work, and how to connect two APIs.
Find elsewhere
🌐
Herokuapp
random-word-api.herokuapp.com › home
Random Word API
For example: https://random-word-api.herokuapp.com/word?length=7 would return a word with a length of seven.
🌐
Stack Overflow
stackoverflow.com › questions › 46854843 › random-word-api-usage
javascript - Random Word API Usage - Stack Overflow
function RandomWord() { var requestStr = "http://randomword.setgetgo.com/get.php"; $.ajax({ type: "GET", url: requestStr, dataType: "jsonp", }).done(RandomWordComplete); } function RandomWordComplete(data) { alert(data.Word); } RandomWord();
🌐
Stack Overflow
stackoverflow.com › questions › 71142095 › trying-to-fetch-random-words-from-api-and-displaying-them
javascript - Trying to fetch random words from API and displaying them - Stack Overflow
const [words, setWords] = useState([]); const throwDices = () => { words.map((word, index) => { fetch("https://palabras-aleatorias-public-api.herokuapp.com/random") .then((response) => { if (response.ok) { return response.json(); } throw Response; }) .then((data) => { words[index] = data.body.Word; setWords([...words]); }); }); }; useEffect(() => { throwDices(); }, []);
🌐
GitHub
github.com › topics › random-words
random-words · GitHub Topics · GitHub
The goal of this project is to generate random words from an API. Languages used: Javascript and HTML only
🌐
GitHub
github.com › apiverve › randomwords-api
GitHub - apiverve/randomwords-api: Random Word is a simple tool for getting random words. It returns a random word.
Native packages for JavaScript, Python, C#, Go, and Android · Simple Integration · Single API key authentication, consistent response format · Production Ready · 99.9% uptime, fast response times, used by thousands of developers · Comprehensive Docs · Full examples, OpenAPI spec, and dedicated support · 🏠 API Home: Random Word API ·
Author: apiverve
🌐
CodePen
codepen.io › amplitrix › pen › LRdmLK
Hangman - using random word API
Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor.
🌐
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 - Thanks to @mskian for Progressive Web App. https://wordsonrandom.netlify.app/ ... I'm 3rd year undergrad in ECE , I'm also a youtuber and i create content related to Tech!. ... 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"
🌐
FakerJS
fakerjs.dev › api › word
Word | Faker
Module to return various types of words. Returns a random adjective.
Author: dulldesk
🌐
CodePen
codepen.io › justpete › pen › ogNBPp
Random Word Generator
Minimize JavaScript Editor · Fold All · Unfold All · var NumberOfWords = 28 var words = new BuildArray(NumberOfWords) // Use the following variables to // define your random words: words[1] = "escapology" words[2] = "brightwork" words[3] = "verkrampte" words[4] = "protectrix" words[5] = "nudibranch" words[6] = "grandchild" words[7] = "newfangled" words[8] = "flugelhorn" words[9] = "mythologer" words[10] = "pluperfect" words[11] = "jellygraph" words[12] = "quickthorn" words[13] = "rottweiler" words[14] = "technician" words[15] = "cowpuncher" words[16] = "middlebrow" words[17] = "jackhammer"
🌐
GitHub
github.com › mcnaveen › Random-Words-API
GitHub - mcnaveen/Random-Words-API: 🦄 Get Random Words (with pronunciation) for Free using this API
# Clone the Repo git clone https://github.com/mcnaveen/random-words-api random-words-api # Cd into Directory cd random-words # Install Dependencies npm install # Start the Development Server npm run dev
Author: mcnaveen
🌐
Stack Overflow
stackoverflow.com › questions › 74992836 › how-to-generate-random-words-from-an-api
react native - How to generate random words from an API? - Stack Overflow
changeWordToShow = () => { fetch('https://random-word-api.herokuapp.com/word?lang=it') .then((response) => response.json()) .then((response) => this.setState({ wordToShow: response })); }; Share · Share a link to this answer · Copy linkCC BY-SA 4.0 · Short permalink to this answer ·