GETGet Food
https://food-nutrition-information.dataandapis.com/v1/food/{id}
Parámetros de ruta
| Parámetro | Ejemplo | |
|---|---|---|
| id | 1750340 | Obligatorio |
Petición de ejemplo
curl "https://food-nutrition-information.dataandapis.com/v1/food/1750340" \
-H "X-Api-Key: YOUR_API_KEY"Respuesta de ejemplo{
"fdcId": 1750340,
"description": "Cheese, cheddar",
"dataType": "Foundation",
"publicationDate": "4/1/2019",
"foodCategory": {
"description": "Dairy and Egg Products"
},
"foodNutrients": [
{
"nutrient": {
"id": 1008,
"name": "Energy",
"unitName": "kcal"
},
"amount": 403
},
{
"nutrient": {
"id": 1003,
"name": "Protein",
"unitName": "g"
},
"amount": 22.9
},
{
"nutrient": {
"id": 1004,
…
Ver la respuesta completa
{
"fdcId": 1750340,
"description": "Cheese, cheddar",
"dataType": "Foundation",
"publicationDate": "4/1/2019",
"foodCategory": {
"description": "Dairy and Egg Products"
},
"foodNutrients": [
{
"nutrient": {
"id": 1008,
"name": "Energy",
"unitName": "kcal"
},
"amount": 403
},
{
"nutrient": {
"id": 1003,
"name": "Protein",
"unitName": "g"
},
"amount": 22.9
},
{
"nutrient": {
"id": 1004,
…{
"fdcId": 1750340,
"description": "Cheese, cheddar",
"dataType": "Foundation",
"publicationDate": "4/1/2019",
"foodCategory": {
"description": "Dairy and Egg Products"
},
"foodNutrients": [
{
"nutrient": {
"id": 1008,
"name": "Energy",
"unitName": "kcal"
},
"amount": 403
},
{
"nutrient": {
"id": 1003,
"name": "Protein",
"unitName": "g"
},
"amount": 22.9
},
{
"nutrient": {
"id": 1004,
"name": "Total lipid (fat)",
"unitName": "g"
},
"amount": 33.3
},
{
"nutrient": {
"id": 1005,
"name": "Carbohydrate, by difference",
"unitName": "g"
},
"amount": 3.09
},
{
"nutrient": {
"id": 1087,
"name": "Calcium, Ca",
"unitName": "mg"
},
"amount": 710
}
]
}




