{"id":106771,"date":"2021-05-24T15:21:27","date_gmt":"2021-05-24T06:21:27","guid":{"rendered":"https:\/\/support.questetra.com\/?p=106771"},"modified":"2026-04-27T17:12:52","modified_gmt":"2026-04-27T08:12:52","slug":"google-fit-fitnessdata-get-steps-2021","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/developer-blog\/google-fit-fitnessdata-get-steps-2021\/","title":{"rendered":"Google Fit #FitnessData: Get Steps"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-soft\" id=\"\" style=\"border-color:#cc66cc;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#ff99ff;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">Google Fit: FitnessData, Get Steps<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li><span class=\"fa-li\"><i class=\"fal fa-badge-check fa-lg\"><\/i><\/span> U: Select HTTP_Authz Setting<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A1: Set Start Datetime of Duration (eg &#8220;2021-12-31 09:00&#8221;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A2: Set End Datetime of Duration (eg &#8220;2021-12-31 17:00&#8221;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> B1: Select NUMERIC DATA for Step Count (update)<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> B2: Select NUMERIC DATA for Distance (update)<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting     = configs.get      ( &quot;AuthzConfU&quot; );   \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strDurationStart    = configs.get      ( &quot;StrConfA1&quot; );    \/\/\/ REQUIRED\n  if( strDurationStart  === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A1: DurationStart} is empty \\n&quot; );\n  }\nconst strDurationEnd      = configs.get      ( &quot;StrConfA2&quot; );    \/\/\/ REQUIRED\n  if( strDurationEnd    === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A2: DurationEnd} is empty \\n&quot; );\n  }\nconst numPocketStep       = configs.getObject( &quot;SelectConfB1&quot; ); \/\/\/ REQUIRED\nconst numPocketDistance   = configs.getObject( &quot;SelectConfB2&quot; ); \/\/ NotRequired\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\/\/\/ Times in milliseconds since epoch\n\/\/\/ https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Date\/getTime\nlet dateDurationStart = toJsDate( strDurationStart );\nlet numDurationStart  = dateDurationStart.getTime();\nlet dateDurationEnd   = toJsDate( strDurationEnd );\nlet numDurationEnd    = dateDurationEnd.getTime();\n\n\/\/\/ Get StepCounts (and Distance)\n\/\/\/ Google Fit API\n\/\/\/ https:\/\/developers.google.com\/fit\/rest\/v1\/reference\/users\/dataset\/aggregate\nlet request1Obj = {};\n    request1Obj.aggregateBy = [];\n    request1Obj.aggregateBy[0] = {};\n    request1Obj.aggregateBy[0].dataTypeName = &quot;com.google.step_count.delta&quot;;\n    if( numPocketDistance !== null ){\n      request1Obj.aggregateBy[1] = {};\n      request1Obj.aggregateBy[1].dataTypeName = &quot;com.google.distance.delta&quot;;\n    }\n    request1Obj.endTimeMillis   = numDurationEnd;\n    request1Obj.startTimeMillis = numDurationStart;\n    request1Obj.bucketByTime = {};\n    request1Obj.bucketByTime.durationMillis = numDurationEnd - numDurationStart;\nlet request1Uri = &quot;https:\/\/www.googleapis.com\/fitness\/v1\/users\/me\/dataset:aggregate&quot;;\nlet request1    = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1    = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    \/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#HttpRequestWrapper\n    request1    = request1.body( JSON.stringify( request1Obj ), &quot;application\/json&quot; );\n\/\/ request1, try\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;;\nconst response1Body = response1.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\/\/ response1, parse\n\/* \nengine.log( response1Body ); \/\/ debug\n{\n  &quot;bucket&quot;: [\n    {\n      &quot;startTimeMillis&quot;: &quot;1621436400000&quot;,\n      &quot;endTimeMillis&quot;: &quot;1621522800000&quot;,\n      &quot;dataset&quot;: [\n        {\n          &quot;dataSourceId&quot;: &quot;derived:com.google.step_count.delta:com.google.android.gms:aggregated&quot;,\n          &quot;point&quot;: [\n            {\n              &quot;startTimeNanos&quot;: &quot;1621456113977325463&quot;,\n              &quot;endTimeNanos&quot;: &quot;1621488145246312108&quot;,\n              &quot;dataTypeName&quot;: &quot;com.google.step_count.delta&quot;,\n              &quot;originDataSourceId&quot;: &quot;raw:com.google.step_count.cumulative:Sony:SO-41A:cdfccXXXXX8b674Y:pedometer  Non-wakeup&quot;,\n              &quot;value&quot;: [\n                {\n                  &quot;intVal&quot;: 9987,\n                  &quot;mapVal&quot;: []\n                }\n              ]\n            }\n          ]\n        },\n        {\n          &quot;dataSourceId&quot;: &quot;derived:com.google.distance.delta:com.google.android.gms:aggregated&quot;,\n          &quot;point&quot;: [\n            {\n              &quot;startTimeNanos&quot;: &quot;1621456169872000000&quot;,\n              &quot;endTimeNanos&quot;: &quot;1621488145246312108&quot;,\n              &quot;dataTypeName&quot;: &quot;com.google.distance.delta&quot;,\n              &quot;originDataSourceId&quot;: &quot;derived:com.google.distance.delta:com.google.android.gms:merge_distance_delta&quot;,\n              &quot;value&quot;: [\n                {\n                  &quot;fpVal&quot;: 8987.1162967085838,\n                  &quot;mapVal&quot;: []\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n\n== if no record ==\n{\n  &quot;bucket&quot;: [\n    {\n      &quot;startTimeMillis&quot;: &quot;1621782000000&quot;,\n      &quot;endTimeMillis&quot;: &quot;1621782010000&quot;,\n      &quot;dataset&quot;: [\n        {\n          &quot;dataSourceId&quot;: &quot;derived:com.google.step_count.delta:com.google.android.gms:aggregated&quot;,\n          &quot;point&quot;: []\n        },\n        {\n          &quot;dataSourceId&quot;: &quot;derived:com.google.distance.delta:com.google.android.gms:aggregated&quot;,\n          &quot;point&quot;: []\n        }\n      ]\n    }\n  ]\n}\n*\/\nconst response1Obj = JSON.parse( response1Body );\nlet   numStep = 0;\nif( response1Obj.bucket[0].dataset[0].point.length === 0 ){\n  engine.log( &quot; AutomatedTask RuntimeWarning:&quot; +\n              &quot; No Record of StepCount (no point in dataset)&quot; );\n}else{\n      numStep = response1Obj.bucket[0].dataset[0].point[0].value[0].intVal;\n}\nlet   numDistance = 0;\nif( numPocketDistance !== null ){\n  if( response1Obj.bucket[0].dataset[1].point.length === 0 ){\n    engine.log( &quot; AutomatedTask RuntimeWarning:&quot; +\n                &quot; No Record of Distance (no point in dataset)&quot; );\n  }else{\n        numDistance = response1Obj.bucket[0].dataset[1].point[0].value[0].fpVal;\n  }\n}\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nengine.setData( numPocketStep,       new java.math.BigDecimal( numStep ) );\nif( numPocketDistance !== null ){\n  engine.setData( numPocketDistance, new java.math.BigDecimal( numDistance ) );\n}\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\nfunction toJsDate( bpmsDateOrDatetimeStr ){\n  \/\/ BPMS Date:     &quot;2020-04-01&quot;  (subtype &quot;Y\/M&quot; &quot;M\/D&quot; &quot;Y&quot;, not supported)\n  \/\/ BPMS Datetime: &quot;2020-04-01 23:59&quot;\n  let year       = 0;\n  let monthIndex = 0;\n  let day        = 0;\n  let hours      = 0;\n  let minutes    = 0;\n\n  \/\/  The ECMA\/JavaScript Date object has a large number of methods.\n  \/\/ &quot;Date.parse&quot; is danger (strongly discouraged)\n  \/\/ - new Date(&quot;2014-11-10&quot;) \/\/ Mon Nov 10 2014 09:00:00 GMT+0900 (JST)\n  \/\/ - new Date(2014, 10, 10) \/\/ Mon Nov 10 2014 00:00:00 GMT+0900 (JST)\n  let arrDatetime = bpmsDateOrDatetimeStr.split(&quot; &quot;);\n  if( arrDatetime.length === 1 ){\n    let arrDateParts = arrDatetime[0].split(&quot;-&quot;);\n    year       = parseInt(arrDateParts[0], 10);\n    monthIndex = parseInt(arrDateParts[1], 10) - 1;\n    day        = parseInt(arrDateParts[2], 10);\n  }\n  if( arrDatetime.length === 2 ){\n    let arrDateParts = arrDatetime[0].split(&quot;-&quot;);\n    let arrTimeParts = arrDatetime[1].split(&quot;:&quot;);\n    year       = parseInt(arrDateParts[0], 10);\n    monthIndex = parseInt(arrDateParts[1], 10) - 1;\n    day        = parseInt(arrDateParts[2], 10);\n    hours      = parseInt(arrTimeParts[0], 10);\n    minutes    = parseInt(arrTimeParts[1], 10);\n  }\n  return new Date( year, monthIndex, day, hours, minutes );\n}\n\n\n\/*\nNotes:\n- Used in the daily reporting process of caregiver, deliveryman, etc. GoogleFitSteps\n    - It is possible to count periods that exceed 24 hours.\n    - Long-term like over 2 months will result in an &quot;aggregate duration too large&quot; error.\n- Only the data of the person who permitted API communication (OAuth Authz) can be acquired.\n    - That is, only one person&#39;s data can be acquired for each automated task.\n    - As of 2021-05, data cannot be acquired with any user ID (userId). \n- The unit of travel distance data is meters.\n    - Variable decimal numbers follow the numeric data definition of the workflow app.\n- If the datetime (DurationStart and DurationEnd) are set in date format, considered as &quot;00:00&quot;.\n    - eg: &quot;2021-12-31&quot; to &quot;2021-12-31 00:00&quot;\n\nNotes-ja:\n- \u4ecb\u8b77\u8077\u54e1\u3084\u914d\u9054\u54e1\u306a\u3069\u304c\u52e4\u52d9\u6642\u9593\u5185\u306e\u6b69\u6570\u3084\u8ddd\u96e2\u3092\u5831\u544a\u3059\u308b\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u7b49\u3067\u5229\u7528\u3057\u307e\u3059\u3002 GoogleFitSteps\n    - 24\u6642\u9593\u3092\u8d85\u3048\u308b\u3088\u3046\u306a\u6642\u9593\u7bc4\u56f2\u3067\u306e\u96c6\u8a08\u3082\u53ef\u80fd\u3067\u3059\u3002\n    - \u305f\u3060\u3057\u30012\u30ab\u6708\u3092\u8d85\u3048\u308b\u3088\u3046\u306a\u9577\u671f\u9593\u306e\u96c6\u8a08\u306f &quot;aggregate duration too large&quot; \u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002\n- API\u901a\u4fe1\u3092\u8a31\u53ef\uff08OAuth\u8a8d\u53ef\uff09\u3057\u305f\u672c\u4eba\u306e\u30c7\u30fc\u30bf\u3057\u304b\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002 &quot;HTTP\u8a8d\u8a3c\u8a2d\u5b9a&quot;\n    - \u3059\u306a\u308f\u3061\u3001\u81ea\u52d5\u51e6\u7406\u5de5\u7a0b\uff11\u3064\u306b\u3064\u304d\u3001\uff11\u4eba\u306e\u30c7\u30fc\u30bf\u3057\u304b\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002\n    - 2021-05\u73fe\u5728\u3001\u4efb\u610f\u306e\u30e6\u30fc\u30b6ID\uff08userId\uff09\u3067\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306f\u3067\u304d\u307e\u305b\u3093\u3002\n- \u79fb\u52d5\u8ddd\u96e2\u30c7\u30fc\u30bf\u306e\u5358\u4f4d\u306f\u30e1\u30fc\u30c8\u30eb\u3067\u3059\u3002\n    - \u5c0f\u6570\u70b9\u4ee5\u4e0b\u6709\u52b9\u6570\u5b57\uff08\u5207\u308a\u6368\u3066\u4f4d\u7f6e\uff09\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u306e\u6570\u5024\u578b\u30c7\u30fc\u30bf\u5b9a\u7fa9\u306b\u5f93\u3044\u307e\u3059\u3002\n- \u65e5\u6642\uff08\u7bc4\u56f2\u958b\u59cb\u3068\u7bc4\u56f2\u7d42\u4e86\uff09\u304c\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u5834\u5408\u3001&quot;00:00&quot; \u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002\n    - \u4f8b: &quot;2021-12-31&quot; \u2192 &quot;2021-12-31 00:00&quot;\n\nAPPENDIX-en\n- For usage of Google Fit itself, refer to the Google Fit documents.\n    - Track your fitness activity\n        - https:\/\/support.google.com\/fit\/answer\/6075066?hl=en\n    - Find your activity\n        - https:\/\/support.google.com\/fit\/answer\/6090183?hl=en\n    - Fit isn&#39;t tracking activities correctly\n        - https:\/\/support.google.com\/fit\/answer\/6075068?hl=en\n    - Connect other apps with Google Fit\n        - https:\/\/support.google.com\/accounts\/answer\/6098255?hl=en\n- Setting example of &quot;HTTP Authentication&quot; (OAuth2)\n    - Authorization Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force\n    - Token Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/token\n    - Scope:\n        - https:\/\/www.googleapis.com\/auth\/fitness.activity.read https:\/\/www.googleapis.com\/auth\/fitness.location.read\n    - Client ID, Consumer Secret:\n        - ( from https:\/\/console.developers.google.com\/ )\n        - Redirect URLs: https:\/\/s.questetra.net\/oauth2callback\nAPPENDIX-ja\n- Google Fit \u81ea\u4f53\u306e\u57fa\u672c\u7684\u306a\u5229\u7528\u65b9\u6cd5\u306f\u3001Google Fit \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    - \u30d5\u30a3\u30c3\u30c8\u30cd\u30b9 \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u8a18\u9332\u3059\u308b\n        - https:\/\/support.google.com\/fit\/answer\/6075066?hl=ja\n    - \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u78ba\u8a8d\u3059\u308b\n        - https:\/\/support.google.com\/fit\/answer\/6090183?hl=ja\n    - Fit \u304c\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u6b63\u3057\u304f\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3057\u3066\u3044\u306a\u3044\n        - https:\/\/support.google.com\/fit\/answer\/6075068?hl=ja\n    - \u4ed6\u306e\u30a2\u30d7\u30ea\u3068 Google Fit \u3092\u63a5\u7d9a\u3059\u308b\n        - https:\/\/support.google.com\/accounts\/answer\/6098255?hl=ja\n- &quot;HTTP\u8a8d\u8a3c&quot;\uff08OAuth2\uff09\u306e\u8a2d\u5b9a\u4f8b\n    - Authorization Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force\n    - Token Endpoint URL:\n        - https:\/\/accounts.google.com\/o\/oauth2\/token\n    - Scope:\n        - https:\/\/www.googleapis.com\/auth\/fitness.activity.read https:\/\/www.googleapis.com\/auth\/fitness.location.read\n    - Client ID, Consumer Secret:\n        - ( from https:\/\/console.developers.google.com\/ )\n        - Redirect URLs: https:\/\/s.questetra.net\/oauth2callback\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEIUlEQVRYR8VXbWhbZRR+Tu6bNEm7\n1W7TFQcyUEEUlK1sc87qprAUvzamQ1c3xQ1xVQQF0Qz8MfDHMj9wIm794Sp+MP8pKJ0JU+cH4h+x\nGzIUFO38KOJa42yTpvm4R857c5Obe2\/SO53k\/Zc35+M55zznnPcS2nwoqP\/b907ES9GeLQxsIPAK\nAMsB6rH0OQtgnEFjBBwPF7LvvL\/34nwQ2\/MCuOXZmd6KqZ4i8G4A0SBGARQYNGyEyvuPPtn1eyud\nlgAS+3K7iULPA+gM6NgtlmM2n8js6Rxupt8UQCJVOEjgoX\/puEGNQYcyyejDfrZ8AQzsyx8B0bbz\n4bxmg\/nt9J74oNumB8D5jNztzC8TDQCqNT\/kF\/nqS0NYECVMzjBOnjZ9k3PJEsKyHsKJ0yZmi\/75\nYzaHnJyoARC2m6bxg5twW1YpbL3WwAVxS5QBTGQZR74o4+NTFX136woDd61RWNpNEKlyBfjmFxNv\nfF7GdxMesLlQqHKZ3R01AIlU4UUCP+bEvXWNwuA6hWjYG81fecZrn5bR2024c7VCRHllfjrDSL1X\nxM+TArt+GHQgk4w+LjcaQHXITDn7fNkiwtObI1h+oYVxusCYmoaOMhaxjAmIaJhqAOdKwNlZxpIF\nhBABzMBHpyp4YbTkRlcIF7KLZVhp6wOp2e0A3nRKbbjSwCMbw+jsAKZmGAc+KOGrH01svNrAAzcq\nxCMWMDvy37KM4Q8tmQdvUrijT0GFgPEzjKGROT9C7EgnY29pK4nU7GECdjqlbr7KAiDRSgofOlw3\nIim\/Z62BrqgF4o+\/GS9nLOdynLpT04znRkse4jIwkknGdlUzkP8aIJnvtdN\/hYFHE0ozPzdn1Xt0\nrFLLgNzLyeYYL6XrzuUuWAZ4LJ2Mr7QB\/FlfLBYGiXz\/tggu7w3p31KG9MkKBq4xsLjLci7d8Orx\nEr78vs50Ie7da5UuXQsO6AWWTsYX2RxopGk1D1LvXesVFsYIxTJgMmqEE1K+\/pmVFfts6jOweZXC\n0oUEIqBZF9jy6WRMxDQJfQHIf9Ljg9cpxDvqbHeWxDYmcpqcHYRCETibZ7xyrLE0biY6AOQ9JXAK\nS2Q7+iWthFIFGBs3dX\/b006c33+DxRc5k9NeXnjboKEEXhK6Fe5dp3DbSkP3fUcYODFu4pl3ixCy\nSuT2pAzmXKw7SOjXhl7EwH39qjb1pGbf\/mriom7Sg8eO\/OCxRlL62dHuG9vQO4iaKUqqZT+4R69E\nHtR51XZ9EPmN4mYA5N4NQlp05JP6cmqlW\/2vcRTLpd8yamVo53qFTX1K74hzdA7PMhJHzdZxKxDb\nr1d6GNlrOUDkIuK\/jnUWrEeo74MkoPF5xZo+SGzNtj7JbBBtfZT+H5k452d5DUQ7P0xsEG39NHNS\num0fp\/P21X8U+AemhAk\/3rw+mAAAAABJRU5ErkJggg==\n\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1Y-2ru5sScYTx_0Q_q6MD-OsBGcSFp-7Y\/view?usp=drivesdk\" target=\"_blank\">Google-Fit-FitnessData-Get-Steps-2021.xml<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1QQu3K3NwnNnvBEiPMDxQevJZxWeNiXPa\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1QQu3K3NwnNnvBEiPMDxQevJZxWeNiXPa\/view?usp=sharing\">Google-Fit-FitnessData-Get-Steps-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-17 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>for &#8220;GraalJS standard (engine-type 3)&#8221; on v15.0 or above<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1kReCYxILHbk1MBViwoZbg-CJ75q7pq9t\/view?usp=sharing\">Google-Fit-FitnessData-Get-Steps-2026.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2026-04-27 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>Due to the deprecation of the methods <code>authSetting(String)<\/code> at v18.<\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/ja\/versions\/version-180\/\">https:\/\/support.questetra.com\/ja\/versions\/version-180\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-05-24 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-fit-fitnessdata-get-steps-2021\/\">https:\/\/support.questetra.com\/addons\/google-fit-fitnessdata-get-steps-2021\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Addon-import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Used in the daily reporting process of caregiver, deliveryman, etc. GoogleFitSteps\n<ul class=\"wp-block-list\">\n<li>It is possible to count periods that exceed 24 hours.<\/li>\n\n\n\n<li>Long-term like over 2 months will result in an &#8220;aggregate duration too large&#8221; error.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Only the data of the person who permitted API communication (OAuth Authz) can be acquired.\n<ul class=\"wp-block-list\">\n<li>That is, only one person&#8217;s data can be acquired for each automated task.<\/li>\n\n\n\n<li>As of 2021-05, data cannot be acquired with any user ID (userId).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The unit of travel distance data is meters.\n<ul class=\"wp-block-list\">\n<li>Variable decimal numbers follow the numeric data definition of the workflow app.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If the datetime (DurationStart and DurationEnd) are set in date format, considered as &#8220;00:00&#8221;.\n<ul class=\"wp-block-list\">\n<li>eg: &#8220;2021-12-31&#8221; to &#8220;2021-12-31 00:00&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"106775\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/google-fit-fitnessdata-get-steps-2021\/attachment\/google-fit-fitnessdata-get-steps-2021-execution-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"google-fit-fitnessdata-get-steps-2021-execution-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.\" class=\"wp-image-106775\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-execution-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"80818\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/google-fit-dataset-aggregate-step-count\/attachment\/google-fit-rest-api-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"google-fit-rest-api\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?resize=1200%2C675&#038;ssl=1\" alt=\"google-fit-rest-api\" class=\"wp-image-80818\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/google-fit-rest-api.png?resize=1024%2C576&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default q-box\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1157\" height=\"728\" data-attachment-id=\"106779\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/google-fit-fitnessdata-get-steps-2021\/attachment\/google-fit-fitnessdata-get-steps-2021-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?fit=1157%2C728&amp;ssl=1\" data-orig-size=\"1157,728\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"google-fit-fitnessdata-get-steps-2021-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?fit=1001%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?resize=1157%2C728&#038;ssl=1\" alt=\"Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.\" class=\"wp-image-106779\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?w=1157&amp;ssl=1 1157w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?resize=501%2C315&amp;ssl=1 501w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?resize=1001%2C630&amp;ssl=1 1001w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-2021-config-en.png?resize=768%2C483&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For usage of Google Fit itself, refer to the Google Fit documents.\n<ul class=\"wp-block-list\">\n<li>Track your fitness activity\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.google.com\/fit\/answer\/6075066?hl=en\" rel=\"nofollow\">https:\/\/support.google.com\/fit\/answer\/6075066?hl=en<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Find your activity\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.google.com\/fit\/answer\/6090183?hl=en\" rel=\"nofollow\">https:\/\/support.google.com\/fit\/answer\/6090183?hl=en<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Fit isn&#8217;t tracking activities correctly\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.google.com\/fit\/answer\/6075068?hl=en\" rel=\"nofollow\">https:\/\/support.google.com\/fit\/answer\/6075068?hl=en<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Connect other apps with Google Fit\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.google.com\/accounts\/answer\/6098255?hl=en\" rel=\"nofollow\">https:\/\/support.google.com\/accounts\/answer\/6098255?hl=en<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Setting example of &#8220;HTTP Authentication&#8221; (OAuth2)\n<ul class=\"wp-block-list\">\n<li>Authorization Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&#038;approval_prompt=force\" rel=\"nofollow\">https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&#038;approval_prompt=force<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Token Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/accounts.google.com\/o\/oauth2\/token\" rel=\"nofollow\">https:\/\/accounts.google.com\/o\/oauth2\/token<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Scope:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.googleapis.com\/auth\/fitness.activity.read\" rel=\"nofollow\">https:\/\/www.googleapis.com\/auth\/fitness.activity.read<\/a> <a href=\"https:\/\/www.googleapis.com\/auth\/fitness.location.read\" rel=\"nofollow\">https:\/\/www.googleapis.com\/auth\/fitness.location.read<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Client ID, Consumer Secret:\n<ul class=\"wp-block-list\">\n<li>( from <a href=\"https:\/\/console.developers.google.com\/\" rel=\"nofollow\">https:\/\/console.developers.google.com\/<\/a> )<\/li>\n\n\n\n<li>Redirect URLs: <a href=\"https:\/\/s.questetra.net\/oauth2callback\" rel=\"nofollow\">https:\/\/s.questetra.net\/oauth2callback<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"qEmMwPkQal\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/googlesheets-appendcells\/\">Google Sheets: Append New Row<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Google Sheets: Append New Row&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/bpmn-icons\/googlesheets-appendcells\/embed\/#?secret=izi2wgotjx#?secret=qEmMwPkQal\" data-secret=\"qEmMwPkQal\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.<\/p>\n","protected":false},"author":2,"featured_media":106773,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[296],"tags":[3167,2467,494],"class_list":["post-106771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-blog","tag-authsetting","tag-google-fit-api","tag-routine-report"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":1,"uagb_excerpt":"Gets the step count data in Google Fit. Gets the aggregated value for any period. It is also possible to acquire travel distance data (meters). For example, the number of steps taken during working hours for care workers and delivery staff is acquired.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-rM7","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":80802,"url":"https:\/\/support.questetra.com\/en\/addons\/google-fit-dataset-aggregate-step-count\/","url_meta":{"origin":106771,"position":0},"title":"Google Fit: Dataset; Aggregate Step Count","author":"IMAMURA, Genichi","date":"2019-10-10","format":false,"excerpt":"Aggregates data of Step Count and Distance (meters) in Google Fit. Multiple data sets from multiple sources (including manual input) can be aggregated. Note that the results of simultaneous measurement with multiple devices are all added up.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":80810,"url":"https:\/\/support.questetra.com\/ja\/addons\/google-fit-dataset-aggregate-step-count\/","url_meta":{"origin":106771,"position":1},"title":"Google Fit: \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8; \u6b69\u6570\u96c6\u8a08","author":"IMAMURA, Genichi","date":"2019-10-10","format":false,"excerpt":"Google Fit \u5185\u306e\u6b69\u6570\u30c7\u30fc\u30bf\u304a\u3088\u3073\u79fb\u52d5\u8ddd\u96e2\u30c7\u30fc\u30bf\uff08\u30e1\u30fc\u30c8\u30eb\uff09\u3092\u96c6\u8a08\u3057\u307e\u3059\u3002\u69d8\u3005\u306a\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\uff08\u624b\u5165\u529b\u3092\u542b\u3080\uff09\u304c\u96c6\u7d04\u3055\u308c\u307e\u3059\u3002\u6ce8\uff1a\u8907\u6570\u6a5f\u5668\u3067\u540c\u6642\u8a08\u6e2c\u3057\u305f\u7d50\u679c\u3082\u5408\u7b97\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/Google-Fit-Dataset-Aggregate-Step-Count-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":106785,"url":"https:\/\/support.questetra.com\/ja\/addons\/google-fit-fitnessdata-get-steps-2021\/","url_meta":{"origin":106771,"position":2},"title":"Google Fit #\u30d5\u30a3\u30c3\u30c8\u30cd\u30b9\u30c7\u30fc\u30bf: \u6b69\u6570\u53d6\u5f97","author":"IMAMURA, Genichi","date":"2021-05-24","format":false,"excerpt":"Google Fit \u5185\u306e\u6b69\u6570\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4efb\u610f\u671f\u9593\u306b\u304a\u3051\u308b\u6b69\u6570\uff08\u96c6\u8a08\u5024\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u7dcf\u79fb\u52d5\u8ddd\u96e2\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ecb\u8b77\u8077\u54e1\u3084\u914d\u9054\u54e1\u306e\u52e4\u52d9\u6642\u9593\u6b69\u6570\u3092\u81ea\u52d5\u7684\u306b\u53d6\u5f97\u3057\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"Google Fit: \u30d5\u30a3\u30c3\u30c8\u30cd\u30b9\u30c7\u30fc\u30bf, \u6b69\u6570\u53d6\u5f97","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/google-fit-fitnessdata-get-steps-automation-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":74763,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/google-drive-items\/","url_meta":{"origin":106771,"position":3},"title":"Utilizing Google Drive from Workflow &#8211; Sending files to people outside the company","author":"Hirotaka NISHI","date":"2020-10-30","format":false,"excerpt":"Google Drive is a cloud storage service offered by Google. I will explain automatic Step for utilizing Google Drive in a Workflow App.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":79738,"url":"https:\/\/support.questetra.com\/en\/data-items\/datetime-type\/","url_meta":{"origin":106771,"position":4},"title":"Datetime-Type","author":"Peter Glover","date":"2024-09-02","format":false,"excerpt":"Displays a field for entering the date and a field for hours and minutes, and stores the date and time entered.","rel":"","context":"In &quot;Data Items&quot;","block_context":{"text":"Data Items","link":"https:\/\/support.questetra.com\/en\/category\/data-items\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":116684,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/google-sheet-table-add-sum\/","url_meta":{"origin":106771,"position":5},"title":"Adding Table Values to Google Sheets and Getting the Aggregate Value","author":"Hirotaka NISHI","date":"2021-11-11","format":false,"excerpt":"Adds the contents of a Table-type Data Item to a Google Sheet and retrieves the aggregated value. Various aggregations can be performed automatically depending on the spreadsheet settings.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/eyecatch-google-sheet-table-add-sum-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/eyecatch-google-sheet-table-add-sum-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/eyecatch-google-sheet-table-add-sum-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/eyecatch-google-sheet-table-add-sum-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/11\/eyecatch-google-sheet-table-add-sum-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/106771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=106771"}],"version-history":[{"count":8,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/106771\/revisions"}],"predecessor-version":[{"id":183474,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/106771\/revisions\/183474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/106773"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=106771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=106771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=106771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}