If you're only interested in recording what happened (as evidence) an IP camera can run on PoE to a laptop or mini-pc on a UPS, and record for as long as you want, even in the case of a power outage if you include a UPS (an old laptop works well in this case - you can potentially just run the PoE switch/injector on the UPS and let the laptop run on its battery).
No internet connection required. No "service" to stop working. No "API" to become deprecated.