I use PoE extractors to power a few different devices in my house, including RPis and some non-PoE switches. It's ridiculously easy to use them, but you generally need to know the voltage you want ahead of time.
I got some POE adapters for my Google WiFi points so I can place them around the house and not mess with an extra power cable. Works great. You can get them on Amazon with various outputs (USB, USB-C, barrel connectors of various types).
Holy moly, didnt know these things existed :O and fairly cheap as well, always though PoE a bit of useless since most devices dont support it and it was (is?) quite dangerous.