Get Food By Fdc Id
Example request and response for retrieving a single branded food item using GET /v1/food/{fdcId}
Get Food By Fdc Id is an example object payload from FoodData Central, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
Example Payload
{
"summary": "Get a branded food item by FDC ID",
"description": "Example request and response for retrieving a single branded food item using GET /v1/food/{fdcId}",
"request": {
"method": "GET",
"url": "https://api.nal.usda.gov/fdc/v1/food/534358?api_key=DEMO_KEY",
"parameters": {
"fdcId": "534358",
"format": "full",
"api_key": "DEMO_KEY"
}
},
"response": {
"status": 200,
"body": {
"fdcId": 534358,
"dataType": "Branded",
"description": "NUT 'N BERRY MIX",
"brandOwner": "Kar Nut Products Company",
"gtinUpc": "077034085228",
"ingredients": "PEANUTS (PEANUTS, PEANUT AND/OR SUNFLOWER OIL). RAISINS. DRIED CRANBERRIES (CRANBERRIES, SUGAR, SUNFLOWER OIL). SUNFLOWER KERNELS AND ALMONDS (SUNFLOWER KERNELS AND ALMONDS, PEANUT AND/OR SUNFLOWER OIL).",
"servingSize": 28,
"servingSizeUnit": "g",
"householdServingFullText": "1 ONZ",
"brandedFoodCategory": "Popcorn, Peanuts, Seeds & Related Snacks",
"availableDate": "8/18/2018",
"modifiedDate": "8/18/2018",
"publicationDate": "4/1/2019",
"foodClass": "Branded",
"dataSource": "LI",
"labelNutrients": {
"fat": { "value": 8.9992 },
"saturatedFat": { "value": 0.9996 },
"transFat": { "value": 0 },
"cholesterol": { "value": 0 },
"sodium": { "value": 0 },
"carbohydrates": { "value": 12.0008 },
"fiber": { "value": 1.988 },
"sugars": { "value": 7.9996 },
"protein": { "value": 4.0012 },
"calcium": { "value": 19.88 },
"iron": { "value": 0.7196 },
"postassium": { "value": 159.88 },
"calories": { "value": 140 }
},
"foodNutrients": [
{
"id": 1008,
"amount": 500,
"type": "FoodNutrient",
"nutrient": {
"id": 1008,
"number": "208",
"name": "Energy",
"rank": 300,
"unitName": "kcal"
}
},
{
"id": 1005,
"amount": 42.86,
"type": "FoodNutrient",
"nutrient": {
"id": 1005,
"number": "205",
"name": "Carbohydrate, by difference",
"rank": 1110,
"unitName": "g"
}
},
{
"id": 1004,
"amount": 32.14,
"type": "FoodNutrient",
"nutrient": {
"id": 1004,
"number": "204",
"name": "Total lipid (fat)",
"rank": 800,
"unitName": "g"
}
},
{
"id": 1003,
"amount": 14.29,
"type": "FoodNutrient",
"nutrient": {
"id": 1003,
"number": "203",
"name": "Protein",
"rank": 600,
"unitName": "g"
}
}
]
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/examples/get-food-by-fdc-id"
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.