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.

ZenQuotes.io

No API Key Required

The Zen Quotes API can be used free of charge, 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.

Documentation

Unlimited Requests

If you would like to enable Access-Control-Allow-Origin headers and obtain unlimited API requests, please contact support@zenquotes.io to have our staff whitelist your IP (most secure) or give you an API access key (less secure). A yearly subscription fee is required for unlimited requests.

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

2312997

API Requests


Quote of the Day

Mar 05, 2021

“Only by acceptance of the past, can you alter it.” —
T.S. Eliot


Documentation

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


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

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

https://zenquotes.io/?api=today&key=YOUR_KEY - Alternative GET requests format


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>