TTechAPI

Famous quotes API: 100,000+ quotes with author and source

More than 100,000 quotes and proverbs from writers, thinkers, leaders and scientists, in English and Bangla: a random quote by category or author, the quote of the day, and search. Every quote comes with its author, work, year, source link and licence.

Quotes from Wikiquote and Wikisource (CC BY-SA 4.0) and Project Gutenberg; AI-written quotes are marked.

Get your API key

What you get

100,000+ quotes

Shakespeare, Mark Twain, Lincoln, Oscar Wilde, Tagore and thousands more, plus proverbs.

47 categories

Love, life, success, wisdom, friendship, happiness, courage, hope and more.

English and Bangla

More than 9,400 Bangla quotes: Tagore, Vivekananda, Begum Rokeya, Bengali proverbs.

Source and licence

Every quote has its author, work, year, a source link and its licence.

AI quotes marked

About 9,600 AI-written quotes carry type ai; exclude_ai=true leaves them out.

Answers in milliseconds

Every answer comes from memory, with no rate-limited upstream.

Who it is for

Apps and websites

A quote of the day widget or a random quote on every page load.

Apps and bots

Daily quotes for apps, widgets and Discord or Telegram bots.

Content and education

Search quotes by word, author or topic for articles and lessons.

Datasets and AI

Quotes with clean metadata for prompts and training sets.

How to use it

  1. Sign up for free and copy your API key from the TTech API dashboard.
  2. Send the key in the x-api-key header with every call.
  3. Call any endpoint below at https://api.ttechapi.com/v1/quotes plus its path, as in the examples.
EndpointRequiredReturnsCredits
GET /randomOne random quote; filters category, author, lang, exclude_ai1 credit
GET /todayThe quote of the day (UTC), the same for everyone1 credit
GET /searchqueryUp to 10 quotes holding every word, with total matches1 credit
GET /categoriesEvery category and how many quotes it has1 credit

Call it from code

cURL
curl "https://api.ttechapi.com/v1/quotes/random" \
  -H "x-api-key: YOUR_API_KEY"

Answers from the API have the headers x-credits-used and x-credits-remaining. When our gateway refuses a call (wrong key, no credits left, too many requests), the body has statusCode, error, message and requestId, and nothing is charged. A missing or wrong key gets HTTP 401.

Input

ParameterTypeWhat it does
categorystringOne name from /categories, e.g. love, life, success, wisdom, friendship
authorstringPart of a name, at least 2 characters: twain, tagore
langstringen (default) or bn (Bangla)
exclude_aitrueLeave out the AI-written quotes
querystringOn /search: words to find; whole words or word starts

Output

GET /random answers one quote in data:

FieldWhat it is
quote, authorThe quote and who said it
work, yearThe book, play or speech and its year, or null
typequote, proverb or ai
source, sourceUrl, licenseWhere it comes from and its licence
categoriesIts categories

Errors come in the body with HTTP 200, e.g. {"statusCode": 400, "error": "BAD_REQUEST", "message": "Unknown category: luv"}.

Example output
{
  "statusCode": 200,
  "data": {
    "id": "en006421",
    "quote": "Poetry is the record of the best and happiest moments of the happiest and best minds.",
    "author": "Percy Bysshe Shelley",
    "work": "A Defence of Poetry (1821)",
    "year": 1821,
    "language": "en",
    "type": "quote",
    "source": "Wikiquote",
    "sourceUrl": "https://en.wikiquote.org/wiki/Percy_Bysshe_Shelley",
    "license": "CC BY-SA 4.0",
    "categories": [
      "art",
      "mind"
    ]
  }
}

Pricing

One API key and one credit balance for every TTech API.

From 1 credit per call

Every endpoint of this API costs 1 credit.

300 free credits, no credit card

Given once to try every endpoint, valid for 1 month.

Plans from $14.99/month

Build, Grow and Scale, or a custom plan.

Use it with AI agents

Our MCP server gives your assistant 2 tools for this API: quotes_search, quotes_random. A tool call costs the same credits as the REST call. Pick your assistant:

Run this, then type /mcp in Claude Code and sign in to TTech.

Terminal
claude mcp add --transport http ttech https://mcp.ttechapi.com/mcp

Or install our Claude Code plugin from GitHub. It adds the same server and a YouTube research skill. Then type /mcp and sign in.

Terminal
claude plugin marketplace add ttechapi/claude-plugins
claude plugin install ttech@ttech

To skip the question before each tool call, add "mcp__ttech" to permissions.allow in .claude/settings.json.

More on MCP and every client: AI agents.

Brief for any LLM

Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /famous-quotes-api.md.

Good to know

  • Every call costs 1 credit, whatever its parameters.
  • Search returns up to 10 quotes per call; total gives the number of all matches.
  • Quotes from Wikiquote and Wikisource are CC BY-SA 4.0: credit "Wikiquote contributors" when you republish them.
  • The quote of the day is never AI-written.

FAQ

Are some quotes AI-written?

About 9,600 English quotes are. They are marked type ai and author AI-generated; exclude_ai=true leaves them out.

Can I republish the quotes?

Yes, with the licence each quote names: for CC BY-SA 4.0, credit "Wikiquote contributors" and keep the licence.

How much does a call cost?

Each call costs 1 credit. The Free plan gives 300 free credits once, valid for 1 month, with no credit card. Paid plans start at $14.99/month.

How fast can I call it?

Free allows 5 calls a second, Build 10, Grow 20 and Scale 50. Custom plans have their own limits.