Các API của Google Fit, bao gồm cả API Google Fit REST, sẽ ngừng hoạt động vào năm 2026. Kể từ ngày 1 tháng 5 năm 2024, nhà phát triển không thể đăng ký sử dụng các API này.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hình 1: API REST của Google Fit.
API Google Fit REST cho phép bạn lưu trữ cũng như đọc dữ liệu về sức khoẻ thể chất và tinh thần trong cửa hàng thể dục từ các ứng dụng trên mọi nền tảng.
API REST cung cấp các tài nguyên và phương thức để:
Tạo, thu thập, liệt kê và sửa đổi nguồn dữ liệu. Nguồn dữ liệu đại diện cho một nguồn dữ liệu cảm biến duy nhất. Tất cả dữ liệu sức khoẻ thể chất và tinh thần trong cửa hàng thể dục đều được liên kết với một nguồn dữ liệu cụ thể.
Tạo, lấy, tổng hợp và xoá tập dữ liệu. Tập dữ liệu đại diện cho một tập hợp các điểm dữ liệu từ một nguồn dữ liệu cụ thể.
Liệt kê các điểm dữ liệu và thêm các điểm dữ liệu đó vào một tập dữ liệu. Một điểm dữ liệu đại diện cho một mẫu của một nguồn dữ liệu cụ thể.
Tạo, liệt kê và xoá phiên. Một phiên hoạt động thể hiện khoảng thời gian với siêu dữ liệu được liên kết.
[null,null,["Cập nhật lần gần đây nhất: 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."]]