AirTags seem to be an incredibly useful way of creating a de-facto globally available location tracker, by taking advantage of the sheer number of iOS devices around.
I'd love to be able to obtain an AirTag and get location data from it (or more precisely from the Apple 'Find My' network) programmatically or in machine-readable form, though. Currently as I understand it the location is only available through the 'Find My' tool (digression: see this fascinating recent article illustrating that), which in effect means it's limited to what's plotted on a map. Can I get lat/long co-ordinates from this? Can I programmatically trigger the request for location? This would be a great way to (for example) plot everywhere I travel, by popping one in my bag and having a central server somewhere request my location periodically and log it. Real-time would be ideal, but even a history of locations would be good.
(Note: I wasn't sure if this question was better suited for here or StackOverflow. Happy if the community wants to move it).