QuoteSlate API

Discover inspiring quotes with ease.

Deploy with Vercel

About QuoteSlate

QuoteSlate is a powerful API that provides access to a vast collection of inspirational quotes. With support for filtering by author, length, and tags, you can easily find the perfect quote for your needs. Whether you're building a motivational app, a writing tool, or just looking for daily inspiration, QuoteSlate has got you covered!

Deploy Your Own

Expecting heavy usage? Deploy your own instance on Vercel to get dedicated resources and avoid shared rate limits.

One-click Deploy

Deploy with Vercel

Manual Deployment

  1. Fork this repository on GitHub.
  2. Log in to your Vercel dashboard.
  3. Create a new project and import the forked repo.
  4. Click deploy to build and launch.
  5. Use your new URL instead of quoteslate.vercel.app.

OpenAPI Specification

Download the OpenAPI document

⚠️ Responsible Use Guidelines

Optimize Requests & Cache Data

To ensure the best experience for everyone:

  • Use the count parameter to fetch multiple quotes (up to 50) in a single request
  • Implement local caching in your application
  • Pre-fetch quotes when possible to reduce API calls

Commercial & High-Volume Usage

If your project is commercial or requires frequent API calls:

  • Fork the repository and deploy your own instance
  • Consider implementing load balancing for very high-volume needs
  • The public API is primarily intended for personal and small-scale projects

Attribution

Please include appropriate attribution in your project:

"Quotes powered by the QuoteSlate API"

API Endpoints

Get a Random Quote

Retrieve a random quote from our collection.

GET /api/quotes/random

Get Multiple Random Quotes

Retrieve multiple random quotes (up to 50) at once.

GET /api/quotes/random?count=5

Get a Quote by Length Range

Retrieve a random quote within a specific character length range.

GET /api/quotes/random?minLength=50&maxLength=150

Get Quotes by Author

Retrieve random quotes from specific authors (comma-separated).

GET /api/quotes/random?authors=Babe%20Ruth,Ayn%20Rand

Get Available Authors

Retrieve a list of all available authors and their quote counts.

GET /api/authors

Get a Quote by Tags

Retrieve a random quote with specific tags (comma-separated).

GET /api/quotes/random?tags=life,wisdom

Get Available Tags

Retrieve a list of all available tags.

GET /api/tags

Combine Multiple Parameters

Mix and match parameters to get exactly what you need.

GET /api/quotes/random?authors=Babe%20Ruth&tags=wisdom&count=3
&minLength=50&maxLength=150