Shazam

FREEMIUM
By Api Dojo | Updated a month ago | Music
Popularity

9.7 / 10

Latency

1,400ms

Service Level

100%

Back to All Discussions

Response is different from what the app returns?

avatar
laurencewood01
4 months ago

I was testing this on a few different songs to make sure it’s working like the app does, although it appears it’s not. For example with the song ‘1/2 Ticket - T.I’ Shazam consistently gives me the correct response trying many times, this api is jumping between multiple results of different artists on the same beat, rarely getting the correct one. Also why does this endpoint require a 5 second sample, the real api doesn’t use 5 seconds? It’s able to get songs in < 5 seconds whereas this API won’t give me a result unless I give 5 seconds exactly.

avatar
apidojo commented 4 months ago

Hello,

Why don’t you try the same samples with the official Shazam application and experience yourself? It must need the same duration to detect the song.

Regards.

avatar
laurencewood01 commented 4 months ago

I was trying the same song, although I noticed I was using technically 2 different versions of the same song… switched how I was testing the app and it seemed to behave more like the api finally, although it didn’t seem as inconsistent still. I tried changing sample length from 5s to 5040ms on the api and that seemed to improve consistency but I’m not totally sure.

I have to do some more testing to figure out if the issue I’m having is from samples of different parts of the song or if changing sample length is really affecting results…

avatar
apidojo commented 4 months ago

Hello,

You should try the portion at middle of the song for example, and the song will be easier to recognize.

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 2.8 - Votes: 13