# USDA FoodData Central Nutrition Profile Lookup

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

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

## Facts

- Endpoint: GET https://payai.agentstools.dev/nutrition/food
- Price: $0.003/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-profile-lookup-d993b26c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JBXaypqFtLZ8Mu5PDBvwG

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-d993b26c
```

Example prompt: Can you pull the full nutrition profile for USDA FoodData Central food ID 747448 — I want calories, all the macros, and micronutrients both per 100g and per serving.

## When to prefer this

Use this endpoint when you already have a USDA FoodData Central fdc_id (e.g. from a prior food search) and need a complete, normalized nutrition breakdown including both per-100g and per-serving figures. Prefer this over generic nutrition APIs when you need structured micronutrient data aligned with USDA standards.

## Known failure modes

- Invalid or non-existent fdc_id returns an error or empty result
- Missing required fdc_id query parameter returns a 400 Bad Request
- Payment failure (x402) if USDC balance is insufficient
- Rate limiting if too many requests are made in a short period
- USDA FoodData Central upstream data unavailability causing 503 errors

## 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 calories, macronutrients (protein, fat, carbohydrates, fiber, sugar), and micronutrients (vitamins, minerals, etc.) expressed both per 100g and per serving size for the requested USDA FoodData Central food item.

## 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-d993b26c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
