ZenQuotes.io

Instant Words of Inspiration

Zenquotes.io is a simple API that can be used to fetch quotes from infuential figures throughout history into JSON format. While it's not hard to find a database of inspirational quotes online, most of them require registration or just plain suck.

No API Key Required

The Zen Quotes API can be used free of charge but you may not use this service in a manner that exceeds reasonable request volume. When no API key is provided, attribution is required and the number of requests per IP address is limited.

Check out the full documentation →

Unlimited Requests

If you would like to enable Access-Control-Allow-Origin headers, obtain unlimited API requests, make advanced calls, and run your own version of ZenQuotes, please consider a premium subscription.

Subscribe

Influential Figures. Timeless Wisdom.

ZenQuotes.io features inspiration from the world's most important philosiphers, inventors, scientists, religious figures, and leaders throughout history.

3237

Entries

256

Key Figures

98662350

API Requests

Quote of the Day

Oct 12, 2024

“Patience is a form of wisdom. It demonstrates that we understand and accept the fact that sometimes things must unfold in their own time.” —
Jon Kabat-Zinn
Jon Kabat-zinn

(new quote generates at 00:00 UTC)

Featured Authors

Browse All Authors...

Browse Quotes by Keyword

Browse All Keywords...

Trivia Game

"Name that Quote!"

Test your knowledge by matching quotes and authors.

Play Now

 Quick Start Guide

Our API is incredibly easy to use, check out the code samples below to get started:

Read the full documentation →

See developer project examples →

Fetch Random Quotes

All you need to do is send a request to https://zenquotes.io/api/[mode]/[key], where:

  • [mode] = retreval type [random,today,quotes]
  • [key] = optional. unlimited access API key

Sample Requests

https://zenquotes.io/api/quotes - Generate a JSON array of 50 random quotes on each request

https://zenquotes.io/api/today - Generate the quote of the day on each request

https://zenquotes.io/api/random - Generate a random quote on each request

https://zenquotes.io/api/image - Generate a random inspirational image on each request.

https://zenquotes.io/api/authors/[YOUR_KEY] - Generate a JSON array of available authors in the ZenQuotes database (API Key Required)

https://zenquotes.io/api/quotes/author/sun-tzu/[YOUR_KEY] - Generate a JSON array of quotes from specific author (API Key Required)

https://zenquotes.io/api/image/author/sun-tzu/[YOUR_KEY] - Generate quote image from a specific author (API Key Required)

https://zenquotes.io/api/quotes/[YOUR_KEY]&custom=true - Generate a JSON array of your own quotes (API Key Required). Currently supports [random] and [quotes] calls.

https://zenquotes.io/api/quotes/[YOUR_KEY]&keyword=[keyword] - Filter quotes by supported keywords (API Key Required)

https://zenquotes.io/api/image/[YOUR_KEY]&keyword=[keyword] - Generate quote image by supported keywords (API Key Required)


Building an app?

Use the [quotes] call to pull 50 random quotes and loop them locally within your app. After a couple hours, refresh the list in your app by calling ZenQuotes again. Full Documentation →

You might also like our "On This Day" API


Response

The result data is formatted as a JSON array. Pre-formatted HTML output is available in addition to raw individual values.

[
{
  "q":"Quality means doing it right when no one is looking.",
  "a":"Henry Ford",
  "h":"<blockquote>“Quality means doing it right when no one is looking.” — <footer>Henry Ford</footer></blockquote>"
},
//.. MORE DATA ..//
{
  "q":"The important thing is not to stop questioning. Curiosity has its own reason for existing.",
  "a":"Albert Einstein",
  "h":"<blockquote>“The important thing is not to stop questioning. Curiosity has its own reason for existing.” — <footer>Albert Einstein</footer></blockquote>"
}
]

 Usage Limits and Attribution

Requests are restricted to 5 per 30 second period, an API key or registered IP is required for unlimited access and to enable Access-Control-Allow-Origin headers. We require that you show attribution with a link back to https://zenquotes.io/ when using the free version of this API.

Inspirational quotes provided by <a href="https://zenquotes.io/" target="_blank">ZenQuotes API</a>

Enjoy using our API? Consider subscribing to ZenQuotes.io for continued development and upgrades. Your support is appreciated!