# Ingredient nutrition lookup

GET|POST https://horizonpulse.dev/api/grocery/ingredient

- Price: $0.005 per call. The exact amount is in the 402.
- Pay with: USDC on Base, USDC on Solana, USDC on Polygon, RLUSD on XRP Ledger, EURC on Base
- Family: Everyday and reference (/catalog/reference.md)

## What it returns
Look up nutrition per 100 g for an ingredient or barcode

## Inputs
- q: Ingredient name or a /api/grocery/normalize canonicalId (1-100 chars).
- barcode: Product GTIN-8, UPC-A, EAN-13 or GTIN-14 (valid check digit); read live from Open Food Facts.
- n: USDA matches per item, integer 1-5 as a digit (default 3).
Full schema and bounds: /openapi.json

## If the call fails
- USDC on Base: errors are not charged, apart from the exceptions noted on a route.
- USDC on Solana: a refused or failed request may still be charged.
- On Polygon (native USDC), a request is settled only when it succeeds (HTTP status below 400). Failed requests are not charged.
- RLUSD on XRP Ledger: a refused or failed request may still be charged.

## Try it
- Unpaid sample on a fixed input: GET https://horizonpulse.dev/api/demo/grocery-ingredient
- Setup: /setup.md
