Retrieving Item Details

To retrieve an item use the items_read operation. The item will return information about the item like name and the nutrition facts. The return also includes information about more specific types of the the food retrieved. In the example below we see information about rice.

GET /items/{id}/
{
"id": "8412ae09-4ce1-42d9-9b1b-14c94a35765a",
"name": "Rice",
"details": null,
"description": null,
"brand": null,
"type": null,
"text_ingredients": null,
"ingredients": [],
"parents": [],
"children": [
{
"id": "1e0d5c1a-08fd-4228-89b5-ce9675eb0133",
"name": "Brown Rice",
"brand": null,
"details": "no fat added in cooking",
"categorizations": {},
"is_generic": true
},
{
"id": "8471337b-16ce-4f64-9d17-a0e0ad76638a",
"name": "Basmati Rice",
"brand": null,
"details": null,
"categorizations": {},
"is_generic": true
},
{
"id": "b73284c4-526b-46fb-a09c-28cd2994f1c5",
"name": "Brown Rice",
"brand": null,
"details": "made with oil",
"categorizations": {},
"is_generic": true
},
{
"id": "45edc60c-b57c-4cf2-9eb9-d7f10b782cf6",
"name": "White Rice",
"brand": null,
"details": "made with oil",
"categorizations": {},
"is_generic": true
}
],
"nutrition_facts": [
{
"id": "104357b5-ee29-4c3b-8ea3-e1bdf1af8d78",
"item": "8412ae09-4ce1-42d9-9b1b-14c94a35765a",
"serving": {
"amount": 1.0,
"unit": {
"id": "1f49b3a4-b335-492d-88b6-9f63f7ae0837",
"singular_name": "cup",
"abbreviated_singular_name": "cp",
"plural_name": "cups",
"abbreviated_plural_name": "cp",
"measure_type": "volume",
"granularity": null,
"details": "US Customary Unit"
},
"grams": 158.0
},
"servings_per_package": null,
"nutrition": {
"calories": 203.82,
"total_fat": 0.4424,
"saturated_fat": 0.1217,
"monounsaturated_fat": 0.1375,
"polyunsaturated_fat": 0.1201,
"total_carb": 44.2242,
"sugars": 0.079,
"fiber": 0.632,
"protein": 4.2186,
"sodium": 387.1,
"potassium": 55.3,
"calcium": 15.8,
"iron": 1.896,
"magnesium": 18.96,
"phosphorus": 67.94,
"zinc": 0.7742,
"copper": 0.109,
"selenium": 11.85,
"thiamin": 0.256,
"riboflavin": 0.0205,
"niacin": 2.3179,
"vitamin_b6": 0.1454,
"folate": 91.64,
"folic_acid": 86.9,
"choline": 3.318,
"vitamin_e": 0.0632,
"water": 107.4558
},
"is_default": true
}
],
"is_generic": true,
"categorizations": {}
}