import requests url = "https://shazam.p.rapidapi.com/songs/detect"; payload = "Generate one on your own for testing" headers = { 'content-type': "application/xml", 'x-rapidapi-key': "bda652d38cmsh3e7190de8cc5555p1560bajsn491e447f52d3", 'x-rapidapi-host': "shazam.p.rapidapi.com" } response = requests.request("POST", url, data=payload, headers=headers) print(response.text)