# Runtime Summary API

**URL:** <https://community.beestat.io/t/runtime-summary-api/1561>\
**Category:** Feedback & Discussion\
**Created:** [November 17, 2025, 2:03am UTC](https://community.beestat.io/t/runtime-summary-api/1561 "2025-11-17T02:03:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgardner](https://community.beestat.io/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@bgardner](https://community.beestat.io/u/bgardner)\
**Post date:** [November 17, 2025, 2:03am UTC](https://community.beestat.io/t/runtime-summary-api/1561/1 "2025-11-17T02:03:42Z")

</div>

I’m using the API to get the runtime summary but I don’t understand what the runtime\_thermostat\_summary\_id is. It seems I have to determine that value first before I can drill down to get detailed info. Is that correct? I’m using TCL and I convert the JSON to a DICT and when I check the data key I get the entire remainder of the JSON when I just want the id so I can drill down to get just the data I want. Does this make sense?

Any recommendations?

Thanks,

Bob

---

<div class="post-metadata">

**Author:** ![ziebelje](https://community.beestat.io/user_avatar/community.beestat.io/ziebelje/32/633_2.png) [@ziebelje](https://community.beestat.io/u/ziebelje)\
**Post date:** [November 18, 2025, 11:38am UTC](https://community.beestat.io/t/runtime-summary-api/1561/2 "2025-11-18T11:38:01Z")

</div>

You don’t actually need the runtime\_thermostat\_summary\_id for anything. That’s just a unique ID for that specific row in my database. Beestat typically returns data in objects with the ID pointing at the data.

I believe in your cases you just want to use dict values to turn that object into an array you could iterate over. That should throw away those IDs.

---

<div class="post-metadata">

**Author:** ![bgardner](https://community.beestat.io/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@bgardner](https://community.beestat.io/u/bgardner)\
**Post date:** [November 19, 2025, 1:31am UTC](https://community.beestat.io/t/runtime-summary-api/1561/3 "2025-11-19T01:31:03Z")

</div>

Hi Jon,

So in TCL, after converting the returned data to a dict, I would normally have to use the following to get the date:

set hpdate [dict get $api data $therm\_id date]

where $api is the dict created from the JSON returned from my request, data is the key value, and $therm\_id is the ID. If I just use:

set hpdate [dict get $api date] without drilling down I get an error.

I can get the therm\_id by using a string command to get the value from the $api variable like this:

set therm\_id [string range $api 19 26] but that doesn’t seem like good practice.

Maybe I need to check in with some TCL folks who are way more knowledgeable than me.

Thanks,

Bob

---

<div class="post-metadata">

**Author:** ![ziebelje](https://community.beestat.io/user_avatar/community.beestat.io/ziebelje/32/633_2.png) [@ziebelje](https://community.beestat.io/u/ziebelje)\
**Post date:** [November 20, 2025, 11:39am UTC](https://community.beestat.io/t/runtime-summary-api/1561/4 "2025-11-20T11:39:54Z")

</div>

I’m not too familiar with TCL, but one of the following might work.

Normally you would want to loop over the records; something like this:

```auto
set records [dict get $api data]

foreach therm_id [dict keys $records] {
    set rec_data [dict get $records $therm_id]
    set hpdate [dict get $rec_data date]

    # do whatever you need with $hpdate here
}

```

If you just care about the first record, you could do this:

```auto
set records [dict get $api data]
set therm_id [lindex [dict keys $records] 0]
set hpdate [dict get $records $therm_id date]

```

---

<div class="post-metadata">

**Author:** ![bgardner](https://community.beestat.io/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@bgardner](https://community.beestat.io/u/bgardner)\
**Post date:** [November 20, 2025, 6:53pm UTC](https://community.beestat.io/t/runtime-summary-api/1561/5 "2025-11-20T18:53:15Z")

</div>

Thanks Jon, I’ll try these ideas and let you know how I make out.

Bob

---

<div class="post-metadata">

**Author:** ![bgardner](https://community.beestat.io/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@bgardner](https://community.beestat.io/u/bgardner)\
**Post date:** [November 21, 2025, 5:08am UTC](https://community.beestat.io/t/runtime-summary-api/1561/6 "2025-11-21T05:08:15Z")

</div>

Jon,

The second method worked perfectly and I am now able to access any or all of the items in the summary.

Thanks for the help - greatly appreciated. I definitely appreciate Beestat.

Bob
