import requests
url = "https://moz.com/api/v1/url_metrics"
querystring = {"url":"example.com"}
headers = {
"X-RapidAPI-Key": "5dfcc71254mshfcfd5832da06531p163ef1jsnac1ec757e6bb",
"X-RapidAPI-Host": "moz.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
import requests
url = “https://moz.com/api/v1/url_metrics”
querystring = {“url”:”example.com”}
headers = {
“X-RapidAPI-Key”: “5dfcc71254mshfcfd5832da06531p163ef1jsnac1ec757e6bb”,
“X-RapidAPI-Host”: “moz.com”
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())