JuaniBattiston / Videogame-Quotes-API

A cool API for random videogame quotes
https://videogame-quotes-api.vercel.app
MIT License
3 stars 6 forks source link
hacktoberfest hacktoberfest-accepted

Videogame Quotes API

A cool API to retrieve random videogame quotes

import requests

request = requests.get("http://localhost:8000/quotes")
content = request.json()

print(content["quote"])  # 'FINISH HIM!'
print(content["game"])  # 'Mortal Kombat'

(Find more ideas in /examples!)

Testing the API endpoints

Videogame Quotes API is now being hosted! Check the docs and test the endpoints here.

Running the API locally

Note: Python 3.9 or higher is recommended.

  1. Clone the repository.
    $ git clone https://github.com/Batucho/Videogame-Quotes-API
  2. Install the dependencies.
    $ pip install -r requirements.txt
  3. Run the API!
    $ python src/__main__.py
  4. Check it out at localhost:8000 or 127.0.0.1:8000.

Feel free to contribute by opening an issue or pull request!

Disclaimer

This project is for educational purposes only. The maintainers and contributors of this project claim no ownership or credit for the quotes listed.

Sources

Quotes have been retrieved from the following sources:

- The Top 100 Video Game Quotes of All Time - Bryan Wirtz

Top 101 Inspirational Video Game Quotes All Young Gamers Should Read

Random Video Game Quote Generator

The 100 best video game quotes of all time (Up to page 5)