{
"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'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Información Nutricional API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
Calorías proteínas grasas carbohidratos vitaminas y minerales (36 nutrientes) para 7,793 alimentos de datos oficiales del USDA Búsqueda tamaños de porciones y totales de recetas en una sola llamada
Cada punto final devuelve información nutricional de varios alimentos incluidos calorías proteínas grasas carbohidratos fibra azúcares vitaminas y minerales Los datos son proporcionados por el USDA y cubren 7793 alimentos
Los campos clave incluyen `fdcId`, `name`, `category` y detalles de nutrientes como `energy_kcal`, `protein_g`, `fat_g` y `carbohydrates_g` Cada punto final proporciona campos específicos relevantes para su funcionalidad
Los parámetros varían según el punto final pero generalmente incluyen nombres de alimentos para buscar tamaños de porción para cálculos y solicitudes específicas de nutrientes Los usuarios pueden personalizar las solicitudes especificando estos parámetros para adaptar la salida
Los datos de respuesta están estructurados en formato JSON con secciones principales para elementos consultados detalles de nutrientes y totales Cada alimento se presenta con sus valores nutricionales por 100g o tamaños de porción especificados
Los datos provienen de la base de datos FoodData Central del USDA, lo que garantiza una alta precisión y fiabilidad. La API utiliza datos oficiales del USDA, que se actualizan y mantienen regularmente para asegurar la calidad
Los casos de uso típicos incluyen la planificación de comidas el seguimiento de dietas el análisis de recetas y la educación nutricional Los usuarios pueden calcular los nutrientes totales de las recetas o analizar artículos de alimentos individuales con fines de salud
Los usuarios pueden utilizar los datos devueltos integrándolos en aplicaciones para el seguimiento dietético, creando planes de comidas o desarrollando herramientas enfocadas en la nutrición. El formato estructurado permite un fácil análisis y procesamiento
Si los resultados son parciales o vacíos, los usuarios deben verificar la precisión de sus parámetros de consulta Implementar el manejo de errores en las aplicaciones puede ayudar a gestionar tales casos, proporcionando retroalimentación al usuario o sugerencias alternativas