# USDA FoodData Central Nutrition Profile Lookup

> USDA FoodData Central Nutrition Profile Lookup is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Returns a full normalized nutrition profile (calories, macros, and micronutrients per 100g and per serving) for a food item identified by its USDA FoodData Central fdc_id.

## Facts

- Endpoint: GET https://api.agentstools.dev/nutrition/food
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usda-fooddata-central-nutrition-profile-lookup-ea6e62d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sBqYYXIYBpxU1SCOs8uXY

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-profile-lookup-ea6e62d2
```

Example prompt: Can you pull the full nutrition profile — calories, macros, and micronutrients per 100g and per serving — for the food with USDA FoodData Central id 747447?

## When to prefer this

Use this endpoint when you already have a USDA FoodData Central fdc_id (e.g. from a prior search) and need the complete, normalized nutrition breakdown including both per-100g and per-serving figures. Prefer this over generic nutrition APIs when USDA data fidelity and micronutrient completeness matter, or when building calorie trackers, meal planners, or dietary analysis tools.

## Known failure modes

- fdc_id not found in USDA FoodData Central — returns 404 or empty result
- fdc_id is invalid or non-integer — returns validation error
- food item exists but has incomplete nutrient data in USDA database — partial profile returned
- rate limiting or payment failure — returns 402 or 429
- USDA upstream data unavailable — returns 503

## How this service works

Full normalized nutrition profile for a USDA FoodData Central food by fdc_id: calories, macros and micronutrients per 100g and per serving.

## Output

A normalized nutrition object containing calorie count, macronutrients (protein, fat, carbohydrates, fiber, sugar), and micronutrients (vitamins, minerals) expressed both per 100g and per serving size, sourced from USDA FoodData Central.

## 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": [
      "fdc_id"
     ],
     "properties": {
      "fdc_id": {
       "type": "integer",
       "description": "USDA FoodData Central id (from /nutrition/search)"
      }
     }
    }
   },
   "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-profile-lookup-ea6e62d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
