Quotable API
Free, no-key API of famous quotes, searchable by author and tag.
What it does
Quotable is a free, open-source API of famous quotations: fetch a random quote, filter by author or tag (wisdom, technology, motivational…), search full text, and list authors with bios and quote counts.
Base URL
Authentication
None. /random, /quotes?tags=wisdom&limit=5, /quotes/random?tags=technology, /search/quotes?query=, /authors?slug=.
Code examples
curl -s "https://api.quotable.io/random?maxLength=120&tags=motivational"
import requests
r = requests.get("https://api.quotable.io/quotes", params={
"author": "Marcus Aurelius", "limit": 3}, timeout=10, verify=True)
for q in r.json()["results"]:
print(f'"{q["content"]}" - {q["author"]}')Rate limits & quotas
The API is free with light rate limiting (a few requests/second). Reliability caveat: the hosted api.quotable.io instance has had TLS-certificate and downtime problems — for anything important, self-host (the project is open source and easy to run) or cache a local copy of the quote set.
Key response fields
| _id | Quote id |
| content | The quotation text |
| author / authorSlug | Attributed author and its slug |
| tags[] | Topic tags |
| length | Character count — useful with minLength/maxLength filters |
Common errors
| SSL / certificate error | The public host’s cert has lapsed before — self-host or pin a known-good mirror. |
| 404 | Unknown quote id or author slug. |
| (empty results) | No quotes match the tag/author/length filters — relax them. |
When to use it (and alternatives)
Fine for a quote-of-the-day widget, motivational banners or a writing prompt generator — if you self-host or cache. For a hosted alternative with attribution requirements, ZenQuotes; for very short ‘wisdom’ lines, Advice Slip.
FAQ
Is Quotable down?
The hosted instance has been intermittently unreachable and has had certificate issues. The codebase is fine — clone and run it (it ships with the full dataset), or cache the quotes you need.
How do I get quotes on one topic?
?tags=technology (single) or ?tags=technology,famous-quotes (comma = OR, pipe = AND). /tags lists valid tags and counts.
Can I filter by length?
Yes — minLength and maxLength (characters), handy for fitting quotes into a fixed UI space.
New to APIs?
Short guides for working with this API — and any other.