Las APIs de Google Fit, incluida la API de REST de Google Fit, dejarán de estar disponibles después del 30 de junio de 2025. A partir del 1 de mayo de 2024, los desarrolladores no pueden registrarse para usar estas APIs.
Cada dato representa los nutrientes que se consumieron como parte de una comida
o un alimento. El dato contiene varios campos. El campo de nutrientes es
como en los productos necesarios. Y uno, o ambos, de los campos de tipo de comida y alimento es obligatorio.
El alimento específico de la entrada. Por ejemplo, “banana” o "gachas".
nutrientes (Map<String>: calorías/gramos)
Es el desglose nutricional del alimento ingerido.
Valores aceptados
"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
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-08-22 (UTC)"],[[["Hydration data represents the volume of water consumed in a single drink, measured in liters."],["Nutrition data includes the nutritional breakdown of food items and meals, with fields for meal type, food item, and nutrients."],["Data can be accessed using REST APIs or Android, requiring specific OAuth permissions for read and write access."],["Nutrient information is recorded in calories, grams, or milligrams, covering macronutrients like fat, carbohydrates, and protein, along with micronutrients like sodium and potassium."]]],[]]