FoodData Central · Schema

FoodSearchCriteria

Request body schema for the POST /v1/foods/search endpoint to search for foods by keyword.

HealthPublic APIs

Properties

Name Type Description
query string Search terms to use in the search. The string may also include standard search operators.
dataType array Optional. Filter on a specific data type; specify one or more values in an array.
pageSize integer Optional. Maximum number of results to return for the current page. Default is 50.
pageNumber integer Optional. Page number to retrieve.
sortBy string Optional. Specify one of the possible values to sort by that field.
sortOrder string Optional. The sort direction for the results.
brandOwner string Optional. Filter results based on the brand owner of the food. Only applies to Branded Foods.
View JSON Schema on GitHub

JSON Schema

search-criteria.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc.nal.usda.gov/schemas/search-criteria.json",
  "title": "FoodSearchCriteria",
  "description": "Request body schema for the POST /v1/foods/search endpoint to search for foods by keyword.",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search terms to use in the search. The string may also include standard search operators.",
      "example": "Cheddar cheese"
    },
    "dataType": {
      "type": "array",
      "description": "Optional. Filter on a specific data type; specify one or more values in an array.",
      "items": {
        "type": "string",
        "enum": ["Branded", "Foundation", "Survey (FNDDS)", "SR Legacy"]
      },
      "minItems": 1,
      "maxItems": 4,
      "example": ["Foundation", "SR Legacy"]
    },
    "pageSize": {
      "type": "integer",
      "description": "Optional. Maximum number of results to return for the current page. Default is 50.",
      "minimum": 1,
      "maximum": 200,
      "example": 25
    },
    "pageNumber": {
      "type": "integer",
      "description": "Optional. Page number to retrieve.",
      "example": 2
    },
    "sortBy": {
      "type": "string",
      "description": "Optional. Specify one of the possible values to sort by that field.",
      "enum": ["dataType.keyword", "lowercaseDescription.keyword", "fdcId", "publishedDate"]
    },
    "sortOrder": {
      "type": "string",
      "description": "Optional. The sort direction for the results.",
      "enum": ["asc", "desc"]
    },
    "brandOwner": {
      "type": "string",
      "description": "Optional. Filter results based on the brand owner of the food. Only applies to Branded Foods.",
      "example": "Kar Nut Products Company"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/search-criteria"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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