API Directory › 📚 Data, Text & Words › Quotable
No authHTTPSCORS

Quotable API

Free, no-key API of famous quotes, searchable by author and tag.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Quotable docs ↗

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

https://api.quotable.io

Authentication

None. /random, /quotes?tags=wisdom&limit=5, /quotes/random?tags=technology, /search/quotes?query=, /authors?slug=.

Code examples

curl
curl -s "https://api.quotable.io/random?maxLength=120&tags=motivational"
Python
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

_idQuote id
contentThe quotation text
author / authorSlugAttributed author and its slug
tags[]Topic tags
lengthCharacter count — useful with minLength/maxLength filters

Common errors

SSL / certificate errorThe public host’s cert has lapsed before — self-host or pin a known-good mirror.
404Unknown 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Word CounterJSON Formatter

Related Data, Text & Words APIs

← Back

More Data, Text & Words APIs · All 196 APIs