Everyday and reference · x402 v2
Grocery list normalizer
Turn recipe ingredient lines into a normalized shopping list
- 01What it returns
Turn recipe ingredient lines into a normalized shopping list
- 02Call
GET|POST https://horizonpulse.dev/api/grocery/normalize
- 03Price
$0.002 per call. The exact amount is in the 402, before your agent pays.
- 04For agents
/routes/grocery-normalize.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-normalizeOutput
Recorded sample, 2026-10-14. Values are from that date. Not a live call.
Show all
{
"source": "grocery-normalize",
"priced": {
"amountUsd": "$0.002",
"amountAtomic": "2000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "base",
"payTo": "0x5b32c973596078a967562ca652761404f19be0e9"
},
"asOf": "2026-10-14T21:18:00.000Z",
"ok": true,
"scale": {
"servings": 4,
"targetServings": 8,
"factor": 2
},
"items": [
{
"raw": "2 cups all-purpose flour",
"name": "all-purpose flour",
"canonicalId": "all-purpose-flour",
"qty": 4,
"qtyMax": null,
"unit": "cup",
"dimension": "volume",
"metric": {
"value": 946.4,
"unit": "ml"
},
"category": "baking",
"optional": false,
"toTaste": false,
"prepNote": null,
"…": "3 more keys"
},
{
"raw": "3 large eggs",
"name": "large eggs",
"canonicalId": "egg",
"qty": 6,
"qtyMax": null,
"unit": "each",
"dimension": "count",
"metric": null,
"category": "dairy_eggs",
"optional": false,
"toTaste": false,
"prepNote": null,
"…": "3 more keys"
},
{
"raw": "1 tbsp olive oil",
"name": "olive oil",
"canonicalId": "olive-oil",
"qty": 2,
"qtyMax": null,
"unit": "tbsp",
"dimension": "volume",
"metric": {
"value": 29.6,
"unit": "ml"
},
"category": "pantry",
"optional": false,
"toTaste": false,
"prepNote": null,
"…": "3 more keys"
}
],
"shoppingList": [
{
"canonicalId": "all-purpose-flour",
"unit": "ml",
"qty": 946.4,
"metric": {
"value": 946.4,
"unit": "ml"
},
"from": [
0
]
},
{
"canonicalId": "egg",
"unit": "each",
"qty": 6,
"metric": null,
"from": [
1
]
},
{
"canonicalId": "olive-oil",
"unit": "ml",
"qty": 29.6,
"metric": {
"value": 29.6,
"unit": "ml"
},
"from": [
2
]
}
],
"unparsed": [],
"methodology": {
"parser": "Deterministic rule-based parser (quantities incl. fractions, unicode fractions and ranges; unit aliases; parenthetical pack sizes; prep notes after a comma). No network, no third-p… (203 chars)",
"units": "Volume converts to ml and mass to g with exact factors (US customary: tsp 4.92892 ml, tbsp 14.7868 ml, cup 236.588 ml, fl oz 29.5735 ml, pint 473.176 ml, quart 946.353 ml, gallon 3… (300 chars)",
"packs": "packHint is from a small Horizon Pulse table of typical US pack sizes, for planning only. It is not a retailer listing, not stock and not a price.",
"scaling": "If servings and targetServings are both given, every quantity is multiplied by targetServings / servings.",
"storage": "Nothing is stored or logged."
}
}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
Turn recipe ingredient lines into a normalized shopping list
Keep exploring