Rapid API
Using Rapid API in Python
import requests
url = "https://random-math-problem.p.rapidapi.com/random-problem"
querystring = {"type":"html"}
headers = {
"X-RapidAPI-Key": "cd7cc895ddmshf60d83e19ae6edep1e28a3jsn7c5ab84381c7",
"X-RapidAPI-Host": "random-math-problem.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
print(response.json())
title = response.json().get('title')
problem = response.json().get('problem')
print("title: ")
print(title)
print("Problem: ")
print(problem)