Random Quotes
Get random inspirational quotes from famous people, thinkers, and leaders. Perfect for daily motivation, content generation, or adding wisdom to your applications.
Overview
Use Cases
- Daily motivation apps and widgets
- Social media content generation
- Quote of the day features
- Inspirational dashboards
- Content placeholders for design
Features
Curated collection of inspirational quotes
Includes author attribution
Fast response times
No parameters required
API Endpoints
Get Random Quote
Returns a random inspirational quote with author attribution
GET
https://api.requiems.xyz/v1/text/quotes/random
Try it out
Live DemoRequest
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| id | integer |
Unique identifier for the quote |
| text | string |
The quote text |
| author | string |
Name of the person who said or wrote the quote |
Code Examples
curl https://api.requiems.xyz/v1/text/quotes/random \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/text/quotes/random"
headers = {"requiems-api-key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
quote = response.json()['data']
print(f"{quote['text']} - {quote['author']}")
const response = await fetch('https://api.requiems.xyz/v1/text/quotes/random', {
headers: {
'requiems-api-key': 'YOUR_API_KEY'
}
});
const { data } = await response.json();
console.log(`${data.text} - ${data.author}`);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/text/quotes/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['text']} - #{data['author']}"
Error Responses
503
service_unavailable
No quotes available in the database
Frequently Asked Questions
Currently, the API returns random quotes from our entire collection. Author filtering is planned for a future update.
Our collection contains hundreds of curated inspirational quotes from famous thinkers, leaders, and innovators, and we're constantly adding more.
No, quotes are selected randomly on each request, so consecutive calls will typically return different quotes.