Quotify API Documentation
Complete documentation and real-time examples for using the Quotify API
Getting Started
Quotify API provides free access to a large collection of quotes without requiring registration or an API key. Our API is designed to be simple and intuitive to use.
Base URL
https://api.quotify.top
Get Random Quote(s)
API Configuration
Endpoint
GET /random
Description
Fetches one or more random quotes with their author and tags. The quantity parameter allows you to specify how many quotes to retrieve (between 1 and 10).
Parameters
Code Examples
Python
JavaScript
import requests
# Get a single random quote
response = requests.get('https://api.quotify.top/random')
quote = response.json()
print(f"\"{quote['text']}\" - {quote['author']}")
# Get multiple random quotes
response = requests.get('https://api.quotify.top/random?quantity=3')
quotes = response.json()
for quote in quotes:
print(f"\"{quote['text']}\" - {quote['author']}")
// Get a single random quote
fetch('https://api.quotify.top/random')
.then(response => response.json())
.then(quote => {
console.log(`"${quote.text}" - ${quote.author}`);
})
.catch(error => console.error('Error:', error));
// Get multiple random quotes
fetch('https://api.quotify.top/random?quantity=3')
.then(response => response.json())
.then(quotes => {
quotes.forEach(quote => {
console.log(`"${quote.text}" - ${quote.author}`);
});
})
.catch(error => console.error('Error:', error));
Live Request
cURL
# Click 'Send Request' to generate a cURL command.
Live Response
{
"message": "Click 'Send Request' to see a live response."
}
Search Quotes
API Configuration
Endpoint
GET /search
Description
Search for quotes by keyword. The keyword will be searched in quote text, author names, and tags. Returns up to 10 results by default.
Parameters
Code Examples
Python
JavaScript
import requests
# Search for quotes containing "life"
response = requests.get('https://api.quotify.top/search?q=life')
quotes = response.json()
for quote in quotes:
print(f"\"{quote['text']}\" - {quote['author']}")
# Search with custom limit
response = requests.get('https://api.quotify.top/search?q=wisdom&limit=5')
quotes = response.json()
for quote in quotes:
print(f"\"{quote['text']}\" - {quote['author']}")
// Search for quotes containing "life"
fetch('https://api.quotify.top/search?q=life')
.then(response => response.json())
.then(quotes => {
quotes.forEach(quote => {
console.log(`"${quote.text}" - ${quote.author}`);
});
})
.catch(error => console.error('Error:', error));
// Search with custom limit
fetch('https://api.quotify.top/search?q=wisdom&limit=5')
.then(response => response.json())
.then(quotes => {
quotes.forEach(quote => {
console.log(`"${quote.text}" - ${quote.author}`);
});
})
.catch(error => console.error('Error:', error));
Live Request
cURL
# Click 'Send Request' to generate a cURL command.
Live Response
{
"message": "Click 'Send Request' to search for quotes."
}