Google Fit API, termasuk Google Fit REST API, tidak akan tersedia lagi setelah 30 Juni 2025. Mulai 1 Mei 2024, developer tidak dapat mendaftar untuk menggunakan API ini.
Setiap titik data mewakili gizi apa yang dikonsumsi sebagai bagian dari makanan
atau item makanan. Titik data berisi beberapa {i>field<i}. Bidang nutrisi adalah
tidak diperlukan. Dan salah satu, atau keduanya, kolom jenis makanan dan item makanan wajib diisi.
Item makanan spesifik untuk entri. Misalnya, "pisang" atau "bubur".
nutrisi (Map<String>—kalori/gram)
Perincian nutrisi dari item makanan yang dimakan.
Nilai yang diterima
"key": "calories" // Calories in kcal
"key": "fat.total" // Total fat in grams
"key": "fat.saturated" // Saturated fat in grams
"key": "fat.unsaturated" // Unsaturated fat in grams
"key": "fat.polyunsaturated" // Polyunsaturated fat in grams
"key": "fat.monounsaturated" // Monounsaturated fat in grams
"key": "fat.trans" // Trans fat in grams
"key": "cholesterol" // Cholesterol in milligrams
"key": "sodium" // Sodium in milligrams
"key": "potassium" // Potassium in milligrams
"key": "carbs.total" // Total carbohydrates in grams
"key": "dietary_fiber" // Dietary fiber in grams
"key": "sugar" // Amount of sugar in grams
"key": "protein" // Protein amount in grams
NUTRIENT_CALORIES // Calories in kcal
NUTRIENT_TOTAL_FAT // Total fat in grams
NUTRIENT_SATURATED_FAT // Saturated fat in grams
NUTRIENT_UNSATURATED_FAT // Unsaturated fat in grams
NUTRIENT_POLYUNSATURATED_FAT // Polyunsaturated fat in grams
NUTRIENT_MONOUNSATURATED_FAT // Monounsaturated fat in grams
NUTRIENT_TRANS_FAT // Trans fat in grams
NUTRIENT_CHOLESTEROL // Cholesterol in milligrams
NUTRIENT_SODIUM // Sodium in milligrams
NUTRIENT_POTASSIUM // Potassium in milligrams
NUTRIENT_TOTAL_CARBS // Total carbohydrates in grams
NUTRIENT_DIETARY_FIBER // Dietary fiber in grams
NUTRIENT_SUGAR // Amount of sugar in grams
NUTRIENT_PROTEIN // Protein amount in grams
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-22 UTC."],[[["This documentation details the data types and fields for recording hydration and nutrition data using the Google Fit API."],["Hydration data points track the volume of water consumed in liters using the `com.google.hydration` data type."],["Nutrition data points record the nutritional breakdown of meals or food items, including meal type, food item, and nutrients."],["Required fields for nutrition data include the `nutrients` field and either `meal_type` or `food_item` (or both)."],["Developers can use REST or Android methods to access and manage hydration and nutrition data."]]],[]]