Random Word
Get random words with definitions and parts of speech. Perfect for vocabulary builders, educational apps, word games, or content inspiration.
Vue d'ensemble
Cas d'utilisation
- Vocabulary learning applications
- Word-of-the-day features
- Educational tools and flashcards
- Writing prompts and creative inspiration
- Word game development
Fonctionnalités
Curated collection of English words
Includes dictionary definitions
Parts of speech classification
No parameters required
Points de terminaison de l'API
Get Random Word
Returns a random word with its definition and part of speech
GET
https://requiems.xyz/v1/text/words/random
Essayez-le
Démo en directRequête
Sending request...
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| id | integer |
Unique identifier for the word |
| word | string |
The random word |
| definition | string |
Dictionary definition of the word |
| part_of_speech | string |
Grammatical classification (e.g., noun, verb, adjective, adverb) |
Exemples de code
curl https://requiems.xyz/v1/text/words/random \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://requiems.xyz/v1/text/words/random"
headers = {"requiems-api-key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
word_data = response.json()['data']
print(f"{word_data['word']} ({word_data['part_of_speech']}): {word_data['definition']}")
const response = await fetch('https://requiems.xyz/v1/text/words/random', {
headers: {
'requiems-api-key': 'YOUR_API_KEY'
}
});
const { data } = await response.json();
console.log(`${data.word} (${data.part_of_speech}): ${data.definition}`);
require 'net/http'
require 'json'
uri = URI('https://requiems.xyz/v1/text/words/random')
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
data = JSON.parse(response.body)['data']
puts "#{data['word']} (#{data['part_of_speech']}): #{data['definition']}"
Réponses d'erreur
503
service_unavailable
No words available in the database
Foire aux questions
The API includes all major parts of speech including nouns, verbs, adjectives, adverbs, prepositions, conjunctions, and more.
Currently, the API returns completely random words. Filtering by part of speech or difficulty level is planned for a future update.
Our collection contains thousands of carefully curated English words with accurate definitions, covering a wide range of vocabulary levels.
The definitions are curated from reputable dictionary sources to provide clear, concise explanations suitable for general use.