USDA · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Food Data Central FDC API
10 actions
10 updates
phrasing
extends
openapi/usda-fdc-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for USDA's API. It is a proposal applied on top of the contract, not a document USDA publishes.
What the actions change
x-apievangelist-phrasing
Targets 10
$.info
$.paths['/v1/food/{fdcId}'].get
$.paths['/v1/foods'].get
$.paths['/v1/foods'].post
$.paths['/v1/foods/list'].get
$.paths['/v1/foods/list'].post
$.paths['/v1/foods/search'].get
$.paths['/v1/foods/search'].post
$.paths['/v1/json-spec'].get
$.paths['/v1/yaml-spec'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Food Data Central FDC API
version: 1.0.0
extends: openapi/usda-fdc-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-19'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 9
- target: $.paths['/v1/food/{fdcId}'].get
update:
x-apievangelist-phrasing:
intent: Get one food item by FDC ID
effect: read
questions:
- How do I look up a single food item's details from its FDC ID?
- Can I get only certain nutrients for one food?
instructions:
- text: Get food item {fdcId}.
slots:
fdcId: path.fdcId
- text: Show {fdcId} with nutrients {nutrients}.
slots:
fdcId: path.fdcId
nutrients: query.nutrients
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods'].get
update:
x-apievangelist-phrasing:
intent: Get several foods by FDC IDs in a query
effect: read
questions:
- 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?
instructions:
- text: Get the foods with FDC IDs {fdcIds}.
slots:
fdcIds: query.fdcIds
- text: Fetch {fdcIds} and return only nutrients {nutrients}.
slots:
fdcIds: query.fdcIds
nutrients: query.nutrients
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods'].post
update:
x-apievangelist-phrasing:
intent: Get several foods by FDC IDs in a POST body
effect: read
questions:
- 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?
instructions:
- text: Fetch the foods listed in {fdcIds}.
slots:
fdcIds: requestBody.fdcIds
- text: POST {fdcIds} and return only nutrients {nutrients}.
slots:
fdcIds: requestBody.fdcIds
nutrients: requestBody.nutrients
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods/list'].get
update:
x-apievangelist-phrasing:
intent: List foods page by page
effect: read
questions:
- 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?
instructions:
- text: List all foods, {pageSize} per page.
slots:
pageSize: query.pageSize
- text: Show {dataType} foods sorted by {sortBy}.
slots:
dataType: query.dataType
sortBy: query.sortBy
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods/list'].post
update:
x-apievangelist-phrasing:
intent: List foods with a POST body
effect: read
questions:
- 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?
instructions:
- text: POST a food list request with page size {pageSize}.
slots:
pageSize: requestBody.pageSize
- text: Use the POST food list body to sort foods by {sortBy}.
slots:
sortBy: requestBody.sortBy
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods/search'].get
update:
x-apievangelist-phrasing:
intent: Search foods by keyword
effect: read
questions:
- How do I search for foods by name or brand?
- Can I search branded foods by brand owner?
instructions:
- text: Search foods for {query}.
slots:
query: query.query
- text: Find {query} among {dataType} foods, {pageSize} per page.
slots:
query: query.query
dataType: query.dataType
pageSize: query.pageSize
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/foods/search'].post
update:
x-apievangelist-phrasing:
intent: Search foods with a POST body
effect: read
questions:
- 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?
instructions:
- text: POST the food search {query}.
slots:
query: requestBody.query
- text: Search {query} for {dataType} foods owned by {brandOwner}.
slots:
query: requestBody.query
dataType: requestBody.dataType
brandOwner: requestBody.brandOwner
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/json-spec'].get
update:
x-apievangelist-phrasing:
intent: Get the API spec as JSON
effect: read
questions:
- Where can I download the FoodData Central API specification as JSON?
- What does the OpenAPI spec for the food API look like?
instructions:
- text: Download the API JSON specification.
- text: Get the FoodData Central OpenAPI spec in JSON format.
method: generated
generated: '2026-11-19'
- target: $.paths['/v1/yaml-spec'].get
update:
x-apievangelist-phrasing:
intent: Get the API spec as YAML
effect: read
questions:
- Can I get the API documentation as YAML instead of JSON?
- Where is the FoodData Central YAML spec?
instructions:
- text: Download the API YAML specification.
- text: Get the FoodData Central OpenAPI spec in YAML format.
method: generated
generated: '2026-11-19'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay 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
This overlay
curl "https://apis.io/api/v1/overlays/usda-fdc-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.