@jamesog I think I've worked on writing something similar at one point, but it's no longer relevant for me after we moved to a house that doesn't have a Nest.
Does it still require you to sign up for a developer account and pay a nominal fee for the access?

@Tenzer It does; but I got a Starling Home Hub [1] to bridge Nest over to Apple Home, and the hub exposes an API to access the data.

[1] https://www.starlinghome.io/