Jonathan Hsu
Jonathan Hsu

Reputation: 23

Is it possible to get a list of tracks from the entire spotify library?

Is it possible to get a list of tracks from the entire spotify library?

I'm looking for something like:

library.tracks

but instead of getting just the tracks from the user's library, I want tracks from the whole spotify library (or at least all the songs available in their region).

Thanks for your help.

Edit: I'm trying to use the Spotify API to create an application that finds and plays a random song in the Spotify library.

Upvotes: 2

Views: 2318

Answers (1)

Kristofer Sommestad
Kristofer Sommestad

Reputation: 3061

There's no way of getting a list of all the 15+ million tracks in the library. But you could probably create some kind of random feature anyway:

  1. Randomize a character (e.g A-Z) or word (i.e. by using some kind of dictionary).
  2. Do a track/artist/album search in the Spotify library using your character/word and pick a random song from the search results.

Don't know how "random" you want it, but that's one way of doing it anyway.

Upvotes: 1

Related Questions