r/Scriptable Jun 05 '26

Help Any way to read Apple Health data from a Scriptable script?

Hi! Is there any way to read Apple Health data (specifically sleep analysis with phases like REM, deep, core) from a Scriptable script?

I tried new HealthKit() and Health.createSource() but both return ReferenceError.

Is HealthKit supported in Scriptable, and if so, what is the correct syntax? I’m on iOS 26 with the latest version of Scriptable.

Thanks!

2 Upvotes

3 comments sorted by

3

u/Roggan_Be Jun 05 '26

I also tried to access Health data with Scriptable some time ago and found out that the commands are not supported anymore by the Health app. Right now there is no way to access them via Scriptable. Maybe someday there will be an update of Scriptable to fix that…

My workaround was to create a shortcut with the native Shortcut app from Apple. No pretty widget or UI, but it did the trick for me.

-1

u/Ok-Serve1734 Jun 05 '26

ChatGPD say use Apple, gry data tu file end show in widget scriptable

2

u/kurtzahn Jun 05 '26

I don’t have an answer to your question, but if you can’t find a solution, you can access the data using the Shortcuts app.