import requests

url = "https://tarot-cards1.p.rapidapi.com/tarot/"

querystring = {"minor":"2","major":"2"}

headers = {
	"x-rapidapi-key": "915784f37bmsh01add6a88639e60p15c4aajsnbaee391c4ef7",
	"x-rapidapi-host": "tarot-cards1.p.rapidapi.com"
}

try:
	response = requests.get(url, headers=headers, params=querystring, timeout=10)
	response.raise_for_status()
	print(response.json())
except requests.RequestException as e:
	print(f"Request failed: {e}")