This version is deprecated and will be removed in the future, please use v2 instead.

BasicQuotes

Quotes

These endpoints allow you to retrieve all quotes, a single quote by its id, or a random quote. The response will be an array of JSON objects if you request all quotes, or a single JSON object if you request a single quote or a random quote.

The Quote model

PropTypeDefault
id
integer
-
content
string
-
author
string
-
tags
Array<string>
-
authorId
string
-
authorSlug
string
-
length
integer
-

All quotes

GET/quotes

Retrieve all quotes.

Response
[
  {
    "id": 1,
    "content": "The Superior Man is aware of Righteousness, the inferior man is aware of advantage.",
    "author": "Confucius",
    "tags": ["famous-quotes"],
    "authorId": "ropvZKOXYhLr",
    "authorSlug": "confucius",
    "length": 83
  },
  {
    "id": 2,
    "content": "America's freedom of religion, and freedom from religion, offers every wisdom tradition an opportunity to address our soul-deep needs: Christianity, Judaism, Islam, Buddhism, Hinduism, secular humanism, agnosticism and atheism among others.",
    "author": "Parker Palmer",
    "tags": ["wisdom"],
    "authorId": "XPDojD6THK",
    "authorSlug": "parker-palmer",
    "length": 240
  }
  // ...
]

Single quote

GET/quotes/<id>

Retrieve a single quote by its id.

Response
{
  "id": 1,
  "content": "The Superior Man is aware of Righteousness, the inferior man is aware of advantage.",
  "author": "Confucius",
  "tags": ["famous-quotes"],
  "authorId": "ropvZKOXYhLr",
  "authorSlug": "confucius",
  "length": 83
}

Random quote

GET/quotes/random

Retrieve a random quote.

Response
{
  "id": 88,
  "content": "Keep yourself to the sunshine and you cannot see the shadow.",
  "author": "Helen Keller",
  "tags": ["famous-quotes"],
  "authorId": "pYjZMId1ilhK",
  "authorSlug": "helen-keller",
  "length": 60
}