سيتم إيقاف واجهات برمجة تطبيقات Google Fit نهائيًا في عام 2026، بما في ذلك واجهة برمجة التطبيقات Google Fit REST API. اعتبارًا من 1 أيار (مايو) 2024، لن يتمكّن المطوّرون من الاشتراك لاستخدام واجهات برمجة التطبيقات هذه.
للحصول على تعليمات حول واجهة برمجة التطبيقات أو المنصة التي تريد نقل البيانات إليها، يُرجى الانتقال إلى دليل نقل البيانات في Health Connect. للاطّلاع على مقارنة بين Health Connect وGoogle Fit API وFitbit Web API، يُرجى الانتقال إلى دليل مقارنة Health Connect.
كيف يمكنني الحصول على القيم نفسها (عدد الخطوات والسعرات الحرارية والمسافة وما إلى ذلك) لتطبيق Google Fit؟
ننصح بالقراءة حسب نوع البيانات للحصول على القيم نفسها المتوفّرة في تطبيق Google Fit.
تعرَّف على كيفية قراءة عدد الخطوات اليومي هنا.
يراجع نظام Google Fit جميع المعلومات المتاحة لنوع بيانات
معين من مصادر مختلفة ويدمجها بطريقة منطقية. على سبيل المثال، يتتبع المستخدم
جريًا باستخدام ساعته الذكية وهاتفه. يتم دمج عدد الخطوات من الساعة والهاتف
للحصول على عدد الخطوات الأكثر اكتمالاً. عند دمج البيانات، يتم منح الأولوية لبيانات الساعة على بيانات الهاتف (من خلال تحديد الأولوية يتم تجنّب احتساب الخطوات المتكررة). يعرض نظام Google Fit هذه المعلومات
الدقيقة والمدمجة عند قراءة نوع البيانات.
وعلى وجه الخصوص، يتم تطبيق عمليات التحقق الإضافية هذه لجعل الخطوة النهائية دقيقة قدر الإمكان.
يرصد Google Fit الحالات التي يمارس فيها المستخدمون أنشطة لا ينبغي أن تساهم
في عدد خطواتهم (مثل ركوب الدراجات أو القيادة أو السفر عبر وسائل النقل العام)، ويزيل هذه الأنشطة من عدد الخطوات النهائية.
يعرض تطبيق Google Fit عدد الخطوات المقدَّر الأكثر دقة على كلٍّ من تطبيقَي Android وiOS، و"تطبيق Google Fit" على الساعات الذكية المزوّدة بنظام التشغيل Wear
OS.
إذا كنت تقرأ حسب مصدر بيانات تطبيقك بدلاً من نوع البيانات، وكان تطبيقك يستخدم
بيانات الخطوات المحلية فقط، سيختلف عدد الخطوات عن عدد الخطوات في تطبيق Google Fit.
إذا كنت تقرأ أنواع البيانات ولكن القيم لا تزال مختلفة عن تطبيق Google Fit، قد يرجع هذا الاختلاف المؤقت في الأرقام إلى حدوث تأخيرات في المزامنة. تحتوي الخلفية لدينا على أحدث إصدار من البيانات وسيعرض تطبيقك
القيم نفسها بمجرد مزامنتها مع الخلفية.
كيف يمكنني قراءة البيانات المكتوبة على النظام الأساسي عن طريق تطبيقات أو أجهزة أخرى؟
بالنسبة إلى واجهة برمجة تطبيقات REST، يمكنك تقديم طلب HTTP لسرد مصادر البيانات.
سيسرد الرد جميع مصادر البيانات المتاحة لتطبيقك لقراءتها.
بالنسبة إلى واجهات برمجة تطبيقات Android، يمكنك القراءة حسب نوع البيانات وسيعرض نظام Fit الأساسي البث المدمج تلقائيًا. ويتضمن ذلك تلقائيًا جميع البيانات المتاحة لتطبيقك،
بما في ذلك البيانات المكتوبة بواسطة التطبيقات الأخرى. لن تتمكن من الاطّلاع على قائمة بالتطبيقات أو الأجهزة
التي جاءت منها البيانات باستخدام واجهات برمجة تطبيقات Android.
هل يجب تثبيت تطبيق Google Fit لاستخدام واجهات برمجة التطبيقات؟
لا، ليس عليك تثبيت تطبيق Google Fit لاستخدام واجهات برمجة التطبيقات أو نظام التشغيل
الأساسي.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[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."]]