You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
436 B
Python

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)