Skip to content

shadowoff09/lucifer-quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Licence Deployments Commits Repo Size Quotes Paypal Ko-Fi CodeFactor

Lucifer quotes API

A simple API to retrieve some quotes of Lucifer, shawty!

🌐 Website: https://lucifer-quotes.vercel.app

API Documentation

GET /api/quotes

Get a random quote in this format:

https://lucifer-quotes.vercel.app/api/quotes

[
  {
    "quote": "The Devil gets burned by fire. Could this be any more ironic?",
    "author": "Lucifer Morningstar"
  }
]

GET /api/quotes/{number}

Returns an array with {number} quotes e.g. GET /api/quotes/5.

https://lucifer-quotes.vercel.app/api/quotes/5

[
  {
    "quote": "You see, what I hate more than anything is a liar. A charlatan. Someone who doesn't believe in what they say.",
    "author": "Lucifer Morningstar"
  },
  {
    "quote": "I'm trying to say this from a constructive place. I can feel your negative vibrations from across the room, man.",
    "author": "Dan Espinoza"
  },
  {
    "quote": "My name is ASAC Schrader, and you can go f*ck yourself.",
    "author": "Chloe Decker"
  },
  {
    "quote": "Sometimes we need to lose something before we can understand its value.",
    "author": "Linda Martin"
  },
  {
    "quote": "You know, joining each other at crime scenes, bantering over dead bodies. And where does that leave you, right?",
    "author": "Ella Lopez"
  }
]

GET /api/{lang}/quotes

Returns a random quote in a specific language. Currently supported languages: en (English), fr (French).

If the language file doesn't exist, it falls back to English.

https://lucifer-quotes.vercel.app/api/fr/quotes

[
  {
    "quote": "Les gens n'arrivent pas brisés. Ils commencent avec passion et désir jusqu'à ce que quelque chose vienne les détromper de ces notions.",
    "author": "Lucifer Morningstar"
  }
]

GET /api/{lang}/quotes/{number}

Returns quotes in a specific language. Currently supported languages: en (English), fr (French).

If the language file doesn't exist, it falls back to English.

https://lucifer-quotes.vercel.app/api/fr/quotes/3

[
  {
    "quote": "Les gens n'arrivent pas brisés. Ils commencent avec passion et désir jusqu'à ce que quelque chose vienne les détromper de ces notions.",
    "author": "Lucifer Morningstar"
  },
  {
    "quote": "Les miracles ne sont pas mon truc, mais je suis sûr qu'on peut trouver un arrangement.",
    "author": "Lucifer Morningstar"
  },
  {
    "quote": "Un marché est un marché, surtout avec le Diable.",
    "author": "Lucifer Morningstar"
  }
]

Contributing

If you want to add some quotes, just add them in src/quotes.js file and do a pull request !

To add quotes in other languages, create a file src/quotes.{lang}.js (e.g., quotes.fr.js for French) with the same structure.

Donate

If you liked this project feel free to donate me for future awesome projects!

Authors

Other Versions





Made with ❤️ and Javascript

About

A simple API to retrieve some quotes of Lucifer, shawty !

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Contributors 7