Random Quotes API
Get inspiring quotes with our free API
Basic Usage
GET https://placehold.cloud/q
Returns a random quote from the Quotable API.
Response Format
{
"status": "success",
"data": [
{
"_id": "IARxwjpiXK",
"content": "I had three chairs in my house; one for solitude, two for friendship, three for society.",
"author": "Henry David Thoreau",
"tags": ["Friendship"],
"authorSlug": "henry-david-thoreau",
"length": 88,
"dateAdded": "2019-08-08",
"dateModified": "2023-04-14"
}
],
"timestamp": "YYYY-MM-DD HH:MM:SS"
}
Rate Limiting
To ensure fair usage, this API is rate-limited:
- 5 requests per second
- 3600 requests per hour
Error Handling
In case of an error, the API returns a JSON response with an error message:
{
"status": "error",
"message": "An error occurred while fetching the quote"
}