Quotes API
Get inspirational quotes by category, author, or random selection. Perfect for building motivational apps and widgets.
Overview
Integrate the Quotes API into your applications with ease. This API offers high performance, reliability, and comprehensive documentation to get you started quickly.
Documentation
Base URL
https://devapi.autoplannerx.com/api/v1/quotes-api
Authentication
All requests require an API key. Include it in the request header:
X-API-Key: YOUR_API_KEY
Endpoints
/random
Get a random quote
Returns a random inspirational quote.
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/random" \
-H "X-API-Key: YOUR_API_KEY"
Example Response:
{
"quote": "The only way to do great work is to love what you do.",
"author": "Steve Jobs",
"category": "motivational"
}
/category/{category}
Get quotes by category
Returns a random quote from the specified category. Available categories: motivational, success, wisdom, life, technology.
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational" \
-H "X-API-Key: YOUR_API_KEY"
Example Response:
{
"quote": "Success is not final, failure is not fatal...",
"author": "Winston Churchill",
"category": "motivational"
}
/author/{author}
Get quotes by author
Returns a random quote from the specified author.
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein" \
-H "X-API-Key: YOUR_API_KEY"
Rate Limits
- Free Tier: 100 requests per hour
- Premium Tier: 1,000 requests per hour
- Enterprise Tier: 10,000 requests per hour
Error Responses
// 401 Unauthorized
{
"error": true,
"message": "API Key is missing"
}
// 429 Too Many Requests
{
"error": true,
"message": "Rate limit exceeded"
}
// 404 Not Found
{
"error": true,
"message": "API not found"
}
Code Examples
Pick an endpoint and a language. Replace YOUR_API_KEY with a key from your dashboard.
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/random" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/random', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/random', {
method: 'GET',
headers: {
'X-API-Key': process.env.DEVAPI_KEY
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/quotes-api/random');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get(
"https://devapi.autoplannerx.com/api/v1/quotes-api/random",
headers={"X-API-Key": "YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational', {
method: 'GET',
headers: {
'X-API-Key': process.env.DEVAPI_KEY
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get(
"https://devapi.autoplannerx.com/api/v1/quotes-api/category/motivational",
headers={"X-API-Key": "YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein', {
method: 'GET',
headers: {
'X-API-Key': process.env.DEVAPI_KEY
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get(
"https://devapi.autoplannerx.com/api/v1/quotes-api/author/albert-einstein",
headers={"X-API-Key": "YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
curl -X GET "https://devapi.autoplannerx.com/api/v1/quotes-api/list" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/list', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/quotes-api/list', {
method: 'GET',
headers: {
'X-API-Key': process.env.DEVAPI_KEY
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/quotes-api/list');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get(
"https://devapi.autoplannerx.com/api/v1/quotes-api/list",
headers={"X-API-Key": "YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
Try It
Requests go to the live gateway with your key. They count toward your rate limit and are billed like any other call ($0.0200 per call before account discounts). Your key is only used for this request and is never saved.