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

GET /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
GET /api/types Get available categories

Returns all available quote categories and their counts.

GET /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

GET https://quotifyapi.vercel.app

API Response

Ready

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

1,000 per 15 minutes

Applies to all requests to the API

API Endpoints

500 per 15 minutes

Applies to all /api routes

Strict Limit

50 per minute

Additional protection for API routes

Rate Limit Headers

The API includes rate limit information in response headers:

  • RateLimit-Limit - Maximum requests per window
  • RateLimit-Remaining - Remaining requests in current window
  • RateLimit-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