The official Ultimate Debian Database only allows Debian project members to access it. Mattia Rizzolo and I co-maintain a mirror. Query and enjoy!
psql "postgresql://udd-mirror:udd-mirror@udd-mirror.debian.net/udd"
I wrote up its history recently: https://announce.asheesh.org/2020/11/the-ultimate-debian-dat...
More info about the service: https://udd-mirror.debian.net/