I found an API that generates a random gratitude questions, which would be good to include in our final project because we have a gratitude log in our journal. We will probably use this :)

import requests

url = "https://gratitude-questions.p.rapidapi.com/question"

headers = {
	"X-RapidAPI-Key": "222daebd02msh197e0db183672fap17cc9djsn8a1f2f813e5b",
	"X-RapidAPI-Host": "gratitude-questions.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers)

print(response.text)

question = response.json().get('question')
print(question)
{"question":"What’s one thing I enjoyed about my job recently?"}
What’s one thing I enjoyed about my job recently?

Here is an inspiring quotes generator, which would also be cool to include in our journal because it's good to be inspired when you're journaling and it can also help with mental health.

import requests

url = "https://inspiring-quotes.p.rapidapi.com/random"

# querystring = {"author":"Albert"}

headers = {
	"X-RapidAPI-Key": "222daebd02msh197e0db183672fap17cc9djsn8a1f2f813e5b",
	"X-RapidAPI-Host": "inspiring-quotes.p.rapidapi.com"
}

# response = requests.request("GET", url, headers=headers, params=querystring)

response = requests.request("GET", url, headers=headers)


print(response.text)

author = response.json().get('author')
quote = response.json().get('quote')
print(author, 'once said, "'+ quote + '"')
{"author":"Henri Bergson","quote":"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly."}
Henri Bergson once said, "To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly."

This is a would you rather API :)

import requests

url = "https://would-you-rather.p.rapidapi.com/wyr/random"

headers = {
	"X-RapidAPI-Key": "222daebd02msh197e0db183672fap17cc9djsn8a1f2f813e5b",
	"X-RapidAPI-Host": "would-you-rather.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers)

question = response.json()[0].get('question')
print("Here is a would you rather question!")
print(question)
Here is a would you rather question!
Would you rather be smacked in the face with a fish or farted on?