Python snippet for reference:
import requests
#music analysis endpoint
url = “https://sonoteller-ai1.p.rapidapi.com/music”
#lyrics analysis endpoint
url = “https://sonoteller-ai1.p.rapidapi.com/lyrics”
#sections analysis endpoint
url = “https://sonoteller-ai1.p.rapidapi.com/sections”
#music file public url: *** for mp3 it’s highly recommended to include artist and title ID3 metadata in the file. It will drive to better results ***
#High performance hosts recommended (like Amazon S3 or Google Cloud Storage)
#If you don’t have a host, you can use a Google Drive link (sharing settings as “Anyone with the link” to ensure public accessibility)
payload = {“file”: file_url}
headers = {
“content-type”: “application/json”,
“X-RapidAPI-Key”: “YOUR_RAPID_API_KEY”,
“X-RapidAPI-Host”: “sonoteller-ai1.p.rapidapi.com”
}
response = requests.request(“POST”, url, json=payload, headers=headers)
print(response.text)