Welcome to Quotd, a beautifully crafted public API serving inspiring and uplifting quotes and aphorisms to elevate the human spirit! ๐
- Get random quotes
- Access quotes by ID
- Explore all quotes
- Discover categories
- Browse authors
- View all quotes from a specific author
Get a random quote with a simple `curl` command:
curl https://api.quotd.io/quotes/random
Or retrieve a specific quote:
curl https://api.quotd.io/quotes/1
fetch('https://api.quotd.io/quotes/random')
.then((response) => response.json())
.then((data) => console.log(data));
import requests
response = requests.get('https://api.quotd.io/quotes/random')
data = response.json()
print(data)
require 'httparty'
response = HTTParty.get('https://api.quotd.io/quotes/random')
data = response.parsed_response
puts data
For more detailed information on the API endpoints and capabilities, check out the official documentation.
npm install
# Copy sample .env file. You may need to edit the values.
cp .env.dist .env
# Start the supporting services in background
npm run db:up
# Setup the database
npx prisma db push
# Seed the database (optional)
npx prisma db seed
# development
npm run start
# watch mode
npm run start:dev
# production mode
npm run start:prod
# unit tests
npm run test
# e2e tests
npm run test:e2e
# test coverage
npm run test:cov
Quotd is MIT licensed.