Quotes API logo
DataMAINTAINED1 token / call

Quotes API

Random and by-id quotes with authors across motivation, wisdom, love and humour

A collection of quotes across themes such as motivation, inspiration, love, wisdom and humour, each with its author. Pull a random quote or fetch one by id for apps, social posts and educational tools.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 1 token per call, so the free plan covers about 500 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "quoteId": 1002279,
  "quote": "I always want to talk about real life, not about material possessions. I've got to tell the story of the people for the people and not for celebrity or fame.",
  "keyWords": [
    "life",
    "fame",
    "real",
    "people",
    "celebrity"
  ],
  "relatedTopics": [
    "real life",
    "for the people",
    "material",
    "possessions",
    "story",
    "tell",
    "talk"
  ],
  "author": {
    "authorId": 25159,
    "name": "Slowthai",
    "country": "English",
    "profession": "Musician",
    "born": "December 18, 1994",
    "died": null
  }
}

Also available on

Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Quotes API

  • Show a quote of the day on a dashboard, lock screen or newsletter.

  • Generate social-media posts with a quote and its author.

  • Add inspirational content to onboarding, loading and empty states.

  • Build a quote collection app with stable ids for favourites.

Quotes API endpoints

Every endpoint with its parameters and a real example response.

GETGet Quote By Id

https://quotes.dataandapis.com/v1/quotes/{id}

Path parameters

ParameterExample
id10Required

Example request

curl
curl "https://quotes.dataandapis.com/v1/quotes/10" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.quotes.getQuoteById({ id: 10 });
Example response
{
  "quoteId": 10,
  "quote": "I always show loyalty to the people who gave me a chance from the get-go, and Cincinnati gave me that chance.",
  "keyWords": [
    "chance",
    "loyalty",
    "me",
    "people",
    "always"
  ],
  "relatedTopics": [
    "cincinnati",
    "gave",
    "show",
    "who"
  ],
  "author": {
    "authorId": 35,
    "name": "A. J. Green",
    "country": "American",
    "profession": "Football Player",
    "born": "July 31, 1988",
    "died": null
  }
}

GETGet Random Quote

https://quotes.dataandapis.com/v1/random

This endpoint takes no parameters.

Example request

curl
curl "https://quotes.dataandapis.com/v1/random" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.quotes.getRandomQuote();
Example response
{
  "quoteId": 1002279,
  "quote": "I always want to talk about real life, not about material possessions. I've got to tell the story of the people for the people and not for celebrity or fame.",
  "keyWords": [
    "life",
    "fame",
    "real",
    "people",
    "celebrity"
  ],
  "relatedTopics": [
    "about",
    "always",
    "for the people",
    "got",
    "material",
    "possessions",
    "real life",
    "story",
    "talk",
    "tell",
    "want"
  ],
  "author": {
    "authorId": 25159,
    "name": "Slowthai",
    "country": "English",
    "profession": "Musician",
…
Show full response
{
  "quoteId": 1002279,
  "quote": "I always want to talk about real life, not about material possessions. I've got to tell the story of the people for the people and not for celebrity or fame.",
  "keyWords": [
    "life",
    "fame",
    "real",
    "people",
    "celebrity"
  ],
  "relatedTopics": [
    "about",
    "always",
    "for the people",
    "got",
    "material",
    "possessions",
    "real life",
    "story",
    "talk",
    "tell",
    "want"
  ],
  "author": {
    "authorId": 25159,
    "name": "Slowthai",
    "country": "English",
    "profession": "Musician",
    "born": "December 18, 1994",
    "died": null
  }
}

Where the data comes from

Source
Curated quote collection with authors, loaded into the API's database.
Freshness
Static collection; extended with releases.

One install. Every endpoint.

Install the dataandapis package from npm and call this API with typed methods, or use any HTTP client in the language you prefer.

4languages
2endpoints
RESTarchitecture
1key for all APIs
  • Typed parameters and responses, with auto-completion in your editor
  • Works with import and require on Node.js 18 or later, with no dependencies
  • One key works across 125+ APIs on the platform

Read the npm package guide →

// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.quotes.getQuoteById({ id: 10 });

Quotes API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Path Parameters

id
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis({ apiKey: "YOUR_API_KEY" });

const data = await client.quotes.getQuoteById({ id: 10 });

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Quotes API

Ship Quotes API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.