PoshPiHole
0.6.0
PowerShell module for interacting with the Pi-hole v6 API
Installation Options
Owners
Copyright
2025 Patrick Morris
Package Details
Author(s)
- Patrick Morris
Tags
Windows PiHole PowerShell Pi-Hole API
PSEditions
Dependencies
This module has no dependencies.
Release Notes
# 📅 Changelog
All notable changes to the **PoshPiHole** module will be documented in this file.
---
## [0.6.0] - 2025-08-11
### Added
* `Get-PiHoleDbHistory` – Retrieves activity graph data (long-term data) from Pi-hole (`GET /api/history/database`).
* `Get-PiHoleDbHistoryClients` – Retrieves per-client activity graph data (long-term data) from Pi-hole (`GET /api/history/database/clients`).
* `Get-PiHoleDbQueryTypes` – Retrieves query types data from the Pi-hole long-term database (`GET /api/stats/database/query_types`).
* `Get-PiHoleDbTopClients` – Retrieves top clients data from the Pi-hole long-term database (`GET /api/stats/database/top_clients`).
* `Get-PiHoleDbTopDomains` – Retrieves top domains data from the Pi-hole long-term database (`GET /api/stats/database/top_domains`).
* `Get-PiHoleDbUpstreams` – Retrieves metrics about Pi-hole's upstream destinations from the long-term database (`GET /api/stats/database/upstreams`).
---
## [0.5.0] - 2025-05-28
### Added
* `Get-PiHoleList` – Retrieves the configured adlists from Pi-hole (`GET /lists`).
* `Search-PiHoleDomain` – Search for domains in Pi-hole's lists (`GET /search/{domain}`).
* `Get-PiHoleHost` – Retrieves host information from Pi-hole (`GET /info/host`).
* `Get-PiHoleTeleporter` – Downloads a Pi-hole Teleporter backup as a .zip file (`GET /teleporter`).
---
## [0.4.0] - 2025-05-23
### Added
* `Get-PiHoleSessions` – Retrieves the current Pi-hole sessions (`GET /auth/sessions`).
* `Get-PiHoleClientHistory` – Retrieves per-client activity graph data (`GET /history/clients`).
---
## [0.3.0] - 2025-05-11
### Added
* `Get-PiHoleSystemInfo` – Retrieves detailed system information from Pi-hole (`GET /info/system`).
* `Get-PiHoleVersion` – Retrieves version information for Pi-hole and its components (`GET /info/version`).
### Fixed
* `Disconnect-PiHole` will now delete multiple IDs as expected.
---
## [0.2.2] - 2025-05-10
### Fixed
* `Disconnect-PiHole` will now delete multiple IDs as expected.
---
## [0.2.1] - 2025-04-30
### Fixed
* Resolved issues with `Enable-PiHoleBlocking` and `Disable-PiHoleBlocking` not properly managing sessions.
---
## [0.2.0] - 2025-04-10
### Added
* `Get-PiHoleStats` – Retrieves current Pi-hole usage and performance statistics (`GET /stats/summary`)
* `Get-PiHoleDomain` – Fetches domain lists from Pi-hole (`GET /domains`)
---
## [0.1.0] - 2025-04-01
### Initial Release
* Base module functionality for interacting with the Pi-hole v6 API.
* Implemented the following functions:
* `Get-PiHoleBlocking` (`GET /auth/sessions`)
* `Enable-PiHoleBlocking` (`POST /auth/sessions`)
* `Disable-PiHoleBlocking` (`POST /auth/sessions`)
* `Get-PiHoleHistory` (`GET /history`)
* `Get-PiHoleSummary` (`GET /stats/database/summary`)
---
> 📌 This changelog follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) principles.
FileList
- PoshPiHole.nuspec
- Public\Get-PiHoleDbHistory.ps1
- Public\Get-PiHoleDbQueryTypes.ps1
- Public\Get-PiHoleDbTopDomains.ps1
- Public\Get-PiHoleDomain.ps1
- Public\Get-PiHoleHost.ps1
- Public\Get-PiHoleSessions.ps1
- Public\Get-PiHoleSummary.ps1
- Public\Get-PiHoleTeleporter.ps1
- Public\Search-PiHoleDomain.ps1
- Tests\PoshPiHole.Tests.ps1
- CHANGELOG.md
- PoshPiHole.psm1
- Private\Connect-PiHole.ps1
- Public\Disable-PiHoleBlocking.ps1
- Public\Get-PiHoleBlocking.ps1
- Public\Get-PiHoleDbHistoryClients.ps1
- Public\Get-PiHoleDbTopClients.ps1
- Public\Get-PiHoleDbUpstreams.ps1
- Public\Get-PiHoleHistory.ps1
- Public\Get-PiHoleList.ps1
- Public\Get-PiHoleStats.ps1
- Public\Get-PiHoleSystemInfo.ps1
- Public\Get-PiHoleVersion.ps1
- Tests\Connect-PiHole.Tests.ps1
- LICENSE
- PoshPiHole.psd1
- README.md
- Private\Disconnect-PiHole.ps1
- Public\Enable-PiHoleBlocking.ps1
- Public\Get-PiHoleClientHistory.ps1