USDA FDC API

endpoints to retrieve nutrient data

GitHub OpenAPI
Business capability
Nutrition & Food Data AE-130.30

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/food/{fdcId} Get one food item by FDC ID · Fetches details for one food item by FDC ID #
Ask an LLM
“How do I look up a single food item's details from its FDC ID?”
“Can I get only certain nutrients for one food?”
Tell an agent
Get food item {fdcId}.
Show {fdcId} with nutrients {nutrients}.
GET /v1/foods Get several foods by FDC IDs in a query · Fetches details for multiple food items using input FDC IDs #
Ask an LLM
“Can I fetch multiple food items by FDC ID in one GET request?”
“What happens if some of the FDC IDs I list don't exist?”
Tell an agent
Get the foods with FDC IDs {fdcIds}.
Fetch {fdcIds} and return only nutrients {nutrients}.
POST /v1/foods Get several foods by FDC IDs in a POST body · Fetches details for multiple food items using input FDC IDs #
Ask an LLM
“Is there a POST endpoint that takes a list of FDC IDs in the request body?”
“Can I send up to 20 food IDs in a POST to fetch them together?”
Tell an agent
Fetch the foods listed in {fdcIds}.
POST {fdcIds} and return only nutrients {nutrients}.
GET /v1/foods/list List foods page by page · Returns a paged list of foods, in the 'abridged' format #
Ask an LLM
“How do I page through all the foods in FoodData Central?”
“Can I sort the food list and limit how many come back per page?”
Tell an agent
List all foods, {pageSize} per page.
Show {dataType} foods sorted by {sortBy}.
POST /v1/foods/list List foods with a POST body · Returns a paged list of foods, in the 'abridged' format #
Ask an LLM
“Can I send the page size and sort order in a POST body to list foods?”
“Which fields does the POST food list endpoint accept?”
Tell an agent
POST a food list request with page size {pageSize}.
Use the POST food list body to sort foods by {sortBy}.
GET /v1/foods/search Search foods by keyword · Returns a list of foods that matched search (query) keywords #
Ask an LLM
“How do I search for foods by name or brand?”
“Can I search branded foods by brand owner?”
Tell an agent
Search foods for {query}.
Find {query} among {dataType} foods, {pageSize} per page.
POST /v1/foods/search Search foods with a POST body · Returns a list of foods that matched search (query) keywords #
Ask an LLM
“Is there a POST endpoint that takes a search query in the body?”
“Can I filter a food search by brand owner in a POST request?”
Tell an agent
POST the food search {query}.
Search {query} for {dataType} foods owned by {brandOwner}.
GET /v1/json-spec Get the API spec as JSON · Returns this documentation in JSON format #
Ask an LLM
“Where can I download the FoodData Central API specification as JSON?”
“What does the OpenAPI spec for the food API look like?”
Tell an agent
Download the API JSON specification.
Get the FoodData Central OpenAPI spec in JSON format.
GET /v1/yaml-spec Get the API spec as YAML · Returns this documentation in JSON format #
Ask an LLM
“Can I get the API documentation as YAML instead of JSON?”
“Where is the FoodData Central YAML spec?”
Tell an agent
Download the API YAML specification.
Get the FoodData Central OpenAPI spec in YAML format.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/usda:usda-fdc-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

usda-fdc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The FoodData Central API provides REST access to FoodData Central (FDC).
  version: 1.0.0
  title: Food Data Central FDC API
  contact:
    name: Food Data Central Contact Form
    url: https://nal.altarama.com/reft100.aspx?key=FoodData
  license:
    name: Creative Commons 0 1.0 Universal
    url: https://creativecommons.org
servers:
- url: https://api.nal.usda.gov/fdc
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (40 KB total) ---
# Full source: https://artifacts.apis.io/usda/openapi/usda-fdc-api-openapi.yml