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.
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
- Sign up for free and copy your API key from the TTech API dashboard.
-
Send the key in the
x-api-keyheader with every call. -
Call any endpoint below at
https://api.ttechapi.com/v1/quotesplus its path, as in the examples.
| Endpoint | Required | Returns | Credits |
|---|---|---|---|
GET /random | One random quote; filters category, author, lang, exclude_ai | 1 credit | |
GET /today | The quote of the day (UTC), the same for everyone | 1 credit | |
GET /search | query | Up to 10 quotes holding every word, with total matches | 1 credit |
GET /categories | Every category and how many quotes it has | 1 credit |
Call it from code
curl "https://api.ttechapi.com/v1/quotes/random" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://api.ttechapi.com/v1/quotes/random', {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const data = await res.json();import requests
res = requests.get(
"https://api.ttechapi.com/v1/quotes/random",
headers={"x-api-key": "YOUR_API_KEY"},
)
print(res.json())<?php
$ch = curl_init('https://api.ttechapi.com/v1/quotes/random');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest(http.MethodGet, "https://api.ttechapi.com/v1/quotes/random", nil)
if err != nil {
panic(err)
}
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(string(data))
}
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
| Parameter | Type | What it does |
|---|---|---|
category | string | One name from /categories, e.g. love, life, success, wisdom, friendship |
author | string | Part of a name, at least 2 characters: twain, tagore |
lang | string | en (default) or bn (Bangla) |
exclude_ai | true | Leave out the AI-written quotes |
query | string | On /search: words to find; whole words or word starts |
Output
GET /random answers one quote in data:
| Field | What it is |
|---|---|
quote, author | The quote and who said it |
work, year | The book, play or speech and its year, or null |
type | quote, proverb or ai |
source, sourceUrl, license | Where it comes from and its licence |
categories | Its categories |
Errors come in the body with HTTP 200, e.g. {"statusCode": 400, "error": "BAD_REQUEST", "message": "Unknown category: luv"}.
{
"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.
claude mcp add --transport http ttech https://mcp.ttechapi.com/mcpOr install our Claude Code plugin from GitHub. It adds the same server and a YouTube research skill. Then type /mcp and sign in.
claude plugin marketplace add ttechapi/claude-plugins
claude plugin install ttech@ttechTo skip the question before each tool call, add "mcp__ttech" to permissions.allow in .claude/settings.json.
- In claude.ai or Claude Desktop, open Customize > Connectors, select + Add and Add custom connector.
- Paste this URL and continue:
https://mcp.ttechapi.com/mcp- Select Connect and sign in with your TTech account.
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Then open Cursor's MCP settings and connect TTech to sign in.
{
"mcpServers": {
"ttech": {
"url": "https://mcp.ttechapi.com/mcp"
}
}
}Add the server, then sign in through the browser.
codex mcp add ttech --url https://mcp.ttechapi.com/mcp
codex mcp login ttech- In ChatGPT on the web, open Plugins, select + and Add custom MCP server (on plans that allow custom MCP servers).
- Paste this URL and choose OAuth:
https://mcp.ttechapi.com/mcp- Sign in with your TTech account and review the tools.
Add this to .vscode/mcp.json, then start the server and sign in.
{
"servers": {
"ttech": {
"type": "http",
"url": "https://mcp.ttechapi.com/mcp"
}
}
}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.