How to read sleep duration goal and sleep schedule

Hello everyone,

I am in the process of building an app that gives the user more statistical information about their sleep, and I would like to access the sleep duration goal and the sleep schedule that the user can set in the Health app.

Is it possible to access this information and if so, how do I do that? You are welcome to point me to the specific documentation, I just can't find anything about this in the documentation.

Have a nice day,

Simon

Replies

This is not accessible via API and is only editable and viewable in Health app on phone and Sleep app on watch. It'd be useful to file a feedback report explaining how this data might be helpful for your app as API.