# Add last blocked domain to summary\*

**URL:** <https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796>\
**Category:** Feature Requests\
**Created:** [April 9, 2022, 12:48pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796 "2022-04-09T12:48:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JapCLoN](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/japclon/32/29925_2.png) [@JapCLoN](https://discourse.pi-hole.net/u/JapCLoN)\
**Post date:** [April 9, 2022, 12:48pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/1 "2022-04-09T12:48:38Z")

</div>

Hello,

Would it be possible to get the last blocked domain added to the summary\* call? It should be part of that, since it is "summary" data.

But further more, adding it to summary\* call, means one less call to the API.  
Right now I have a script that query the API every second, that's 86400\*2=172800 calls a day which is way overkill, so by adding it to summary calls, means I can remove 86400 calls every day.

Please consider this!

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [April 9, 2022, 1:00pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/2 "2022-04-09T13:00:01Z")

</div>

> [@JapCLoN](#):
>
> Right now I have a script that query the API every second

Why?

---

<div class="post-metadata">

**Author:** ![JapCLoN](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/japclon/32/29925_2.png) [@JapCLoN](https://discourse.pi-hole.net/u/JapCLoN)\
**Post date:** [April 9, 2022, 1:03pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/3 "2022-04-09T13:03:35Z")

</div>

I have a local website, which is only accessible from my local network and I like seeing real time data on there which includes some data from pihole 🙂

//  
It's a nodejs server which query the API every second to update the data on my site.

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [April 9, 2022, 8:10pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/4 "2022-04-09T20:10:11Z")

</div>

This isn't implemented right now mainly because `recentBlocked` requires authentication (it returns a domain name) while `summary(Raw)` doesn't.

---

<div class="post-metadata">

**Author:** ![JapCLoN](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/japclon/32/29925_2.png) [@JapCLoN](https://discourse.pi-hole.net/u/JapCLoN)\
**Post date:** [April 9, 2022, 10:12pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/5 "2022-04-09T22:12:34Z")

</div>

ah okay yes, that I can understand, didn't think of that since there is no auth what so ever on mine since it's behind secure network. But I can understand the difference, I'll see if I can do a work around for my setup.

Thanks for answer 🙂

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [October 6, 2022, 10:13pm UTC](https://discourse.pi-hole.net/t/add-last-blocked-domain-to-summary/54796/6 "2022-10-06T22:13:20Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
