{
"query": "chicken breast",
"count": 10,
"foods": [
{
"fdcId": 171477,
"name": "Chicken, broilers or fryers, breast, meat only, cooked, roasted",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 165,
"protein_g": 31,
"fat_g": 3.57,
"carbohydrates_g": 0
}
},
{
"fdcId": 174608,
"name": "Chicken breast, roll, oven-roasted",
"category": "Sausages and Luncheon Meats",
"per100g": {
"energy_kcal": 134,
"protein_g": 14.6,
"fat_g": 7.65,
"carbohydrates_g": 1.79
}
},
{
"fdcId": 172963,
"name": "Chicken breast, oven-roasted, fat-free, sliced",
"category": "Sausages and Luncheon Meats",
"per100g": {
"energy_kcal": 79,
"protein_g": 16.8,
"fat_g": 0.39,
"carbohydrates_g": 2.17
}
},
{
"fdcId": 171515,
"name": "Chicken breast tenders, breaded, uncooked",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 263,
"protein_g": 14.7,
"fat_g": 15.8,
"carbohydrates_g": 15
}
},
{
"fdcId": 172962,
"name": "Chicken breast, fat-free, mesquite flavor, sliced",
"category": "Sausages and Luncheon Meats",
"per100g": {
"energy_kcal": 80,
"protein_g": 16.8,
"fat_g": 0.39,
"carbohydrates_g": 2.25
}
},
{
"fdcId": 171445,
"name": "Chicken, broiler, rotisserie, BBQ, breast, meat only",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 144,
"protein_g": 28,
"fat_g": 3.57,
"carbohydrates_g": 0
}
},
{
"fdcId": 173874,
"name": "Chicken breast, deli, rotisserie seasoned, sliced, prepackaged",
"category": "Sausages and Luncheon Meats",
"per100g": {
"energy_kcal": 98,
"protein_g": 17.4,
"fat_g": 1.86,
"carbohydrates_g": 2.92
}
},
{
"fdcId": 171125,
"name": "Chicken, broiler, rotisserie, BBQ, breast, meat and skin",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 175,
"protein_g": 26.4,
"fat_g": 7.67,
"carbohydrates_g": 0.09
}
},
{
"fdcId": 171514,
"name": "Chicken breast tenders, breaded, cooked, microwaved",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 252,
"protein_g": 16.4,
"fat_g": 12.9,
"carbohydrates_g": 17.6
}
},
{
"fdcId": 171474,
"name": "Chicken, broilers or fryers, breast, meat and skin, raw",
"category": "Poultry Products",
"per100g": {
"energy_kcal": 172,
"protein_g": 20.8,
"fat_g": 9.25,
"carbohydrates_g": 0
}
}
],
"source": "USDA FoodData Central, SR Legacy (public domain, CC0)"
}
curl --location --request GET 'https://zylalabs.com/api/14207/nutrition+facts+api+-+usda+calories+and+macros/35269/search+foods?q=chicken breast&limit=10' --header 'Authorization: Bearer YOUR_API_KEY'
{
"fdcId": 173944,
"name": "Bananas, raw",
"category": "Fruits and Fruit Juices",
"per100g": {
"energy_kcal": {
"amount": 89,
"unit": "kcal"
},
"protein": {
"amount": 1.09,
"unit": "g"
},
"fat": {
"amount": 0.33,
"unit": "g"
},
"carbohydrates": {
"amount": 22.8,
"unit": "g"
},
"fiber": {
"amount": 2.6,
"unit": "g"
},
"sugars": {
"amount": 12.2,
"unit": "g"
},
"water": {
"amount": 74.9,
"unit": "g"
},
"saturated_fat": {
"amount": 0.112,
"unit": "g"
},
"monounsaturated_fat": {
"amount": 0.032,
"unit": "g"
},
"polyunsaturated_fat": {
"amount": 0.073,
"unit": "g"
},
"trans_fat": {
"amount": 0,
"unit": "g"
},
"cholesterol": {
"amount": 0,
"unit": "mg"
},
"sodium": {
"amount": 1,
"unit": "mg"
},
"potassium": {
"amount": 358,
"unit": "mg"
},
"calcium": {
"amount": 5,
"unit": "mg"
},
"iron": {
"amount": 0.26,
"unit": "mg"
},
"magnesium": {
"amount": 27,
"unit": "mg"
},
"phosphorus": {
"amount": 22,
"unit": "mg"
},
"zinc": {
"amount": 0.15,
"unit": "mg"
},
"copper": {
"amount": 0.078,
"unit": "mg"
},
"manganese": {
"amount": 0.27,
"unit": "mg"
},
"selenium": {
"amount": 1,
"unit": "µg"
},
"vitamin_a_rae": {
"amount": 3,
"unit": "µg"
},
"vitamin_c": {
"amount": 8.7,
"unit": "mg"
},
"vitamin_d": {
"amount": 0,
"unit": "µg"
},
"vitamin_e": {
"amount": 0.1,
"unit": "mg"
},
"vitamin_k": {
"amount": 0.5,
"unit": "µg"
},
"thiamin_b1": {
"amount": 0.031,
"unit": "mg"
},
"riboflavin_b2": {
"amount": 0.073,
"unit": "mg"
},
"niacin_b3": {
"amount": 0.665,
"unit": "mg"
},
"vitamin_b6": {
"amount": 0.367,
"unit": "mg"
},
"folate_dfe": {
"amount": 20,
"unit": "µg"
},
"vitamin_b12": {
"amount": 0,
"unit": "µg"
},
"choline": {
"amount": 9.8,
"unit": "mg"
},
"caffeine": {
"amount": 0,
"unit": "mg"
},
"alcohol": {
"amount": 0,
"unit": "g"
}
},
"portions": [
{
"description": "1 NLEA serving",
"grams": 126
},
{
"description": "1 extra large (9\" or longer)",
"grams": 152
},
{
"description": "1 large (8\" to 8-7/8\" long)",
"grams": 136
},
{
"description": "1 cup, sliced",
"grams": 150
},
{
"description": "1 small (6\" to 6-7/8\" long)",
"grams": 101
},
{
"description": "1 extra small (less than 6\" long)",
"grams": 81
},
{
"description": "1 medium (7\" to 7-7/8\" long)",
"grams": 118
},
{
"description": "1 cup, mashed",
"grams": 225
}
],
"grams": 120,
"forGrams": {
"energy_kcal": {
"amount": 106.8,
"unit": "kcal"
},
"protein": {
"amount": 1.308,
"unit": "g"
},
"fat": {
"amount": 0.396,
"unit": "g"
},
"carbohydrates": {
"amount": 27.36,
"unit": "g"
},
"fiber": {
"amount": 3.12,
"unit": "g"
},
"sugars": {
"amount": 14.64,
"unit": "g"
},
"water": {
"amount": 89.88,
"unit": "g"
},
"saturated_fat": {
"amount": 0.134,
"unit": "g"
},
"monounsaturated_fat": {
"amount": 0.038,
"unit": "g"
},
"polyunsaturated_fat": {
"amount": 0.088,
"unit": "g"
},
"trans_fat": {
"amount": 0,
"unit": "g"
},
"cholesterol": {
"amount": 0,
"unit": "mg"
},
"sodium": {
"amount": 1.2,
"unit": "mg"
},
"potassium": {
"amount": 429.6,
"unit": "mg"
},
"calcium": {
"amount": 6,
"unit": "mg"
},
"iron": {
"amount": 0.312,
"unit": "mg"
},
"magnesium": {
"amount": 32.4,
"unit": "mg"
},
"phosphorus": {
"amount": 26.4,
"unit": "mg"
},
"zinc": {
"amount": 0.18,
"unit": "mg"
},
"copper": {
"amount": 0.094,
"unit": "mg"
},
"manganese": {
"amount": 0.324,
"unit": "mg"
},
"selenium": {
"amount": 1.2,
"unit": "µg"
},
"vitamin_a_rae": {
"amount": 3.6,
"unit": "µg"
},
"vitamin_c": {
"amount": 10.44,
"unit": "mg"
},
"vitamin_d": {
"amount": 0,
"unit": "µg"
},
"vitamin_e": {
"amount": 0.12,
"unit": "mg"
},
"vitamin_k": {
"amount": 0.6,
"unit": "µg"
},
"thiamin_b1": {
"amount": 0.037,
"unit": "mg"
},
"riboflavin_b2": {
"amount": 0.088,
"unit": "mg"
},
"niacin_b3": {
"amount": 0.798,
"unit": "mg"
},
"vitamin_b6": {
"amount": 0.44,
"unit": "mg"
},
"folate_dfe": {
"amount": 24,
"unit": "µg"
},
"vitamin_b12": {
"amount": 0,
"unit": "µg"
},
"choline": {
"amount": 11.76,
"unit": "mg"
},
"caffeine": {
"amount": 0,
"unit": "mg"
},
"alcohol": {
"amount": 0,
"unit": "g"
}
},
"source": "USDA FoodData Central, SR Legacy (public domain, CC0)"
}
curl --location --request GET 'https://zylalabs.com/api/14207/nutrition+facts+api+-+usda+calories+and+macros/35270/food+details?grams=120&fdcId=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"items": [
{
"query": "eggs",
"fdcId": 171287,
"matched": "Egg, whole, raw, fresh",
"grams": 100,
"energy_kcal": 143,
"protein_g": 12.6,
"fat_g": 9.51,
"carbohydrates_g": 0.72
},
{
"query": "oats",
"fdcId": 173904,
"matched": "Cereals, oats, regular and quick, not fortified, dry",
"grams": 50,
"energy_kcal": 189.5,
"protein_g": 6.6,
"fat_g": 3.26,
"carbohydrates_g": 33.85
},
{
"query": "whole milk",
"fdcId": 171265,
"matched": "Milk, whole, 3.25% milkfat, with added vitamin D",
"grams": 200,
"energy_kcal": 122,
"protein_g": 6.3,
"fat_g": 6.5,
"carbohydrates_g": 9.6
}
],
"totals": {
"energy_kcal": {
"amount": 454.5,
"unit": "kcal"
},
"protein": {
"amount": 25.5,
"unit": "g"
},
"fat": {
"amount": 19.27,
"unit": "g"
},
"carbohydrates": {
"amount": 44.17,
"unit": "g"
},
"fiber": {
"amount": 5.05,
"unit": "g"
},
"sugars": {
"amount": 10.965,
"unit": "g"
},
"water": {
"amount": 257.8,
"unit": "g"
},
"saturated_fat": {
"amount": 7.405,
"unit": "g"
},
"monounsaturated_fat": {
"amount": 6.274,
"unit": "g"
},
"polyunsaturated_fat": {
"amount": 3.45,
"unit": "g"
},
"trans_fat": {
"amount": 0.038,
"unit": "g"
},
"cholesterol": {
"amount": 392,
"unit": "mg"
},
"sodium": {
"amount": 231,
"unit": "mg"
},
"potassium": {
"amount": 583,
"unit": "mg"
},
"calcium": {
"amount": 308,
"unit": "mg"
},
"iron": {
"amount": 3.935,
"unit": "mg"
},
"magnesium": {
"amount": 101,
"unit": "mg"
},
"phosphorus": {
"amount": 571,
"unit": "mg"
},
"zinc": {
"amount": 3.85,
"unit": "mg"
},
"copper": {
"amount": 0.318,
"unit": "mg"
},
"manganese": {
"amount": 1.851,
"unit": "mg"
},
"selenium": {
"amount": 52.55,
"unit": "µg"
},
"vitamin_a_rae": {
"amount": 252,
"unit": "µg"
},
"vitamin_c": {
"amount": 0,
"unit": "mg"
},
"vitamin_d": {
"amount": 4.6,
"unit": "µg"
},
"vitamin_e": {
"amount": 1.4,
"unit": "mg"
},
"vitamin_k": {
"amount": 1.9,
"unit": "µg"
},
"thiamin_b1": {
"amount": 0.362,
"unit": "mg"
},
"riboflavin_b2": {
"amount": 0.872,
"unit": "mg"
},
"niacin_b3": {
"amount": 0.813,
"unit": "mg"
},
"vitamin_b6": {
"amount": 0.292,
"unit": "mg"
},
"folate_dfe": {
"amount": 73,
"unit": "µg"
},
"vitamin_b12": {
"amount": 1.79,
"unit": "µg"
},
"choline": {
"amount": 342.8,
"unit": "mg"
},
"caffeine": {
"amount": 0,
"unit": "mg"
},
"alcohol": {
"amount": 0,
"unit": "g"
}
},
"source": "USDA FoodData Central, SR Legacy (public domain, CC0)"
}
curl --location --request GET 'https://zylalabs.com/api/14207/nutrition+facts+api+-+usda+calories+and+macros/35271/recipe+meal+totals?items=eggs:100;oats:50;whole milk:200' --header 'Authorization: Bearer YOUR_API_KEY'
{
"categories": [
"American Indian/Alaska Native Foods",
"Baby Foods",
"Baked Products",
"Beef Products",
"Beverages",
"Breakfast Cereals",
"Cereal Grains and Pasta",
"Dairy and Egg Products",
"Fast Foods",
"Fats and Oils",
"Finfish and Shellfish Products",
"Fruits and Fruit Juices",
"Lamb, Veal, and Game Products",
"Legumes and Legume Products",
"Meals, Entrees, and Side Dishes",
"Nut and Seed Products",
"Pork Products",
"Poultry Products",
"Restaurant Foods",
"Sausages and Luncheon Meats",
"Snacks",
"Soups, Sauces, and Gravies",
"Spices and Herbs",
"Sweets",
"Vegetables and Vegetable Products"
],
"source": "USDA FoodData Central, SR Legacy (public domain, CC0)"
}
curl --location --request GET 'https://zylalabs.com/api/14207/nutrition+facts+api+-+usda+calories+and+macros/35272/food+categories' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Nutrition Facts API - USDA Calories and Macros simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Calories, protein, fat, carbs, vitamins and minerals (36 nutrients) for 7,793 foods from official USDA data. Search, portion sizes and recipe totals in one call.
Each endpoint returns nutritional information for various foods, including calories, protein, fat, carbohydrates, fiber, sugars, vitamins, and minerals. The data is sourced from the USDA and covers 7,793 foods.
Key fields include `fdcId`, `name`, `category`, and nutrient details such as `energy_kcal`, `protein_g`, `fat_g`, and `carbohydrates_g`. Each endpoint provides specific fields relevant to its functionality.
Parameters vary by endpoint but generally include food names for searching, portion sizes for calculations, and specific nutrient requests. Users can customize requests by specifying these parameters to tailor the output.
Response data is structured in JSON format, with main sections for queried items, nutrient details, and totals. Each food item is presented with its nutritional values per 100g or specified portion sizes.
The data is sourced from the USDA FoodData Central, ensuring high accuracy and reliability. The API utilizes official USDA data, which is regularly updated and maintained for quality.
Typical use cases include meal planning, dietary tracking, recipe analysis, and nutritional education. Users can calculate total nutrients for recipes or analyze individual food items for health purposes.
Users can utilize the returned data by integrating it into applications for dietary tracking, creating meal plans, or developing nutrition-focused tools. The structured format allows for easy parsing and analysis.
If results are partial or empty, users should check their query parameters for accuracy. Implementing error handling in applications can help manage such cases, providing user feedback or alternative suggestions.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund