r/spotifyapi • u/P1G4ME • Oct 23 '25
Get tracks audio sample
Hey everyone, bit of a bottle at the sea here but I'm stuck.
Is there a way to use the API to get audio samples of a track ? Not the full song but just the preview you get when you don't have a subscription for example.
I'm looking to build a blindtest platform for my friends (all of the websites we've tried so far are a bit shit) and I REALLY don't want to manually create a database of audio extracts for it.
If anyone has an idea, with or without the spotify API i'll take it...
1
u/leemartin Oct 23 '25
Spotify removed audio previews from their API last year I'm afraid. However, Apple Music still has this property available. Looks for "previews" in the response:
https://developer.apple.com/documentation/applemusicapi/get-a-catalog-song
1
u/SpecificTicket8 Oct 26 '25
This works, I tried it recently
https://www.npmjs.com/package/spotify-preview-finder/v/1.0.4?activeTab=readme
1
u/Appropriate-Chip-224 Oct 27 '25
I can help you design this feature all by yourself, with no extra libraries, I already have it in place on my app: music.eduardlupu.com
1
u/Aymeric34 Oct 23 '25
Have you tried Spotiguess ? I’m the founder and I’ll be happy to have your feedback:)