SONOTELLER.AI

FREEMIUM
By SONOTELLER | Updated a month ago | Music
Popularity

9.1 / 10

Latency

41,013ms

Service Level

96%

Health Check

100%

Back to All Tutorials (1)

How to make calls to SONOTELLER API

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)

file_url = “https://storage.googleapis.com/musikame-files/thefatrat-mayday-feat-laura-brehm-lyriclyrics-videocopyright-free-music.mp3

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)