food

Get the food information from the server by ndbno

get/foods/ndbno/{ndbno}

Path parameters

ndbnostring required

Response

successful operation

adult_serving_size_gnumber nullable
base_namestring
brandstring
carbohydrate_gnumber
custom_tipstring nullable
descriptionstring nullable
energy_kcalnumber nullable
favoriteboolean

if this food is set favorite of the queried user

filter_tagsstring[] nullable
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

protein_gnumber nullable
recipe_idinteger nullable
result_kind'food' | 'recipe'

Discriminator so a logging client can call from_recipe when the hit is a recipe.

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

Changed in 1 of the 15 revisions of this API.5

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added