A free fan-made API to retrieve quotes from the talented developers at Valve and from their groundbreaking video games!
Note: This repository currently doesn't contain the sources and configuration of the Nginx server. You can visit the linked GitHub repository to see how to set up an Nginx server in combination with Flask, Gunicorn and Docker.
Website and demo: https://valvequotes.xyz
Production host: https://api.valvequotes.xyz
GET /v1/quotes/
Get a random quote in JSON format:
[
{
"quote": "You're a beautiful person with a charming personality",
"author": "Gabe Newell, CEO Valve"
}
]
GET /v1/quotes/<INT>
Get multiple quotes in JSON format:
[
{
"quote": "Fundamentally, [software] piracy is a service problem",
"author": "Gabe Newell, CEO Valve"
},
{
"quote": "Zoom times are awful for pitching.",
"author": "Erik Wolpaw, Valve writer"
},
{
"quote": "You're a beautiful person with a charming personality",
"author": "Gabe Newell, CEO Valve"
}
]
If you want to submit a quote, you can do so via this GitHub repository. Fork this project and add your quote to the mysql/quotes.csv file. Now create a pull request. Voilà!
Inspired by Breaking Bad quotes API.
Valve quotes API is a hobby project and is not affiliated with Valve Corporation.