{
"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/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/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/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/35272/food+categories' --header 'Authorization: Bearer YOUR_API_KEY'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए पोषण संबंधी तथ्य API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
आहार में कैलोरी, प्रोटीन, वसा, कार्ब्स, विटामिन और खनिज (36 पोषक तत्व) 7,793 खाद्य वस्तुओं के लिए आधिकारिक USDA डेटा से। खोजें, भाग के आकार और व्यंजन कुल एक कॉल में।
प्रत्येक एंडपॉइंट विभिन्न खाद्य पदार्थों के लिए पोषण संबंधी जानकारी लौटाता है जिसमें कैलोरी, प्रोटीन, वसा, कार्बोहाइड्रेट, फाइबर, चीनी, विटामिन और मिनरल शामिल हैं डेटा यूएसडीए से लिया गया है और इसमें 7793 खाद्य पदार्थ शामिल हैं
मुख्य फ़ील्ड में `fdcId`, `name`, `category` और पोषण विवरण जैसे `energy_kcal`, `protein_g`, `fat_g`, और `carbohydrates_g` शामिल हैं प्रत्येक एंडपॉइंट अपनी कार्यक्षमता से संबंधित विशिष्ट फ़ील्ड प्रदान करता है
पैरामीटर समाप्ति के अनुसार भिन्न होते हैं लेकिन सामान्यतः उनकी खोज के लिए खाद्य नाम शामिल होते हैं गणनाओं के लिए भाग का आकार और विशिष्ट पोषण अनुरोध शामिल होते हैं उपयोगकर्ता इन पैरामीटर को निर्दिष्ट करके अनुरोधों को अनुकूलित कर सकते हैं ताकि आउटपुट को अनुकूलित किया जा सके
प्रतिक्रिया डेटा JSON प्रारूप में ढांचाित है मुख्य अनुभागों के साथ पूछे गए आइटम पोषक तत्वों के विवरण और कुल के लिए प्रत्येक खाद्य आइटम को 100 ग्राम या निर्दिष्ट भाग के आकार के अनुसार उसके पोषण संबंधी मानों के साथ प्रस्तुत किया गया है
डाटा यूएसडीए फूडडेटा सेंट्रल से लिया गया है जो उच्च सटीकता और विश्वसनीयता सुनिश्चित करता है एपीआई आधिकारिक यूएसडीए डेटा का उपयोग करता है जिसे नियमित रूप से अपडेट और गुणवत्ता के लिए बनाए रखा जाता है
विशिष्ट उपयोग के मामलों में खाने की योजना बनाना आहार ट्रैकिंग करना नुस्खा विश्लेषण करना और पोषण शिक्षा शामिल हैं उपयोगकर्ता नुस्खों के लिए कुल पोषक तत्वों की गणना कर सकते हैं या स्वास्थ्य के उद्देश्य से व्यक्तिगत खाद्य वस्तुओं का विश्लेषण कर सकते हैं
उपयोगकर्ता returned डेटा का उपयोग आहार ट्रैकिंग के लिए आवेदन में एकीकृत करके भोजन योजनाएँ बनाने या पोषण-केंद्रित उपकरण विकसित करने के लिए कर सकते हैं संरचित प्रारूप आसान पार्सिंग और विश्लेषण की अनुमति देता है
अगर परिणाम आंशिक या खाली हैं तो उपयोगकर्ताओं को अपनी क्वेरी पैरामीटर की सटीकता की जांच करनी चाहिए एप्लिकेशनों में त्रुटि प्रबंधन लागू करना ऐसे मामलों का प्रबंधन करने में मदद कर सकता है उपयोगकर्ता प्रतिक्रिया या वैकल्पिक सुझाव प्रदान करना