# USDA FDC Food Nutrition Profile Lookup

> USDA FDC Food Nutrition Profile Lookup is a paid API for AI agents from food.memoryapi.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns the full nutrition profile (macros, vitamins, minerals) for a specific food item identified by its USDA FoodData Central (FDC) ID.

## Facts

- Endpoint: GET https://food.memoryapi.org/x402/food/nutrition
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/food-memoryapi-org-93080ebd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RBlejC4dPEmWaMjFcl7CL

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 food-memoryapi-org-93080ebd
```

Example prompt: Can you pull the full nutrition profile for USDA FDC food ID 534358 — I want the complete breakdown including macros, vitamins, and minerals?

## When to prefer this

Use this endpoint when you have a specific USDA FDC food ID and need the complete, authoritative nutrition profile including both macros and micronutrients. Prefer this over general food search endpoints when the FDC ID is already known. Ideal for detailed nutritional analysis, dietary tracking applications, or when you need comprehensive vitamin and mineral data beyond just macros.

## Known failure modes

- Invalid or non-existent FDC ID returns a 404 or empty result
- Missing FDC ID parameter returns a 400 bad request error
- Payment failure via x402 protocol returns a 402 payment required response
- Rate limiting may return a 429 error if too many requests are made
- USDA FDC database may not have nutrition data for all FDC IDs (sparse nutrient coverage)

## How this service works

USDA FoodData Central nutrition data API with x402 micropayments. Search foods, get full nutrition profiles, and compare multiple foods side-by-side.

## Output

A comprehensive nutrition profile for the requested food item, including macronutrients (calories, protein, total fat, carbohydrates, fiber, sugar), vitamins (A, C, D, B-vitamins, etc.), and minerals (calcium, iron, potassium, sodium, etc.), sourced from the USDA FoodData Central database.

## Example request

```json
{
 "ids": "173950"
}
```

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {
  "name": "Avocados, raw, all commercial varieties",
  "fdc_id": 173950,
  "success": true,
  "nutrients": {
   "minerals": {},
   "vitamins": {},
   "macronutrients": {}
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/food-memoryapi-org-93080ebd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from food.memoryapi.org](https://www.zero.xyz/host/food.memoryapi.org/llms.txt)
