import requests

url = "https://trivia-by-api-ninjas.p.rapidapi.com/v1/trivia"

querystring = {"category":"general","limit":"7"}

headers = {
	"X-RapidAPI-Key": "d205112de0msh0d4deda4e76f24fp1d3d7fjsn2c684c769088",
	"X-RapidAPI-Host": "trivia-by-api-ninjas.p.rapidapi.com"
}

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

print(response.text)
[{"category": "general", "question": "Zoophobia is the fear of ______", "answer": "Animals"}, {"category": "general", "question": "Pierre Augustine Caron de Baumarchais play what Opera based on it", "answer": "Barber Of Seville"}, {"category": "general", "question": "Hang on Sloopy' was the official rock song of which band", "answer": "Ohio"}, {"category": "general", "question": "When is turkey traditionally eaten in america", "answer": "Thanksgiving"}, {"category": "general", "question": "What was mozart's first name", "answer": "Wolfgang"}, {"category": "general", "question": "In the film 'titanic', who did leonardo dicaprio and kate winslet play", "answer": "Jack"}, {"category": "general", "question": "What was founded in the UK 1694 because of war with France", "answer": "Bank Of England"}]