This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Export pulse ox data timeline

Is there anyway to export the detailed information that was inside of the sleep data? I would like to be able to export that information so that I can keep record. 

  • There is no direct export function available, but you can either save a screenshot, or the raw data in JSON format. If needed, the JSON output can be converted to CSV or Excel format for example with this online tool

    You get the raw JSON data by calling the following URL, where you need to replace the USER_ID with your true coded user id - in GC Web, click on your avatar in the upper right corner, in the address line of the browser, copy all the rest after "/modern/profile/", and paste it into the address below instead of the USER_ID. And of course, adjust the date as needed:

    https://connect.garmin.com/modern/proxy/wellness-service/wellness/dailySleepData/USER_ID?date=2020-04-07

    Edit: since the address is not visible full, I am adding it again in a different format below

    connect.garmin.com/modern/proxy/wellness-service/wellness/dailySleepData/USER_ID?date=2020-04-07

  • Wow - this is amazingly helpful! Thanks so much!!!!

  • when I try this I get the error message:

    message "HTTP 403 Forbidden"
    error

    "WebApplicationException"

    has this facility been blocked? It is so important to correctly understand the SP02 data!

  • Sorry sorted this!

    When I get the data where is the SP02 data?

  • When I get the data where is the SP02 data?

    I cannot tell you since I have no device with the PulseOx sensor, so cannot look it up for you. However, you can do it yourself - open DevTools of the browser, set it to the Network tab, load the page showing the PulseOx data in the main browser window, and then browse trhough the records shown on the DevTools Network tab, untill you find the one containing the data.

  • The above URL worked for me the very first time, then has been returning HTTP 402 responses.

    I see the request in the network tab (filter by "sleep") but using the same request URL again produced HTTP 402. I'm not sure how it worked the first time. 

    This is exactly the data I'm looking for though, an export button would be convenient.

  • You get a 402 because there's one magic header that Garmin wants to see (which probably indicates that it's an internal request). I'll post a script for this shortly (which you'll be able to use in the form of a "bookmarklet" or script-within-bookmark.)

  • Thanks, that would be fantastic. Is it related to Cross-Origin? That's something I've bumped into before but don't have the background knowledge to really know what's going on. 

  • It just needs the header "NK" to be set to a value of "NT" lol.

    Unfortunately the script I'm writing will require you to enter your username, as its part of the url (I would prefer to be able to fill this in automatically, but I don't know of a way to programmatically get the username).