Nutrition Lookup

Get nutritional information, ingredients, and serving sizes for hundreds of thousands of food items in the United States.

Get your free API key
No credit card required
Other tools

Usage

Returns nutritional information for a food items in the United States. Food items can be found with the Nutrition Search API by their UPC, name, and brand.

Parameters

id
The id of the food item to retrieve.

key
Your Vay API key string. This value always starts with vay_. If you do not have an API key, you can get one for free here. No credit card required.
Returns

id
The requested food item.

owner
The company the produces the food item.

upc
The UPC (Universal Product Code) of the item.

name
The name of the food product.

ingredients
The list of ingredients separated by comma, as it appears on the food label.

servingSize
The serving size of the food item, in servingUnit.

servingUnit
The unit of the servingSize.

nutrients[I].name
The food label name of the nutrient.

nutrients[I].unit
The unit of the amount of the nutrient.

nutrients[I].amount
The amount of the nutrient in the food.
GET
/nutrition/resolve
cURL
curl https://api.vay.studio/nutrition/resolve \
-d id=503291 \
-d key=YOUR_API_KEY \
-G
Response
{
    "errorCode": 0,
    "error": "",
    "result": {
        "id": 503291,
        "owner": "Mars Chocolate North America LLC",
        "upc": 40000494072,
        "name": "SNICKERS, SNICKERS",
        "ingredients": "MILK CHOCOLATE (SUGAR, COCOA BUTTER, CHOCOLATE, SKIM MILK, LACTOSE, MILKFAT, SOY LECITHIN, ARTIFICIAL FLAVOR), PEANUTS, CORN SYRUP, SUGAR, PALM OIL, SKIM MILK, LACTOSE PARTIALLY HYDROGENATED SOYBEAN OIL, SALT, EGG WHITES, ARTIFICIAL FLAVOR.",
        "servingSize": 47,
        "servingUnit": "g",
        "nutrients": [
            {
                "name": "Calcium, Ca",
                "unit": "MG",
                "amount": 85
            },
            {
                "name": "Iron, Fe",
                "unit": "MG",
                "amount": 0
            },
            {
                "name": "Vitamin A, IU",
                "unit": "IU",
                "amount": 0
            },
            {
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG",
                "amount": 0
            },
            {
                "name": "Protein",
                "unit": "G",
                "amount": 8.51
            },
            {
                "name": "Total lipid (fat)",
                "unit": "G",
                "amount": 21.28
            },
            {
                "name": "Carbohydrate, by difference",
                "unit": "G",
                "amount": 61.7
            },
            {
                "name": "Energy",
                "unit": "KCAL",
                "amount": 468
            },
            {
                "name": "Sugars, total including NLEA",
                "unit": "G",
                "amount": 51.06
            },
            {
                "name": "Fiber, total dietary",
                "unit": "G",
                "amount": 2.1
            },
            {
                "name": "Sodium, Na",
                "unit": "MG",
                "amount": 234
            },
            {
                "name": "Cholesterol",
                "unit": "MG",
                "amount": 11
            },
            {
                "name": "Fatty acids, total trans",
                "unit": "G",
                "amount": 0
            },
            {
                "name": "Fatty acids, total saturated",
                "unit": "G",
                "amount": 8.51
            }
        ]
    }
}
Proudly made in Encinitas, CA
© Copyright 2020 Vay Technologies LLC.