Comment by kovek

2 days ago

This is great! I am really interested in trying this out. Also, I am wondering, are there solutions similar to this but on MacOS?

For retrieving Mac OS screen time programatically? Not that I'm aware of.

In any Apple device, In settings -> Screen Time there's an option for "share across devices". If that is turned on, all devices will report your cumulative totals. So if you're interested in retrieving your screen time from all your devices, you can turn that on and then your iPhone will report everything, which you could retrieve with this API. But you wouldn't be able to differentiate where the screen time came from.