# Update webhook to send colours used by Plexamp

**URL:** <https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142>\
**Category:** Feature Suggestions\
**Tags:** plexamp\
**Created:** [April 8, 2022, 10:58pm UTC](https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142 "2022-04-08T22:58:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FM1337](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fm1337/32/260762_2.png) [@FM1337](https://forums.plex.tv/u/FM1337)\
**Post date:** [April 8, 2022, 10:58pm UTC](https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142/1 "2022-04-08T22:58:37Z")

</div>

I’m loving plexamp, it’s one of the best music players I have used and it’s performance is perfect. I recently had an idea where I want to sync my room’s smart bulb colours to match the song’s album art colours, and I attempted to write an application that extracts the dominate colours from the image, but for some reason they never really match the gradient that plexamp does.

My suggestion is to have plexamp (or the plex server if possible) send the colours used by plexamp for the background for the current song that is playing.

I understand this is an unusual request, but it would be awesome to have.

---

<div class="post-metadata">

**Author:** ![SwiftPanda16](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/swiftpanda16/32/81839_2.png) [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)\
**Post date:** [April 9, 2022, 3:21am UTC](https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142/2 "2022-04-09T03:21:14Z")

</div>

Plexamp uses [BlurHash](https://blurha.sh/) for the colours.

You can query the server for the BlurHash value for the colours.

```auto
http://IP-ADDRESS:32400/library/metadata/<ratingKey>?includeFields=thumbBlurHash,artBlurHash&X-Plex-Token=<YOUR_TOKEN>

```

Which will return something like

```auto
thumbBlurHash="TLCOIA=xs+}ts,S1EMI;Ne10I@j]"
artBlurHash="LmH]n4^MoIb0}pxWSNR+sRWXWrWV"

```

Then you decode it into the colours using the BlurHash library.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [April 10, 2022, 10:49am UTC](https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142/3 "2022-04-10T10:49:11Z")

</div>

I take it SwiftPanda16’s response covers what you’ve been asking for?

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [April 20, 2022, 8:22pm UTC](https://forums.plex.tv/t/update-webhook-to-send-colours-used-by-plexamp/787142/4 "2022-04-20T20:22:28Z")

</div>

2022 clean-up: considered implemented (while not part of the webhooks payload, the information can be derived via API lookups).
