food

Get the food information from the server

get/food

Query parameters

food_namestring required
user_idnumber

Response

successful operation

adult_serving_size_gnumber nullable
base_namestring
brandstring
carbohydrate_gnumber
custom_tipstring nullable
descriptionstring nullable
favoriteboolean

if this food is set favorite of the queried user

food_image_urlstring nullable required
ingredients_strstring nullable
level1string nullable
level2string nullable
level3string nullable
level4string nullable
namestring required
name_translationsobject nullable required
notestring nullable
nutrition_sourcestring
nutrition_source_idinteger
previously_loggedboolean

if this food is previously logged by the queried user

primary_data_origin_codestring nullable

Stable provenance code from food.primary_data_origin_code when the hit came from DBFood

rxfood_idstring nullable required
similar_itemsstring[]
statusstring

Example response

{
  "nutrient_overrides": {
    "aa_patient": {
      "ontology": {
        "id": 42,
        "levels": [
          "food"
        ]
      }
    },
    "bb_reviewer": {
      "ontology": {
        "id": 42,
        "levels": [
          "food"
        ]
      }
    },
    "cc_external": {
      "ontology": {
        "id": 42,
        "levels": [
          "food"
        ]
      }
    },
    "dd_estimate": {
      "ontology": {
        "id": 42,
        "levels": [
          "food"
        ]
      }
    },
    "ee_validation": {
      "ontology": {
        "id": 42,
        "levels": [
          "food"
        ]
      }
    }
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.