# Getting color of individual LED with JSON

**URL:** <https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558>\
**Category:** Questions\
**Created:** [December 31, 2021, 6:15pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558 "2021-12-31T18:15:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bot\_0x00h](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@Bot\_0x00h](https://wled.discourse.group/u/Bot_0x00h)\
**Post date:** [December 31, 2021, 6:15pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/1 "2021-12-31T18:15:38Z")

</div>

Hello,  
How can I get a color of individual LED using JSON API? I have already looked at entire [JSON API - WLED Project](https://kno.wled.ge/interfaces/json-api/) page and only found how to set individual LED’s color. There is no “i” attribute in [http://wled-address/json](http://wled-address/json).

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [December 31, 2021, 7:17pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/2 "2021-12-31T19:17:30Z")

</div>

I don’t know if you can, realtime (I could be wrong).  
You could read segment definitions and parse it out, but that wouldn’t help you with effects that might be active.

If you imagine a solid Red strip with glitter active, any random LED could be White while the rest remain Red. I think you’d have a hard time getting that data from the API on demand.

There may be a way via sync data, but I’m dubious.  
What’s your application?

---

<div class="post-metadata">

**Author:** ![Bot\_0x00h](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@Bot\_0x00h](https://wled.discourse.group/u/Bot_0x00h)\
**Post date:** [January 1, 2022, 2:05pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/3 "2022-01-01T14:05:50Z")

</div>

I’m making my own control panel for WLED. I thought it would be cool to have virtual LEDs in it showing the state of real ones. If it’s not easy to make using API, I think it doesn’t have sense. For me it’s not a “must have” feature. Thanks.

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [January 1, 2022, 3:01pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/4 "2022-01-01T15:01:04Z")

</div>

Sounds a little like the “Peek” function of the onboard GUI?

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [January 1, 2022, 6:42pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/5 "2022-01-01T18:42:40Z")

</div>

And of course every time I dig into the code/docs I find I was less right than I thought (ie. wrong), check out: [WebSocket - WLED Project](https://kno.wled.ge/interfaces/websocket/)

Specifically:

> You can also request a live stream of the LED values (e.g. the “Peek” feature of WLED-UI) by sending `{"lv":true}` to the websocket.

That will give you snapshot of what’s happening…

---

<div class="post-metadata">

**Author:** ![Bot\_0x00h](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@Bot\_0x00h](https://wled.discourse.group/u/Bot_0x00h)\
**Post date:** [January 7, 2022, 10:17pm UTC](https://wled.discourse.group/t/getting-color-of-individual-led-with-json/4558/6 "2022-01-07T22:17:14Z")

</div>

Thank you, this is exacly what I was looking for.
