Everyday and reference · x402 v2
Ingredient nutrition lookup
Look up nutrition per 100 g for an ingredient or barcode
- 01What it returns
Look up nutrition per 100 g for an ingredient or barcode
- 02Call
GET|POST https://horizonpulse.dev/api/grocery/ingredient
- 03Price
$0.005 per call. The exact amount is in the 402, before your agent pays.
- 04For agents
/routes/grocery-ingredient.md has the inputs, the charge rule and a sample link in under 3,000 characters.
Try it
Request and response.
# Unpaid recorded sample
$ curl -s https://horizonpulse.dev/api/demo/grocery-ingredientOutput
Example response from our OpenAPI document. Not a live call.
Show all
{
"attribution": [
"Source: U.S. Department of Agriculture, Agricultural Research Service. FoodData Central, Foundation Foods, April 2026. fdc.nal.usda.gov. Public domain (CC0 1.0)."
],
"disclaimer": "Indicative data only. Open Food Facts data is entered by volunteers and USDA data describes generic or reported foods; values can be wrong, missing or out of date, and recipes and labels change. Allergen and ingredient fields may be incomplete: an empty or missing allergen list does NOT mean a product is free of any allergen or trace. Always check the product's own label. Not for medical, dietary or allergy decisions. Not advice.",
"source": "grocery-ingredient",
"priced": {
"amountUsd": "$0.005",
"amountAtomic": "5000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "base",
"payTo": "0x5b32c973596078a967562ca652761404f19be0e9"
},
"asOf": "2026-10-16T14:39:25.223Z",
"ok": true,
"items": [
{
"query": {
"q": "all-purpose flour"
},
"matches": [
{
"attribution": "Source: U.S. Department of Agriculture, Agricultural Research Service. FoodData Central, Foundation Foods, April 2026. fdc.nal.usda.gov. Public domain (CC0 1.0).",
"source": "usda_fdc",
"id": "790018",
"fdcId": 790018,
"name": "Flour, wheat, all-purpose, unenriched, unbleached",
"dataType": "Foundation",
"category": "Cereal Grains and Pasta",
"nutrientsPer100g": "{…}",
"sourceUrl": "https://fdc.nal.usda.gov",
"license": "Public domain (CC0 1.0)",
"matchScore": 12.36
},
{
"attribution": "Source: U.S. Department of Agriculture, Agricultural Research Service. FoodData Central, Foundation Foods, April 2026. fdc.nal.usda.gov. Public domain (CC0 1.0).",
"source": "usda_fdc",
"id": "789890",
"fdcId": 789890,
"name": "Flour, wheat, all-purpose, enriched, bleached",
"dataType": "Foundation",
"category": "Cereal Grains and Pasta",
"nutrientsPer100g": "{…}",
"sourceUrl": "https://fdc.nal.usda.gov",
"license": "Public domain (CC0 1.0)",
"matchScore": 10.88
}
],
"whereToBuy": null,
"unknowns": [
"usda_fdc 790018 sat_fat_g: not published in this release",
"usda_fdc 790018 sugars_g: not published in this release",
"usda_fdc 789890 sat_fat_g: not published in this release",
"usda_fdc 789890 sugars_g: not published in this release",
"usda_fdc 789890 fiber_g: not published in this release",
"allergens: not provided for USDA generic foods (give a barcode for Open Food Facts contributor data)"
]
}
],
"fdcSnapshot": [
{
"dataType": "Foundation",
"release": "Foundation Foods, April 2026",
"url": "https://fdc.nal.usda.gov/fdc-datasets/FoodData_Central_foundation_food_json_2026-04-30.zip",
"zipSha256": "186e988ec542e913f51ef62b86a47758e8cdd0d1dc3889e7b055581f3c09c77a",
"foods": 363
},
{
"dataType": "SR Legacy",
"release": "SR Legacy, April 2018",
"url": "https://fdc.nal.usda.gov/fdc-datasets/FoodData_Central_sr_legacy_food_json_2018-04.zip",
"zipSha256": "0fe8ae486a2c8eb42cb96413f058deb51863a46c8fb8eeb4b1fb45006dd338ef",
"foods": 7793
}
]
}Payment
Price, payee and charge rules.
Pay only on a rail named on that route. A rail that is not named is not in that route's 402.
Base0x5b32c9…9be0e9
0x5b32c973…f19be0e9Base: pay to 0x5b32c973596078a967562ca652761404f19be0e9
USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. EURC 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42 when the 402 lists it.
On USDC on Base, errors are not charged, apart from the exceptions noted on a route.
SolanaBjY98A6d…mBTRPz
BjY98A6dS3…mfmBTRPzSolana: pay to BjY98A6dS3GGLZdz2zHy8wK7XAwnQgNhCc66mfmBTRPz
USDC EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
A refused or failed request may still be charged.
Polygon0x5b32c9…9be0e9
0x5b32c973…f19be0e9Polygon: pay to 0x5b32c973596078a967562ca652761404f19be0e9
native USDC 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
On Polygon (native USDC), a request is settled only when it succeeds (HTTP status below 400). Failed requests are not charged.
XRP Ledgerr3FbirL8…o6LQcf
r3FbirL83R…kuo6LQcfXRP Ledger: pay to r3FbirL83RAB2CwnUdxE5pCohMkuo6LQcf
RLUSD issuer rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De. Facilitator self
A refused or failed request may still be charged.
Pay only an entry listed in this call's 402.
Charge and errors
On USDC on Base, errors are not charged, apart from the exceptions noted on a route. On USDC on Solana, and RLUSD on the XRP Ledger, a refused or failed request may still be charged.
Use the decoded PAYMENT-REQUIRED header as the challenge. Do not read an empty object as the price, and do not pay an entry that header does not list.
Retry and refunds
These recovery notes are policy. They are not a tested guarantee of a refund, a replay, or a second delivery.
- Duplicate retry: if your client already received HTTP 200, do not sign a second payment for that call. Sending the same PAYMENT-SIGNATURE again is the client's retry, not a new purchase.
- Timeout after you authorized payment: before you pay again, check the PAYMENT-RESPONSE receipt and the transaction on the network you paid. This page does not promise that a timed-out call was not settled.
- Unsupported wallet: pay only with a client that can sign an entry in that call's 402. This site never asks for a private key, a seed phrase, or a signature. Signing stays in your own client.
- Stale quote: the amount you may pay is the amount in that call's 402, not a price copied from an older page. If the 402 amount is above the list price you expected, do not pay.
- Set a spend cap in your own client before the first paid call.
Methodology
Methodology, corrections and billing rules are published with their limits. A check on this site is not a certification of a site, a seller or a wallet.
Public page version horizonpulse-public-methodology/2026-11-16.
Full description
Look up nutrition per 100 g for an ingredient or barcode
Keep exploring