Announcements

Looking for more information on the "primary_color" field

Solved!
Reply

Looking for more information on the "primary_color" field

Tefferon
Casual Listener

I've just started working with the API, and I noticed playlists have the following "primary_color" field. While I haven't launched a full investigation, cursory searches of this community, the API docs, and the internet at large and haven't found anything useful. From what I can gather this is a read-only field, but beyond that, I can't get an explanation of what this is for. 

 

Does anyone else know something about this? 

 

{'collaborative': False,
 'description': '',
 'external_urls': {'spotify': 'https://open.spotify.com/playlist/'},
 'href': '',
 'id': '',
 'images': [{'height': 640,
   'url': 'https://i.scdn.co/image/',
   'width': 640}],
 'name': 'uhhh got a flow for this?',
 'owner': {'display_name': '',
  'external_urls': {'spotify': 'https://open.spotify.com/user/'},
  'href': 'https://api.spotify.com/v1/users/',
  'id': '1222656872',
  'type': 'user',
  'uri': 'spotify:user:'},
 'primary_color': None,
 'public': False,
 'snapshot_id': '',
 'tracks': {'href': 'https://api.spotify.com/v1/playlists//tracks',
  'total': 1},
 'type': 'playlist',
 'uri': 'spotify:playlist:'}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution!

Re: Looking for more information on the "primary_color" field

_milena
Spotify
Spotify
Hi!

You can ignore this field. It's used internally only. 🙂

View solution in original post

5 Replies
Solution!

Re: Looking for more information on the "primary_color" field

_milena
Spotify
Spotify
Hi!

You can ignore this field. It's used internally only. 🙂

View solution in original post

Re: Looking for more information on the "primary_color" field

Tefferon
Casual Listener
Milena, thank you for your response,
Any hints for the curious, or is this a super-secret "cannot confirm nor deny the existence of the this field's feature" thing? 😋

Re: Looking for more information on the "primary_color" field

ObiSims
Casual Listener

I'm also totally interested as i've been building a few things using the API and being able to grab a primary colour like how you guys decide your gradients would be fantastic for dynamic UI

Re: Looking for more information on the "primary_color" field

Tefferon
Casual Listener

I've made a project that can dynamically grab a theme from an image, so it would work well with album art. What are you working on / whats your stack? 

 

Re: Looking for more information on the "primary_color" field

ObiSims
Casual Listener

Pardon didn't see the reply. Originally i was looking to make a custom macbook touchbar for spotify stuff, thought it could be cool to colour it based on current listening's artwork. built a draft ontop someone else's customiser on my github - real dodgily - but now the main thing i'm working on is this backend freelancer system in GAS to deal with admin stuff like paymentoptions, handling and tracking, logging when clients view invoices, cal reminders, personal project management and invoice generation kind of stuff.

 

With the invoice generation for my personal templates i incorporate a 'monthly liked songs' ( automated through shazam ) spotify playlist so i can communicate the stuff i was listening to whilst i was working on the client's project. Totally not for everybody but i work mostly creative ind stuff.

 

Because my ones are heavy on the stylisation the album covers breaks the pretty strict colour palette so it would be rad to detect the primary_color of the playlist artwork for that monthly playlist when it's being added and then replace my primary red with that ( maybe fallback to my red brand primary if it's certain colours like black or another one present on the invoice; white, dark purple )

THX-1171 [DOPPELGÄNGER DUDES PTY LTD] 2020_10_18.png
SUGGESTED POSTS