import requests
url = "URL here"
payload = "pyload here"
headers = {
"content-type": "application/x-www-form-urlencoded",
"Accept-Encoding": "application/gzip",
"X-RapidAPI-Key": "api key",
"X-RapidAPI-Host": "google-translate1.p.rapidapi.com"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)