FoodData Central
FoodData Central — free-tier JSON endpoint
FoodData Central offers a free API tier. We verified JSON on a sample GET (Health). Check provider docs for key requirements and limits.
GET https://api.nal.usda.gov/fdc/v1/foods/search?query=apple&pageSize=1&api_key=DEMO_KEY
{
"totalHits": 26835,
"currentPage": 1,
"totalPages": 26835,
"pageList": [
1,
2
],
"foodSearchCriteria": {
"query": "apple",
"generalSearchInput": "apple",
"pageNumber": 1,
"numberOfResultsPerPage": 50,
"pageSize": 1,
"requireAllWords": false
},
"foods": [
{
"fdcId": 2117388,
"description": "APPLE",
"dataType": "Branded",
"gtinUpc": "070038322238",
"publishedDate": "2021-10-28",
"brandOwner": "Associated Wholesale Grocers, Inc.",
"brandName": "BEST CHOICE",
"ingredients": "FILTERED WATER, APPLE JUICE CONCENTRATE, ASCORBIC ACID (VITAMIN C)."
}
],
"aggregations": {
"dataType": {
"Branded": 26698,
"SR Legacy": 89,
"Survey (FNDDS)": 42,
"Foundation": 6
},
"nutrients": {}
}
}curl "https://api.nal.usda.gov/fdc/v1/foods/search?query=apple&pageSize=1&api_key=DEMO_KEY"const res = await fetch("https://api.nal.usda.gov/fdc/v1/foods/search?query=apple&pageSize=1&api_key=DEMO_KEY");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.nal.usda.gov/fdc/v1/foods/search?query=apple&pageSize=1&api_key=DEMO_KEY")
print(res.json())/fdc/v1/foods/search?query=apple&pageSize=1&api_key=DEMO_KEYPROBEDFoodData Central — free-tier JSON endpoint
/fdcFdc — documented GET route.
/fdc/1Fdc details by ID (example: 1).
/fdc?limit=10Fdc — documented GET route.
/fdc/search?q=testSearch by query parameters.
/fdc/v1/foods/search?limit=5Search by query parameters.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
FoodData Central: common questions
Is FoodData Central free to use?
Yes — FoodData Central is a free health & food API. Free tier: Free tier — API key may be required for production. Whether the free tier allows commercial use is unclear — check the provider docs.
Does FoodData Central need an API key?
Yes — FoodData Central needs a free API key, which you pass on each request. Rate limits: 10 req/window · 9 remaining.
Can I call FoodData Central from the browser?
Yes — FoodData Central returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is FoodData Central up right now?
As of our last scheduled check, FoodData Central is healthy with 98.0% uptime over 90 days and a 1726 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.