FDC
Returns a list of foods that matched search (query) keywords
Search for foods using keywords. Results can be filtered by dataType and there are options for result page sizes or sorting.
post/v1/foods/search
Request
- Base URL: https://api.nal.usda.gov/fdc
- URL: https://api.nal.usda.gov/fdc/v1/foods/search
- Auth: API key in query parameter api_key
Request body
Example request
{
"query": "Cheddar cheese",
"dataType": [
"Foundation",
"SR Legacy"
],
"pageSize": 25,
"pageNumber": 2,
"brandOwner": "Kar Nut Products Company"
}Response
List of foods that matched search terms
Example response
[
{
"totalHits": 1034,
"foods": [
{
"fdcId": 45001529,
"dataType": "Branded",
"description": "BROCCOLI",
"foodNutrients": [
{
"number": 303,
"name": "Iron, Fe",
"amount": 0.53,
"unitName": "mg",
"derivationCode": "LCCD",
"derivationDescription": "Calculated from a daily value percentage per serving size measure"
}
],
"publicationDate": "4/1/2019",
"brandOwner": "Supervalu, Inc.",
"gtinUpc": "041303020937",
"additionalDescriptions": "Coon; sharp cheese; Tillamook; Hoop; Pioneer; New York; Wisconsin; Longhorn"
}
]
}
]Changes
No recorded changes to this operation across all 1 revision of this API.