I am using Pi Hole for a long time.
I've noticed that there are no good / complete / up-to-date API integration module for python.
So I've created one.
This is my first version of the API (called APiHole), and you all welcome to implement, play and comment.
Be aware of the upcoming Pi-hole v6.0 which is almost feature complete and will likely enter a public beta soon (to be understood as in: the next few months).
You can find the documentation of the altogether new API here: