建議您依資料類型閱讀,取得與 Google Fit 應用程式相同的值。請參閱這裡瞭解如何閱讀每日步數。
Google Fit 平台會審查不同來源的特定資料類型所有資訊,並透過邏輯方式合併這些資料。例如,使用者利用智慧手錶和手機追蹤跑步記錄。系統會合併手錶和手機的步數,以得到最完整的步數計算。合併資料時,系統會優先顯示手錶資料,而非手機資料 (優先採用避免計算重複的步驟)。您讀取資料類型時,Google Fit 平台會傳回正確的合併資訊。
請特別注意,這些步驟會套用這些額外驗證,盡可能確保最終的步驟準確無誤。
Google Fit 會偵測使用者從事不應計入步數的活動 (例如騎自行車、開車或搭乘大眾運輸工具),並從最終步數計數中移除這些項目。
對於 Android 和 iOS 應用程式,以及 Wear OS 智慧手錶上的 Google Fit 應用程式,Google Fit 應用程式都會顯示更準確的預估步數。
如果您是依應用程式的資料來源 (而非資料類型讀取) 讀取資料,且應用程式只使用本機步數資料,則步數會與 Google Fit 應用程式中的步數計數不同。
如果您讀取資料類型,但值「仍然」與 Google Fit 應用程式不同,可能是因為同步處理延遲,導致數字出現暫時性差異。我們的後端擁有最新版資料,且應用程式在與後端同步處理後會顯示相同的值。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\u003cp\u003eTo get the same values (e.g., step count) as the Google Fit app, read data by data type, as the platform merges information from various sources for accuracy.\u003c/p\u003e\n"],["\u003cp\u003eAccessing data written by other apps requires user authorization for relevant Fitness scopes, otherwise, you can only access data written by your app.\u003c/p\u003e\n"],["\u003cp\u003eUsing Google Fit APIs or the platform does not require the Google Fit app to be installed.\u003c/p\u003e\n"]]],[],null,["# Frequently Asked Questions (FAQ)\n\n- [How do I get the same values (step count, calories, distance etc.) as the Google Fit app?](#get-same-values)\n- [How do I read data written to the platform by other apps or devices?](#query-data-sources)\n- [Do I need to install the Fit app to use the APIs?](#install-fit-app)\n\nHow do I get the same values (step count, calories, distance etc.) as the Google Fit app?\n-----------------------------------------------------------------------------------------\n\nWe recommend reading by data type to get the same values as the Google Fit app.\nLearn how to read the daily step count [here](/fit/scenarios/read-daily-step-total).\n\nThe Google Fit platform reviews all the information available for a specific\ndata type from different sources and merges it in a logical way. For example, a\nuser tracks a run with their smart watch and their phone. The step counts from\ntheir watch and phone are merged to get the most complete step count. When\nmerging data, watch data is prioritised over phone data (prioritisation avoids\ncounting duplicate steps). The Google Fit platform returns this accurate, merged\ninformation when you read the data type.\n\nSteps in particular have these extra validation applied to make the final step\ncount as accurate as possible.\n\nGoogle Fit detects when users are doing activities that shouldn't contribute\nto their step count (like cycling, driving or travelling via public transport)\nand removes these from the final step count.\n\nThe Google Fit app shows this more accurate, **estimated step count** on both\nthe Android and iOS app, and the Google Fit app on smart watches with Wear\nOS.\n\nIf you read by your app's data source rather than by data type, and your app\nonly uses local step data, the step count will be different from the step count\nin the Google Fit app.\n\nIf you're reading the data types but values are *still* different from the\nGoogle Fit app, this temporary difference in numbers could be due to syncing\ndelays. Our backend has the most recent version of data and your app will show\nthe same values once it's synced with the backend.\n\nHow do I read data written to the platform by other apps or devices?\n--------------------------------------------------------------------\n\n| **Note:** These requests require authorization from the [relevant Fitness\n| scopes](https://developers.google.com/identity/protocols/oauth2/scopes#fitness). If users are happy to share their information with your app and have authorised the relevant scopes, you'll see results. Otherwise you can only access the data your own app has written.\n\nFor the REST API, make an HTTP request to [list data\nsources](https://developers.google.com/fit/rest/v1/reference/users/dataSources/list).\nThe response will list all the data sources available to your app to read.\n\nFor the Android APIs, read by data type and the Fit platform will return the\nmerged stream by default. This automatically includes all data available to your\napp, including data written by other apps. You won't be able to see a list of\nwhich apps or devices the data came from with the Android APIs.\n\nDo I need to install the Google Fit app to use the APIs?\n--------------------------------------------------------\n\nNo, you don't need to install the Google Fit app to use the APIs or the Fit\nplatform."]]