Interfejsy Google Fit API, w tym interfejs Google Fit API typu REST, zostaną wycofane w 2026 roku. Od 1 maja 2024 r. deweloperzy nie mogą rejestrować się w celu korzystania z tych interfejsów API.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Rysunek 1.: Google Fit REST API.
Interfejs Google Fit REST API umożliwia przechowywanie i odczytywanie danych o zdrowiu i samopoczuciu ze sklepu fitness z aplikacji na dowolnej platformie.
Interfejs API REST udostępnia zasoby i metody, które umożliwiają:
tworzyć, uzyskiwać, wyświetlać i modyfikować źródła danych; Źródło danych jest unikalnym
źródłem danych z czujników. Wszystkie dane o zdrowiu i samopoczuciu dostępne w sklepie fitness są powiązane z konkretnym źródłem danych.
tworzenie, pozyskiwanie, agregowanie i usuwanie zbiorów danych; Zbiór danych to zbiór punktów danych
z konkretnego źródła danych.
Wymień punkty danych i dodaj je do zbioru danych. Punkt danych reprezentuje próbkę z konkretnego źródła danych.
tworzyć, wyświetlać i usuwać sesje; Sesja to przedział czasu
z powiązanymi metadanymi.
[null,null,["Ostatnia aktualizacja: 2025-08-31 UTC."],[[["\u003cp\u003eThe Google Fit REST API allows you to store and retrieve health and wellness data from various apps in the fitness store.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage data sources, which represent unique sources of sensor data, through creating, accessing, listing, and modifying them.\u003c/p\u003e\n"],["\u003cp\u003eDatasets, representing sets of data points from a specific data source, can be created, accessed, aggregated, and deleted using the API.\u003c/p\u003e\n"],["\u003cp\u003eData points, which are individual samples from a data source, can be listed and added to datasets.\u003c/p\u003e\n"],["\u003cp\u003eSessions, representing time intervals with associated metadata, can be created, listed, and deleted.\u003c/p\u003e\n"]]],[],null,["# REST API\n\n\u003cbr /\u003e\n\n**Figure 1** : Google Fit REST API.\n\nThe Google Fit REST API enables you to store and read health and wellness data in the\n[fitness store](/fit/overview#components) from apps on any platform.\n\nThe REST API provides resources and methods to:\n\n- Create, obtain, list, and modify **data sources**. A data source represents a unique source of\n sensor data. All health and wellness data in the fitness store is associated with a particular data source.\n\n- Create, obtain, aggregate, and delete **datasets**. A dataset represents a set of\n data points from a particular data source.\n\n- List **data points** and add them to a dataset. A data point represents a sample from a particular\n data source.\n\n- Create, list, and delete **sessions**. A session represents a time interval with associated\n metadata."]]