Foods
Get a food by ID
get/food/{food_id}
Path parameters
food_idinteger required
Response
The food record
Example response
{
"id": 1068319,
"name": "Greek yogurt",
"brand": null,
"barcode": "0855088005245",
"category": "Dairies",
"serving_size_g": 170,
"serving_desc": "3/4 cup (170 g)",
"calories_kcal": 105.9,
"protein_g": 7.6,
"fat_g": 3.5,
"carbs_g": 12.4,
"fiber_g": 0,
"sugar_g": 10,
"sodium_mg": 44.1,
"saturated_fat_g": 2.4,
"cholesterol_mg": 18,
"potassium_mg": 112,
"image_url": "https://api.getdietly.com/img?u=...",
"image_thumb_url": "https://api.getdietly.com/img?u=...",
"source": "off",
"confidence": 0.9,
"static_url": "food/19/greek-yogurt-2.html"
}