Query HealthKit data via REST API

user194076 picture user194076 · May 1, 2015 · Viewed 11.7k times · Source

Is it possible to get data from Healthkit the same way as you would query regular API (With user's consent) to store in my webapp?

Something like: healthkit.com/api/v1/user/GetWeight

If yes, where can I find a list of available methods? If not, are there any workarounds?

Answer

candu picture candu · Jan 29, 2016

You'll have to build:

  • your own REST API service to store and retrieve the desired data;
  • an iOS app that accesses the data on-device using the HealthKit SDK and POSTs it to your API.

Neither step is trivial. Good luck!