Help Wizard

Step 1

NEXT STEP

Spotify API - Tracks Genre

Spotify API - Tracks Genre

Hi there guys!

 

I'm just trying to get all of the track genres of my own playlist, I know, the genres are saved under the album of the track. If I try to get a genre of the album (in which my track is in) I only get an empty array in JSON (see example below). Do Spotify not save the genres of the tracks, or what kind of reason does it have? Thanks in advance! Peace Bartek!

 

{"album_type" : "single", "artists" : [ { "external_urls" : { "spotify" : "https://open.spotify.com/artist/7ljL11SRgjkdqO8NqjJBVU" }, "href" : "https://api.spotify.com/v1/artists/7ljL11SRgjkdqO8NqjJBVU", "id" : "7ljL11SRgjkdqO8NqjJBVU", "name" : "Funkerman", "type" : "artist", "uri" : "spotify:artist:7ljL11SRgjkdqO8NqjJBVU" } ], "available_markets" : [ "AD", "AR", "AU", "BE", "BO", "BR", "CA", "CL", "CO", "CR", "CY", "DO", "EC", "EE", "ES", "FR", "GB", "GR", "GT", "HK", "HN", "IE", "IT", "LI", "LT", "LU", "LV", "MC", "MT", "MX", "MY", "NI", "NL", "NZ", "PA", "PE", "PH", "PT", "PY", "SG", "SV", "TR", "TW", "US", "UY" ], "copyrights" : [ { "text" : "2015 Be Yourself Catalogue B.V.", "type" : "C" }, { "text" : "2015 Can You Feel It B.V.", "type" : "P" } ], "external_ids" : { "upc" : "8715576157769" }, "external_urls" : { "spotify" : "https://open.spotify.com/album/3IcyzfyULphgLSPJ6HU0kN" }, "genres" : [ ], <<<< Here an example "href" : "https://api.spotify.com/v1/albums/3IcyzfyULphgLSPJ6HU0kN", "id" : "3IcyzfyULphgLSPJ6HU0kN", "images" : [ { "height" : 640, "url" : "https://i.scdn.co/image/76efeb707c741b08ac6f684151bf70c054f184ad", "width" : 640 }, { "height" : 300, "url" : "https://i.scdn.co/image/fb10d980b13802d00e2b5d17ff2f83778678f2e3", "width" : 300 }, { "height" : 64, "url" : "https://i.scdn.co/image/17e9350e1c50192e4d28263e6f60ad377bfad8b7", "width" : 64 } ],

 

[....]

Reply
1 Reply

.... great help! Thanks ................

Suggested posts