APIهای Google Fit، از جمله Google Fit REST API، در سال 2026 منسوخ خواهند شد . از 1 می 2024، توسعه دهندگان نمی توانند برای استفاده از این API ها ثبت نام کنند .
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Google Fit یک اکوسیستم باز است. این به توسعه دهندگان اجازه می دهد تا داده های سلامت و تندرستی را در یک مخزن مرکزی آپلود کنند، جایی که کاربران می توانند به داده های خود از دستگاه ها و برنامه های مختلف در یک مکان دسترسی داشته باشند. در صورت ارتقاء به دستگاه جدید، آنها همچنان می توانند به داده های خود دسترسی داشته باشند.
برنامه سلامت و تندرستی شما میتواند دادههای هر ابزار پوشیدنی یا حسگری را ذخیره کند و به دادههای ایجاد شده توسط برنامههای دیگر دسترسی داشته باشد.
یک مخزن مرکزی که داده ها را از دستگاه ها و برنامه های مختلف ذخیره می کند. فروشگاه تناسب اندام یک سرویس ابری است که برای مشتریان شفاف است.
چارچوب حسگر
مجموعه ای از نمایش های سطح بالا که کار با فروشگاه تناسب اندام را آسان می کند. شما از این نمایشها با APIهای Google Fit استفاده میکنید.
مجوزها و کنترل های کاربر
مجموعه ای از حوزه های مجوز برای درخواست اجازه کاربر برای کار با داده های سلامت و تندرستی. Google Fit برای دسترسی به دادههای سلامت و تندرستی به رضایت کاربر نیاز دارد.
APIهای Google Fit
API های Android و REST برای دسترسی به فروشگاه تناسب اندام. میتوانید برنامههایی ایجاد کنید که از Google Fit در چندین پلتفرم و دستگاه مانند Android، iOS و برنامههای وب پشتیبانی میکنند.
فروشگاه تناسب اندام
فروشگاه تناسب اندام یک سرویس ابری است که داده های سلامتی و تندرستی را با استفاده از زیرساخت های Google حفظ می کند. برنامهها در پلتفرمها و دستگاههای مختلف میتوانند دادهها را ذخیره کنند و به دادههای ایجاد شده توسط برنامههای دیگر دسترسی داشته باشند. Google Fit مجموعهای از APIها را ارائه میکند که درج دادهها و جستجو در فروشگاه تناسب اندام را آسان میکند.
چارچوب حسگر
چارچوب حسگر نمایش های سطح بالایی را برای حسگرها، انواع داده ها، نقاط داده و جلسات تعریف می کند. این نمایندگی ها کار با فروشگاه تناسب اندام را در هر پلتفرمی آسان می کند.
منابع اطلاعات
منابع داده نشان دهنده حسگرها و شامل نام، نوع داده های جمع آوری شده و سایر جزئیات حسگر است. یک منبع داده ممکن است یک حسگر سخت افزاری یا یک حسگر نرم افزاری را نشان دهد. می توانید حسگرهای نرم افزاری را در برنامه های خود تعریف کنید.
انواع داده ها
انواع دادهها انواع مختلفی از دادههای سلامتی و سلامتی، مانند تعداد قدمها یا ضربان قلب را نشان میدهند. انواع داده ها طرحی را ایجاد می کنند که از طریق آن برنامه های مختلف می توانند داده های یکدیگر را درک کنند. یک نوع داده از یک نام و یک لیست مرتب از فیلدها تشکیل شده است که در آن هر فیلد یک بعد را نشان می دهد. به عنوان مثال، یک نوع داده برای مکان شامل سه فیلد (طول جغرافیایی، طول و عرض جغرافیایی و دقت) است، در حالی که نوع داده برای وزن فقط شامل یک فیلد است.
نقاط داده
نقاط داده شامل آرایه ای از مقادیر مهر زمانی برای یک نوع داده است که از منبع داده خوانده می شود. شما از نقاط داده برای ثبت و درج داده های سلامت و تندرستی در فروشگاه تناسب اندام و خواندن داده های خام از منبع داده استفاده می کنید. نقاطی که دارای زمان شروع هستند، به جای خواندن آنی، محدوده زمانی را نشان می دهند.
مجموعه داده ها
مجموعه داده ها مجموعه ای از نقاط داده از همان نوع را از یک منبع داده خاص نشان می دهد که بازه زمانی خاصی را پوشش می دهد. شما از مجموعه داده ها برای درج داده ها در فروشگاه تناسب اندام استفاده می کنید. پرس و جوهایی برای خواندن داده ها از فروشگاه تناسب اندام نیز مجموعه داده ها را برمی گرداند.
جلسات
جلسات بازه زمانی را نشان می دهد که در طی آن کاربران یک فعالیت تناسب اندام مانند دویدن، دوچرخه سواری و غیره را انجام می دهند. جلسات به سازماندهی داده ها و انجام پرس و جوهای دقیق یا انبوه در فروشگاه تناسب اندام برای یک فعالیت تناسب اندام کمک می کند.
مجوزها و کنترل های کاربر
قبل از اینکه برنامهها بتوانند دادههای سلامت و تندرستی را بخوانند یا ذخیره کنند، Google Fit به رضایت کاربر نیاز دارد. Google Fit محدودههای OAuth را تعریف میکند که به تعدادی از گروههای مجوز با امتیازات خواندن و نوشتن جداگانه نگاشت میشوند: انواع دادههای مربوط به فعالیت، بدن، مکان، تغذیه و سلامت (انواع دادههای مرتبط با سلامتی با جزئیات دقیقتری گروهبندی میشوند). هر گروه مجوز به برنامهها اجازه دسترسی به مجموعهای از انواع دادهها را میدهد. برنامهها یک یا چند مورد از این حوزهها را برای کار با دادههای سلامت و تندرستی مشخص میکنند و Google Fit مجوزهای مربوطه را از کاربر درخواست میکند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eGoogle Fit provides a central platform and APIs for storing, accessing, and sharing health and wellness data from various apps and devices.\u003c/p\u003e\n"],["\u003cp\u003eUsers have control over their data and must grant permission for apps to access it.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can build apps that integrate with Google Fit using Android or REST APIs, supporting cross-platform functionality.\u003c/p\u003e\n"],["\u003cp\u003eData is organized using data sources, data types, data points, datasets, and sessions for efficient storage and retrieval.\u003c/p\u003e\n"],["\u003cp\u003eCompliance with the Google Fit Developer and User Data Policy and Terms and Conditions is essential when utilizing the platform.\u003c/p\u003e\n"]]],[],null,["Google Fit is an open ecosystem. It lets developers upload health and wellness\ndata to a central repository where users can access their data from different\ndevices and apps in one location. They can still access their data if they\nupgrade to a new device.\n\nYour health and wellness app can store data from any wearable or sensor, and\naccess data created by other apps.\n| **Note:** The Google Fit app uses the Google Fit platform, which is included in Google Play services. Your app can use this platform without needing users to install the Google Fit app.\n\nRead the [Google Fit Developer and User Data Policy](/fit/policy) thoroughly and\nmake sure your app complies with it. Carefully review the [Google Fit Terms and\nConditions](/fit/terms) before using Google Fit. By using the API, you agree to\nthe Google Fit Terms and Conditions.\n\nComponents\n\nGoogle Fit consists of the following components: \n**Figure 1** : Platform overview.\n\nThe fitness store\n: A central repository that stores data from a variety of devices and apps. The\n fitness store is a cloud service that is transparent to clients.\n\nThe sensor framework\n: A set of high-level representations that make it easy to work with the fitness\n store. You use these representations with the Google Fit APIs.\n\nPermissions and user controls\n: A set of authorization scopes to request user permission to work with health\n and wellness data. Google Fit requires user consent to access health and\n wellness data.\n\nGoogle Fit APIs\n: Android and REST APIs to access the fitness store. You can create apps that\n support Google Fit on multiple platforms and devices, such as Android, iOS, and\n Web apps.\n\nThe fitness store\n\nThe fitness store is a cloud service that persists health and wellness data using Google's\ninfrastructure. Apps on different platforms and devices can store data and\naccess data created by other apps. Google Fit provides a set of APIs that make\nit easy to insert data and query the fitness store.\n\nThe sensor framework\n\nThe sensor framework defines high-level representations for sensors,\ndata types, data points, and sessions. These representations make it easy to\nwork with the fitness store on any platform.\n\nData Sources\n: Data sources represent sensors and consist of a name, the type of data\n collected, and other sensor details. A data source may represent a hardware\n sensor or a software sensor. You can define software sensors in your apps.\n\nData Types\n: Data types represent different kinds of health and wellness data, like step count or heart\n rate. Data types establish a schema through which different apps can understand\n each other's data. A data type consists of a name and an ordered list of fields,\n where each field represents a dimension. For example, a data type for location\n contains three fields (latitude, longitude, and accuracy), whereas a data type\n for weight contains only one field.\n\nData Points\n: Data points consist of a timestamped array of values for a data type, read\n from a data source. You use data points to record and insert health and wellness data in the\n fitness store, and to read raw data from a data source. Points that contain a\n start time represent a time range instead of an instantaneous reading.\n\nDatasets\n: Datasets represent a set of data points of the same type from a particular\n data source covering some time interval. You use datasets to insert data into\n the fitness store. Queries to read data from the fitness store also return\n datasets.\n\nSessions\n: Sessions represent a time interval during which users perform a fitness\n activity, such as a run, a bike ride, and so on. Sessions help organize data and\n perform detailed or aggregate queries on the fitness store for a fitness\n activity.\n\nPermissions and user controls\n\nGoogle Fit requires user consent before apps can read or store health and wellness data.\nGoogle Fit defines OAuth scopes that map to a number of permission groups with\nseparate read and write privileges: activity, body, location, nutrition and\nhealth-related data types (health-related data types are grouped with finer\ngranularity). Each permission group grants apps access to a set of data types.\nApps specify one or more of these scopes to work with health and wellness data, and Google\nFit requests the corresponding permissions from the user.\n\nGoogle Fit APIs\n\nGoogle Fit provides the following APIs:\n\n- [Android APIs](/fit/android) for Android apps.\n- [REST API](/fit/rest) for apps on any platform."]]