This is a simple API that returns a random quote from the book Omniscient Reader's Viewpoint.
Send a HTTP GET
request to https://orv-quote-api.uk.r.appspot.com
with one of the following endpoints:
/
- Basic information about the API./quote
- Returns a random quote, regardless of size./shortquote
- Returns a random quote that is less than 100 characters long./longquote
- Returns a random quote that is more than 100 characters long.Example usage in Python:
import requests
import json
# get json response from api
response = requests.get("https://orv-quote-api.uk.r.appspot.com/quote").json()
# print the quote
print(f"\"{response['quote']}\"\n - {response['author']}")
$ python example.py
"Get lost, Kim Dokja."
- Yoo Joonghyuk
To add new quotes to the API, either:
quote request
label with the quote and the person saying it/ main person in the scene.quotes
folder.@Marcus5408
@carmiscious
u/RedditMarcus_
To add new code, make a pull request with your changes.