Loading... because even our website needs a coffee break! ☕️
Access quotes programmatically with our simple REST API. All requests require an API key.
Base URL
https://www.quoterism.comAPI Key
Sign in or create an account, then request an API key in your profile.
Rate limit: 30 requests / minute
/api/quotesRetrieve a paginated list of quotes with author information.
| Name | Type | Required | Description |
|---|---|---|---|
page | number | Optional | Page number (0-indexed). Defaults to 0. |
limit | number | Optional | Number of quotes per page (1-100). Defaults to 12. |
{
"data": [
{
"id": "abc123",
"text": "The only way to do great work is to love what you do.",
"author": {
"id": "xyz789",
"name": "Steve Jobs",
"slug": "steve-jobs"
},
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"pagination": {
"page": 0,
"limit": 12,
"totalCount": 1000,
"totalPages": 84,
"hasNextPage": true,
"hasPreviousPage": false
}
}Get first page
curl -H "X-API-Key: YOUR_API_KEY" "https://www.quoterism.com/api/quotes"
Get page 2 with 20 items
curl -H "X-API-Key: YOUR_API_KEY" "https://www.quoterism.com/api/quotes?page=1&limit=20"
/api/quotes/[id]Retrieve a quote by its ID, or use special values for random quotes and the quote of the day.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The quote ID, or a special value: "random" for a random quote, "quote-of-the-day" for the daily quote. |
{
"id": "abc123",
"text": "The only way to do great work is to love what you do.",
"author": {
"id": "xyz789",
"name": "Steve Jobs"
}
}Get quote by ID
curl -H "X-API-Key: YOUR_API_KEY" "https://www.quoterism.com/api/quotes/abc123"
Get random quote
curl -H "X-API-Key: YOUR_API_KEY" "https://www.quoterism.com/api/quotes/random"
Get quote of the day
curl -H "X-API-Key: YOUR_API_KEY" "https://www.quoterism.com/api/quotes/quote-of-the-day"