Thanks @balala , after few testing i noticed something different between the two ".json" files from yesterday:
from xxx/admin/api.php (which won't work and give error: "RegExp matching error (-1)")from xxx/admin/api.php?summary (this one work) which is the same link i pulled .json file while making this post yesterday but i didn't bother to test it
(my bad):Pihole API documentation (old 2017)
https://discourse.pi-hole.net/t/pi-hole-api/1863
![Thumbs Up :thumbup:]()
from xxx/admin/api.php (which won't work and give error: "RegExp matching error (-1)")
Code:
{"domains_being_blocked":911582,"dns_queries_today":28479,"ads_blocked_today":3772,"ads_percentage_today":13.244847,"unique_domains":8707,"queries_forwarded":18472,"queries_cached":6176,"clients_ever_seen":22,"unique_clients":10,"dns_queries_all_types":28479,"reply_UNKNOWN":2344,"reply_NODATA":2395,"reply_NXDOMAIN":3079,"reply_CNAME":9569,"reply_IP":10501,"reply_DOMAIN":129,"reply_RRNAME":11,"reply_SERVFAIL":0,"reply_REFUSED":0,"reply_NOTIMP":0,"reply_OTHER":0,"reply_DNSSEC":11,"reply_NONE":0,"reply_BLOB":440,"dns_queries_all_replies":28479,"privacy_level":0,"status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1733717412,"relative":{"days":1,"hours":7,"minutes":7}}}
![Big Grin :D](http://forum.rainmeter.net/images/smilies/ag.gif)
Code:
{"domains_being_blocked":"911,582","dns_queries_today":"28,260","ads_blocked_today":"3,749","ads_percentage_today":"13.3","unique_domains":"8,708","queries_forwarded":"18,311","queries_cached":"6,141","clients_ever_seen":"22","unique_clients":"10","dns_queries_all_types":"28,260","reply_UNKNOWN":"2,312","reply_NODATA":"2,386","reply_NXDOMAIN":"3,067","reply_CNAME":"9,457","reply_IP":"10,452","reply_DOMAIN":"129","reply_RRNAME":"11","reply_SERVFAIL":"0","reply_REFUSED":"0","reply_NOTIMP":"0","reply_OTHER":"0","reply_DNSSEC":"11","reply_NONE":"0","reply_BLOB":"435","dns_queries_all_replies":"28,260","privacy_level":"0","status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1733717412,"relative":{"days":1,"hours":7,"minutes":8}}}
https://discourse.pi-hole.net/t/pi-hole-api/1863
summaryRaw
Gives statistics in raw format (no number formatting applied)
No authorization necessary
thank you all again for the helpsummary (default if no parameters are given)
Gives statistics in formatted style
No authorization necessary
![Thumbs Up :thumbup:](http://forum.rainmeter.net/images/smilies/ay.gif)
Statistics: Posted by develo — Today, 11:56 am