U

USDA Nutrition Lookup · Nutrition

by USDA Nutrition Lookup

GETBase

$0.01

per call · USD Coin on Base

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

Endpoint

GET https://api.kadec0.xyz/v1/nutrition

9

Calls / 30d

2

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.kadec0.xyz/v1/nutrition", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.kadec0.xyz/v1/nutrition?pageSize=5&query=cheddar+cheese" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "count": 1,
  "items": [
    {
      "brandOwner": "...",
      "dataType": "Branded",
      "description": "CHEDDAR",
      "nutrients": {
        "Energy": {
          "unit": "KCAL",
          "value": 403
        },
        "Protein": {
          "unit": "G",
          "value": 24
        }
      },
      "type": "food"
    }
  ]
}

Payment details

Pay to0x4df66b6c140778fe0717880a7c6dde5ea53acdea
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from USDA Nutrition Lookup & similar services