Overview
The Quote API provides a simple and elegant way to access inspirational quotes across multiple categories. Built with Express.js and designed for performance, it's perfect for developers building applications that need motivational content.
Important Notice
Quotify API does not own the quotes provided through this service. All quotes are the intellectual property of their respective authors, creators, and copyright holders. This API serves as a collection and distribution platform only. Please respect the original authors' rights and ensure proper attribution when using these quotes in your applications.
Fast & Reliable
Built with Express.js and optimized for performance
Secure
Rate limiting, security headers, and abuse protection
Rich Content
Multiple categories: happy, sad, love, motivational, wisdom
Easy Integration
Simple REST API with comprehensive documentation
API Endpoints
/api
Get a random quote
Returns a random quote from any available category.
Query Parameters:
type
(optional) - Filter by category: happy, sad, love, motivational, wisdom
/api/types
Get available categories
Returns all available quote categories and their counts.
/api/stats
Get quote statistics
Returns detailed statistics about quotes in each category.
Examples
Get a random quote:
curl https://quotifyapi.vercel.app/api
Get a specific category:
curl "https://quotifyapi.vercel.app/api?type=motivational"
Get available types:
curl https://quotifyapi.vercel.app/api/types
Try It Now
Test the API directly from this page:
๐งช Interactive API Tester
Test any endpoint directly from this page
API Response
Click "Send Request" to test the API
Rate Limits
To ensure fair usage and protect against abuse, the following rate limits are enforced:
General Requests
Applies to all requests to the API
API Endpoints
Applies to all /api routes
Strict Limit
Additional protection for API routes
Rate Limit Headers
The API includes rate limit information in response headers:
RateLimit-Limit
- Maximum requests per windowRateLimit-Remaining
- Remaining requests in current windowRateLimit-Reset
- Time when the rate limit resets
Installation & Usage
NPM Package
npm install quotifyapi
Install the package and use it in your Node.js applications.
Usage Example:
const quotify = require('quotifyapi');
// Get a random quote
quotify.getRandomQuote()
.then(quote => console.log(quote))
.catch(err => console.error(err));
// Get quote by type
quotify.getQuoteByType('motivational')
.then(quote => console.log(quote))
.catch(err => console.error(err));
// Get available types
quotify.getAvailableTypes()
.then(types => console.log(types))
.catch(err => console.error(err));
CLI Tool
npm install -g quotifyapi
Install globally to use the command-line interface.
CLI Commands:
# Get a random quote
quotifyapi
# Get quote by type
quotifyapi --type motivational
quotifyapi --type love
quotifyapi --type wisdom
# Get available types
quotifyapi --types
# Get API stats
quotifyapi --stats
# Help
quotifyapi --help
Direct API
# Base URL: https://quotifyapi.vercel.app
Make HTTP requests directly to the API endpoints.
cURL Examples:
# Get random quote
curl https://quotifyapi.vercel.app/api
# Get motivational quote
curl https://quotifyapi.vercel.app/api?type=motivational
# Get available types
curl https://quotifyapi.vercel.app/api/types
# Get API stats
curl https://quotifyapi.vercel.app/api/stats
Self-Hosted
git clone https://github.com/tanishq-sa/Quotifyapi
cd quotifyapi
npm install
npm start
Clone the repository and run your own instance.
Environment Setup:
# Copy environment file
cp env.example .env
# Edit configuration
nano .env
# Start development server
npm run dev
# Start production server
npm start