ZenQuotes

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 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.

4537

Entries

154

Key Figures

4313552

API Requests


Quote of the Day

May 17, 2021

“As mortals, we're ruled by conditions, not by ourselves.” —
Bodhidharma


 Quick Start Guide

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

Read the full documentation →

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/random - Generate a random quote on each request

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

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

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

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


Building an app?

You should be using 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 →

NEW! You might also like our "On This Day" API @ https://apizen.date/


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. Contact support@zenquotes.io to chat with our friendly dev team and get registered.

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!

Get ZenQuotes on your Start Page

Load the "Pure Zen" theme @ https://onstart.live/ and customize the way you like it.

Get ZenQuotes on your startpage @ onstart.live