{
"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'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Informações Nutricionais API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
Calorias proteínas gorduras carboidratos vitaminas e minerais (36 nutrientes) para 7.793 alimentos a partir de dados oficiais do USDA Pesquisar tamanhos de porções e totais de receitas em uma única chamada
Cada endpoint retorna informações nutricionais para vários alimentos incluindo calorias proteína gordura carboidratos fibras açúcares vitaminas e minerais Os dados são provenientes do USDA e abrangem 7.793 alimentos
Os campos principais incluem `fdcId`, `name`, `category` e detalhes de nutrientes como `energy_kcal`, `protein_g`, `fat_g` e `carbohydrates_g` Cada endpoint fornece campos específicos relevantes à sua funcionalidade
Os parâmetros variam de acordo com o endpoint, mas geralmente incluem nomes de alimentos para pesquisa, tamanhos de porções para cálculos e solicitações específicas de nutrientes. Os usuários podem personalizar as solicitações especificando esses parâmetros para adequar a saída
Os dados de resposta estão estruturados no formato JSON, com seções principais para itens consultados, detalhes de nutrientes e totais. Cada item alimentar é apresentado com seus valores nutricionais por 100g ou tamanhos de porção especificados
Os dados são provenientes do USDA FoodData Central, garantindo alta precisão e confiabilidade A API utiliza dados oficiais do USDA, que são regularmente atualizados e mantidos para qualidade
Os casos de uso típicos incluem planejamento de refeições acompanhamento dietético análise de receitas e educação nutricional Os usuários podem calcular os nutrientes totais para receitas ou analisar itens alimentares individuais para fins de saúde
Os usuários podem utilizar os dados retornados integrando-os em aplicações para monitoramento dietético, criando planos de refeições ou desenvolvendo ferramentas focadas em nutrição O formato estruturado permite fácil análise e extração
Se os resultados forem parciais ou vazios, os usuários devem verificar seus parâmetros de consulta quanto à precisão Implementar tratamento de erros em aplicativos pode ajudar a gerenciar tais casos, fornecendo feedback ao usuário ou sugestões alternativas