# USDA FoodData Central Nutrition Lookup

> USDA FoodData Central Nutrition Lookup is a paid API for AI agents from api.kadec0.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns calories, macronutrients, and micronutrients for any food by querying the USDA FoodData Central database

## Facts

- Endpoint: GET https://api.kadec0.xyz/v1/nutrition
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usda-fooddata-central-nutrition-lookup-6400e697
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WjrIsEFdBVm2FQb6T84KW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability usda-fooddata-central-nutrition-lookup-6400e697
```

Example prompt: What are the calories, protein, carbs, and fat in raw salmon? Pull from the USDA Foundation foods database and show me the top 5 results.

## When to prefer this

Use this endpoint when you need structured, authoritative nutritional data (calories, macros, micros) for any food item, backed by the USDA FoodData Central database. Prefer it over generic web scraping or unverified sources when accuracy and database provenance matter, or when you need to filter by food data type (Branded, Foundation, SR Legacy).

## Known failure modes

- No matching foods found for the search query — empty results array returned
- Invalid dataType parameter value causes a 400 bad request
- Missing required query parameter returns an error
- Rate limit or payment failure returns a 402 response
- Ambiguous food name returns unrelated or low-confidence results

## How this service works

Food nutrition lookup. Calories, macros, and micronutrients for any food from the USDA FoodData Central database.

## Output

A list of matching food items from the USDA FoodData Central database, each with full nutritional breakdown including calories, macronutrients (protein, fat, carbohydrates), and micronutrients (vitamins, minerals). Results can be filtered by data type such as Branded, Foundation, or SR Legacy foods.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "food name / search text"
      },
      "dataType": {
       "type": "string",
       "description": "e.g. Branded,Foundation,SR Legacy"
      },
      "pageSize": {
       "type": "string",
       "default": "10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usda-fooddata-central-nutrition-lookup-6400e697/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.kadec0.xyz](https://www.zero.xyz/host/api.kadec0.xyz/llms.txt)
