Skip to content

Getting the Data from the Flow Web Service

Paul Colby edited this page Jan 27, 2016 · 4 revisions

As an alternative approach...

If the activity in Polar Flow is marked as Public (which is not the default), anyone can view it without authentication. Here's an example:

https://flow.polar.com/training/analysis/16240876

The data for the activity is delivered as a JSON object from (in this case) the URL https://flow.polar.com/training/analysis/16240876/range/data

Here's what the object looks like (only the first few elements out of 10628 total are shown) The full file is available at https://dl.dropboxusercontent.com/u/15059190/flow16166506.json

There doesn't look to be any location data in the file, but the performance data is there.

{
  "16166506": {
    "sampleTypes": ["ALTITUDE","HEART_RATE","SPEED","TEMPERATURE","PACE"],
    "samples": [
      [ 1402217800000, null, [ 352.962677, 59, null, 30.200001, null ] ],
      [ 1402217801000, 0,    [ 352.962677, 59, 0,    30.200001, 0    ] ],
      [ 1402217802000, 0,    [ 352.962677, 59, 0,    30.200001, 0    ] ],
      /* ... */
    ],
    "isSportTypeSpeed": true
  }
}

Indeed, does look promising (for public activities at least).

Any idea what the second value in each array is? That is, the null, 0, 0 values after the timestamps?

Pity it does not include any location data... that's the part I'm most interested in exporting.


The flow.polar.com site now supports exporting GPX, TCX and CSV files for each activity.