Le API Google Fit, inclusa l'API REST di Google Fit, verranno ritirate nel 2026. A partire dal 1° maggio 2024, gli sviluppatori non possono registrarsi per utilizzare queste API.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Figura 1: API REST Google Fit.
L'API REST Google Fit consente di memorizzare e leggere i dati su salute e benessere nel fitness store dalle app su qualsiasi piattaforma.
L'API REST fornisce risorse e metodi per:
Creare, ottenere, elencare e modificare le origini dati. Un'origine dati rappresenta una sorgente
unica di dati dei sensori. Tutti i dati su salute e benessere nel negozio di fitness sono associati a una determinata origine dati.
Creare, ottenere, aggregare ed eliminare set di dati. Un set di dati rappresenta un insieme di
punti dati di una determinata origine dati.
Elenca i punti dati e aggiungili a un set di dati. Un punto dati rappresenta un campione
da una determinata origine dati.
Creare, elencare ed eliminare sessioni. Una sessione rappresenta un intervallo
di tempo con i metadati associati.
[null,null,["Ultimo aggiornamento 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."]]