Nutritionix · JSON Structure

Track Common Food Structure

A matched common (generic) food from instant search.

Type: object Properties: 8
RestaurantHealthNutritionFoodFitnessPublic APIs

CommonFood is a JSON Structure definition published by Nutritionix, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

food_name serving_unit tag_name serving_qty common_type tag_id photo locale

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nutritionix/refs/heads/main/json-structure/track-common-food-structure.json",
  "name": "CommonFood",
  "description": "A matched common (generic) food from instant search.",
  "type": "object",
  "properties": {
    "food_name": {
      "type": "string",
      "example": "cheese"
    },
    "serving_unit": {
      "type": "string",
      "example": "cup, diced"
    },
    "tag_name": {
      "type": "string",
      "example": "cheese"
    },
    "serving_qty": {
      "type": "double",
      "example": 1
    },
    "common_type": {
      "type": "int32",
      "nullable": true
    },
    "tag_id": {
      "type": "string",
      "example": "402"
    },
    "photo": {
      "$ref": "#/components/schemas/Photo"
    },
    "locale": {
      "type": "string",
      "example": "en_US"
    }
  }
}