Skip to content

benhoneywill/stoic-quotes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Stoic Quotes

A simple app that displays random Stoic quotes from Seneca, Marcus Aurelius, and Epictetus.

stoic-quotes.com

Please feel free to make a pull request if you want to add your favourite Stoic quote to the app 🙂

Using the API

This app exposes a public API which you are free to use to fetch random Stoic quotes for use in your own applications.

Endpoints

Get a random Stoic quote

GET https://stoic-quotes.com/api/quote
Example JSON response
{
  "text": "All that exists is the seed of what will emerge from it.",
  "author": "Marcus Aurelius"
}

Get a list of random Stoic quotes

GET https://stoic-quotes.com/api/quotes

Optionally pass in a num param to change the number of quotes returned. num defaults to 10, and can not be higher than 100.

GET https://stoic-quotes.com/api/quotes?num=10
Example JSON response
[
  {
    "text": "All that exists is the seed of what will emerge from it.",
    "author": "Marcus Aurelius"
  },
  {
    "text": "If it doesn't harm your character, how can it harm your life?",
    "author": "Marcus Aurelius"
  }
]