Random Word API
The Random Word API generates unique and interesting words for songs, games and education applications.
From 3,212 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 305ms | 334ms | 401ms | 639ms | 982ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v2/randomword GET
https://api.api-ninjas.com/v2/randomword
Returns a random word.
Parameters
typeoptional premium onlyType of word. Possible values are:
noun,verb,adjective,adverb.limitoptional premium onlyHow many results to return. Must be between
1and30. Default is1.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of word strings, or an error if the request is unsuccessful.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v2/randomwordHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v2/randomword" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
Frequently Asked Questions
Can I use the Random Word API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Random Word API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.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 theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Random Word API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.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.How do I get a specific part of speech, like a random verb or adjective?
Use thetypeparameter, which acceptsnoun,verb,adjective, oradverb; note thattypeis a premium-only parameter available on paid plans.Can I generate more than one random word per request?
Yes, set thelimitparameter to any value between1and30(the default is1);limitis a premium-only feature, so see pricing for access.What does the Random Word API response include?
The/v2/randomwordendpoint 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.