Nana
Real shelf prices, deals and grocery carts at major chains in the US, Canada, the UK and France.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWreplace_item에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"nana": {
"url": "https://api.eezly.app/mcp"
}
}
}원격 엔드포인트
https://api.eezly.app/mcpstreamable-http할 수 있는 일
도구 목록
도구 (20)
🟡add_items(items, idempotency_key, expected_cart_version)
Adds products to the household's cart. `items` is a list (even for one product), one entry per product. `item` is the product words only ("eggs", never "12 eggs"); `quantity` is the one place a count or amount goes: {"value": an integer, "unit": one of count, dozen, kg, g, lb, l, ml, pack, pint, quart, gallon, fl oz}, left out for one. `value`: At most 99; at most 9999 in fl oz, g, ml. A size goes in the unit its pack states (4 pint, 1 gallon, 2 l). Purpose words ("for 3 dinners") go in `purpose`, foods to avoid in `excluding`. `item_id` (optional) is the `catalog_item_id` a market tool returned (`catalog_item_id_<n>` for the n-th product a lookup listed); that product is then added exactly. `store_id` (optional, only with `item_id`) is the `store_id` the same answer priced it at (`store_id_<n>`); it is then added at that store, and a store the household has not chosen is refused `store_not_chosen`. Every line is matched only among products the household's chosen stores carry at a current price: a line they have no match for is refused `not_in_catalog` (`not_fitting` when the household's restrictions admit none) and lists up to 3 `candidates` (`item_id`, `name`, `store_id`) those stores carry. A line asking for alcohol is refused `not_offered`. With no store chosen, nothing is added and the reason is `store_choice_needed`. No other key and no other type is accepted: a refusal names the field to fix. Example: {"items": [{"item": "eggs", "quantity": {"value": 12, "unit": "count"}}, {"item": "milk", "quantity": {"value": 2, "unit": "l"}}, {"item": "bananas"}], "idempotency_key": "add-eggs-milk-bananas-1"}
입력 스키마
{
"type": "object",
"properties": {
"items": {
"items": {
"$ref": "#/$defs/RequestedItem",
"type": "object"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"idempotency_key": {
"type": "string",
"description": "The caller's key for this one change (8-128 letters, digits, '.', '_', ':' or '-'); each change has its own key. A resend under the SAME key with the SAME arguments, byte for byte, writes nothing twice: Nana answers what that first call did."
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"items",
"idempotency_key"
],
"additionalProperties": false,
"$defs": {
"ItemExclusion": {
"additionalProperties": false,
"description": "An in-message exclusion on one item (\"granola without nuts\").",
"properties": {
"restriction": {
"enum": [
"shellfish",
"peanut_free",
"nut_free",
"dairy_free",
"lactose_free",
"gluten_free",
"egg",
"soy",
"fish",
"sesame",
"mustard",
"sulphites",
"corn",
"vegan",
"vegetarian",
"halal",
"kosher",
"keto",
"organic",
"low_sodium",
"sugar_free",
"no_pork",
"pescatarian"
],
"type": "string"
},
"source": {
"$ref": "#/$defs/Quote",
"type": "string"
}
},
"required": [
"restriction",
"source"
],
"type": "object"
},
"ItemPurpose": {
"additionalProperties": false,
"description": "Quantity by purpose (\"chicken for 3 dinners\"). Capped by the fence.",
"properties": {
"meals": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"people": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"days": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"source": {
"$ref": "#/$defs/Quote",
"type": "string"
}
},
"required": [
"days",
"meals",
"people",
"source"
],
"type": "object"
},
"ItemQuantity": {
"additionalProperties": false,
"properties": {
"value": {
"description": "At most 99; at most 9999 in fl oz, g, ml. A size goes in the unit its pack states (4 pint, 1 gallon, 2 l).",
"maximum": 9999,
"minimum": 1,
"type": "integer"
},
"unit": {
"enum": [
"count",
"dozen",
"kg",
"g",
"lb",
"l",
"ml",
"pack",
"pint",
"quart",
"gallon",
"fl oz"
],
"type": "string"
}
},
"required": [
"unit",
"value"
],
"type": "object"
},
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
},
"RequestedItem": {
"additionalProperties": false,
"properties": {
"item": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"quantity": {
"anyOf": [
{
"$ref": "#/$defs/ItemQuantity",
"type": "object"
},
{
"type": "null"
}
]
},
"purpose": {
"anyOf": [
{
"$ref": "#/$defs/ItemPurpose",
"type": "object"
},
{
"type": "null"
}
]
},
"pack_hint": {
"anyOf": [
{
"enum": [
"carton",
"liquid",
"fresh",
"frozen",
"canned",
"dried",
"bulk"
],
"type": "string"
},
{
"type": "null"
}
]
},
"excluding": {
"description": "The restrictions this product is screened free of, as restriction slugs, source = the words naming each: an exclusion written with the product (\"without nuts\", \"yogourt sans lactose\") or beside the add (\"add bread, not peanuts\", \"ajoutez du pain, pas d'arachides\"); never inside item. The add's screen reads these, the household's saved restrictions and a restriction the same plan sets, never the words, so an allergy or exclusion stated for this request goes here.",
"items": {
"$ref": "#/$defs/ItemExclusion",
"type": "object"
},
"maxItems": 4,
"type": "array"
},
"item_id": {
"description": "The catalog_item_id (catalog_item_id_<n> for listed product n) a tool returned for exactly this product; item stays its name. It is added only where the household's chosen stores price it, else this line is refused.",
"maximum": 9223372036854776000,
"minimum": 1,
"title": "Item Id",
"type": "integer"
},
"store_id": {
"description": "Optional, only with item_id: the store_id a market tool returned for that price. The product is added at exactly that store; a store the household has not chosen is refused store_not_chosen.",
"maximum": 9223372036854776000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"excluding",
"item",
"pack_hint",
"purpose",
"quantity"
],
"type": "object"
}
},
"examples": [
{
"items": [
{
"item": "eggs",
"quantity": {
"value": 12,
"unit": "count"
}
},
{
"item": "milk",
"quantity": {
"value": 2,
"unit": "l"
}
},
{
"item": "bananas"
}
],
"idempotency_key": "add-eggs-milk-bananas-1"
}
]
}🔴remove_items(items, idempotency_key, expected_cart_version)
Removes lines from the household's cart; each item names a line of the cart. One call removes every line it names and answers each removed line and the new `cart_version`. When a name matches several lines, nothing is removed and that name is answered with its `candidates`; a name no line matches is answered on its own and the other lines are removed.
입력 스키마
{
"type": "object",
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NamedLine",
"type": "object"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"idempotency_key": {
"type": "string",
"description": "The caller's key for this one change (8-128 letters, digits, '.', '_', ':' or '-'); each change has its own key. A resend under the SAME key with the SAME arguments, byte for byte, writes nothing twice: Nana answers what that first call did."
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"items",
"idempotency_key"
],
"additionalProperties": false,
"$defs": {
"NamedLine": {
"additionalProperties": false,
"properties": {
"item": {
"$ref": "#/$defs/Quote",
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
},
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🔴replace_item(from_item, to_item, idempotency_key, expected_cart_version)
Replaces one cart line with another product ("not the liquid eggs, real eggs in a carton"): `from_item` names the line, `to_item` the product wanted instead.
입력 스키마
{
"type": "object",
"properties": {
"from_item": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"to_item": {
"$ref": "#/$defs/RequestedItem",
"type": "object"
},
"idempotency_key": {
"type": "string",
"description": "The caller's key for this one change (8-128 letters, digits, '.', '_', ':' or '-'); each change has its own key. A resend under the SAME key with the SAME arguments, byte for byte, writes nothing twice: Nana answers what that first call did."
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"from_item",
"to_item",
"idempotency_key"
],
"additionalProperties": false,
"$defs": {
"ItemExclusion": {
"additionalProperties": false,
"description": "An in-message exclusion on one item (\"granola without nuts\").",
"properties": {
"restriction": {
"enum": [
"shellfish",
"peanut_free",
"nut_free",
"dairy_free",
"lactose_free",
"gluten_free",
"egg",
"soy",
"fish",
"sesame",
"mustard",
"sulphites",
"corn",
"vegan",
"vegetarian",
"halal",
"kosher",
"keto",
"organic",
"low_sodium",
"sugar_free",
"no_pork",
"pescatarian"
],
"type": "string"
},
"source": {
"$ref": "#/$defs/Quote",
"type": "string"
}
},
"required": [
"restriction",
"source"
],
"type": "object"
},
"ItemPurpose": {
"additionalProperties": false,
"description": "Quantity by purpose (\"chicken for 3 dinners\"). Capped by the fence.",
"properties": {
"meals": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"people": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"days": {
"anyOf": [
{
"maximum": 99,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"source": {
"$ref": "#/$defs/Quote",
"type": "string"
}
},
"required": [
"days",
"meals",
"people",
"source"
],
"type": "object"
},
"ItemQuantity": {
"additionalProperties": false,
"properties": {
"value": {
"description": "At most 99; at most 9999 in fl oz, g, ml. A size goes in the unit its pack states (4 pint, 1 gallon, 2 l).",
"maximum": 9999,
"minimum": 1,
"type": "integer"
},
"unit": {
"enum": [
"count",
"dozen",
"kg",
"g",
"lb",
"l",
"ml",
"pack",
"pint",
"quart",
"gallon",
"fl oz"
],
"type": "string"
}
},
"required": [
"unit",
"value"
],
"type": "object"
},
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
},
"RequestedItem": {
"additionalProperties": false,
"properties": {
"item": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"quantity": {
"anyOf": [
{
"$ref": "#/$defs/ItemQuantity",
"type": "object"
},
{
"type": "null"
}
]
},
"purpose": {
"anyOf": [
{
"$ref": "#/$defs/ItemPurpose",
"type": "object"
},
{
"type": "null"
}
]
},
"pack_hint": {
"anyOf": [
{
"enum": [
"carton",
"liquid",
"fresh",
"frozen",
"canned",
"dried",
"bulk"
],
"type": "string"
},
{
"type": "null"
}
]
},
"excluding": {
"description": "The restrictions this product is screened free of, as restriction slugs, source = the words naming each: an exclusion written with the product (\"without nuts\", \"yogourt sans lactose\") or beside the add (\"add bread, not peanuts\", \"ajoutez du pain, pas d'arachides\"); never inside item. The add's screen reads these, the household's saved restrictions and a restriction the same plan sets, never the words, so an allergy or exclusion stated for this request goes here.",
"items": {
"$ref": "#/$defs/ItemExclusion",
"type": "object"
},
"maxItems": 4,
"type": "array"
}
},
"required": [
"excluding",
"item",
"pack_hint",
"purpose",
"quantity"
],
"type": "object"
}
}
}🔴edit_quantity(item, mode, value, idempotency_key, expected_cart_version)
Changes the quantity of one cart line: mode absolute sets it ("make it 3" is value 3), mode relative adds to it ("2 more" is value 2).
입력 스키마
{
"type": "object",
"properties": {
"item": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"mode": {
"enum": [
"absolute",
"relative"
],
"type": "string"
},
"value": {
"maximum": 99,
"minimum": -99,
"type": "integer"
},
"idempotency_key": {
"type": "string",
"description": "The caller's key for this one change (8-128 letters, digits, '.', '_', ':' or '-'); each change has its own key. A resend under the SAME key with the SAME arguments, byte for byte, writes nothing twice: Nana answers what that first call did."
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"item",
"mode",
"value",
"idempotency_key"
],
"additionalProperties": false,
"$defs": {
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🟢ask_total(scope, expected_cart_version)
The cost of the household's cart (scope cart) or of the last meal plan it made (scope last_plan; this connector creates no meal plan). Never writes the cart.
입력 스키마
{
"type": "object",
"properties": {
"scope": {
"enum": [
"cart",
"last_plan"
],
"type": "string"
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"scope"
],
"additionalProperties": false
}🟢my_savings(expected_cart_version)
How much less the household's list costs at its cheapest saved store than at its other saved stores, with each store's total ("how much am I saving?"). Never writes the cart.
입력 스키마
{
"type": "object",
"properties": {
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [],
"additionalProperties": false
}🟢compare_stores(banners, scope, split_stores, product, expected_cart_version)
Compares what the cart (or the last meal plan made) costs at each store: the household's saved stores, or the ones in `banners`. `split_stores` splits the list between that many stores ("what do I buy where?" is 2); `product` compares one product ("are the eggs cheaper at Maxi or IGA?") at each of those stores instead of the cart: with `product`, `split_stores` is not read; `scope` `plan` compares the plan and does not read `product`.
입력 스키마
{
"type": "object",
"properties": {
"banners": {
"items": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"maxItems": 4,
"type": "array"
},
"scope": {
"enum": [
"cart",
"plan"
],
"type": "string"
},
"split_stores": {
"anyOf": [
{
"maximum": 3,
"minimum": 2,
"type": "integer"
},
{
"type": "null"
}
]
},
"product": {
"anyOf": [
{
"$ref": "#/$defs/Quote",
"type": "string"
},
{
"type": "null"
}
]
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"banners",
"product",
"scope",
"split_stores"
],
"additionalProperties": false,
"$defs": {
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🟢store_info(banner, question)
A store's nearest location, hours or address (`banner` names the store), or which stores the household saved (question saved). Never changes the saved stores.
입력 스키마
{
"type": "object",
"properties": {
"banner": {
"anyOf": [
{
"$ref": "#/$defs/Quote",
"type": "string"
},
{
"type": "null"
}
]
},
"question": {
"enum": [
"nearest",
"hours",
"address",
"saved"
],
"type": "string"
}
},
"required": [
"banner",
"question"
],
"additionalProperties": false,
"$defs": {
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🟢product_lookup(query, banner, max_results, about_offer, seek, ...)
Finds a product and its price ("do they have X?", "how much is X?", "is X available at IGA?"): the best matches with price and image. `about_offer` is the number of a product an earlier answer showed, and `seek` cheaper asks for one costing less ("a cheaper one"). Never writes the cart.
입력 스키마
{
"type": "object",
"properties": {
"query": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"banner": {
"anyOf": [
{
"$ref": "#/$defs/Quote",
"type": "string"
},
{
"type": "null"
}
]
},
"max_results": {
"maximum": 3,
"minimum": 1,
"type": "integer"
},
"about_offer": {
"anyOf": [
{
"maximum": 3,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
]
},
"seek": {
"enum": [
"any",
"cheaper"
],
"type": "string"
},
"expected_cart_version": {
"type": "integer",
"minimum": 0,
"description": "The cart_version of the latest result read. When given, the call is refused (stale_expected_version) if the cart has changed since."
}
},
"required": [
"about_offer",
"banner",
"max_results",
"query",
"seek"
],
"additionalProperties": false,
"$defs": {
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🟢allergen_question(product, allergen, other_allergens)
The label facts the catalog holds for a product, for an allergy or diet question. Every restriction asked about is filed: the first in `allergen`, the rest in `other_allergens`. Each entry of `products` names the product read (`item_id`, `name`, `brand`, `size`, `store`) and how it was matched: `item_id` or `exact_name` is that product; `candidate` is only the closest catalog product and carries no label facts. `label_facts` lists its ingredient text and dietary tags, each with its `source`, whether it was `verified` and `as_of`; `not_held` lists what Nana does not hold. Nana gives no safety verdict: the AI client judges safety with its user, and labels change, so the package label is the reference. Never writes the cart.
입력 스키마
{
"type": "object",
"properties": {
"product": {
"$ref": "#/$defs/Quote",
"type": "string"
},
"allergen": {
"enum": [
"shellfish",
"peanut_free",
"nut_free",
"dairy_free",
"lactose_free",
"gluten_free",
"egg",
"soy",
"fish",
"sesame",
"mustard",
"sulphites",
"corn",
"vegan",
"vegetarian",
"halal",
"kosher",
"keto",
"organic",
"low_sodium",
"sugar_free",
"no_pork",
"pescatarian"
],
"type": "string"
},
"other_allergens": {
"description": "Every other restriction or allergen the same question asks about, beyond allergen (\"peanuts or sesame?\" files allergen peanut_free and other_allergens [sesame]); empty when it asks about one.",
"items": {
"enum": [
"shellfish",
"peanut_free",
"nut_free",
"dairy_free",
"lactose_free",
"gluten_free",
"egg",
"soy",
"fish",
"sesame",
"mustard",
"sulphites",
"corn",
"vegan",
"vegetarian",
"halal",
"kosher",
"keto",
"organic",
"low_sodium",
"sugar_free",
"no_pork",
"pescatarian"
],
"type": "string"
},
"maxItems": 23,
"type": "array"
}
},
"required": [
"allergen",
"other_allergens",
"product"
],
"additionalProperties": false,
"$defs": {
"Quote": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The person's own words for this: the product, store or request as they mean it."
}
}
}🔴set_location(country, postal_code, city)
Saves where the household shops: its `country` and its `postal_code` (postal code in Canada, ZIP code in the US, postcode in the UK, code postal in France), or a `city`. Every price, deal, cart total and store comparison is read near this location. The answer lists the stores near it; the household's stores are saved separately. A new location clears the saved stores (and, in another country, the cart).
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "The country the household shops in; it decides which word and format `postal_code` takes."
},
"postal_code": {
"type": "string",
"minLength": 2,
"maxLength": 12,
"description": "The household's code in that country's format (CA: postal code; FR: postal code; GB: postcode; US: zip code)."
},
"city": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "The household's city, used only when no postal_code is given. A city in several regions is answered ambiguous_location with candidates; a city given as \"<city>, <region>\" names one of them."
}
},
"required": [
"country"
],
"additionalProperties": false
}🔴choose_stores(store_ids)
Without `store_ids`: the stores near the household's saved location whose banner has prices there, each with its `store_id` and whether it is saved; banners near it with no prices yet are listed in `banners_not_available`, never as stores. With `store_ids`: saves exactly those stores as the household's stores, and prices, deals, totals and comparisons are read at them. Requires a saved location.
입력 스키마
{
"type": "object",
"properties": {
"store_ids": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "integer",
"minimum": 1
},
"description": "The stores the household shops at, by the store_id this tool listed. Absent, the answer lists the stores near the household's location (and which are saved)."
}
},
"additionalProperties": false
}🟢market_regions
Read-only market data. Answers what is covered and how: each served market's country, currency, whether its shelf prices include sales tax or VAT, and region kind; per region, the grocery banners published there (at the published store floor), split into those the price tools quote at a current median and those with last week's prices only, and the banners withheld with their reason; the regions with last week's prices only; the regions of the market with none; the registered markets this server does not serve; where the prices come from; and how fresh a quoted price is. It answers per market and region, not for a city or postal code. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢market_prices(country, region, postal_code, city, store_ids, ...)
Read-only market data. For each term, ONE product per banner of one region of one market: that banner's best-value product for the term, the same pick Nana makes for a household there (a brand or size only when the term names one), priced at the banner's median times the packs that meet the term, with the lowest and highest. A term that names no size lists its products best value first: per kg, L or unit (rate_minor, rate_per; value_by_rate), a product no rate compares after them; a named size, cheapest first. Prices are banner medians confirmed within the last 8 days, each with its banner and confirmed_at; a banner whose median is older, up to 14 days, is listed apart under last_week_prices as last week's price. Takes EITHER region OR a location (postal_code, or city). With a location the answer is for the nearest store of each banner there (each store it names carries its banner, store id, store name, street and city; never a distance or coordinates), exactly as Nana answers a household at that code. At a location each store's entry is that banner's pick with the price at that store and its price_basis; a median line carries the confirmed_at of its median, a shelf line and a last_week line the confirmed_at their price was observed (last_week: not as_of). on_sale is true when the line's price is a sale price below that product's regular price there (the line then carries regular_price, sale_price -- equal to price -- and savings, for the same packs); false when the price is the regular price; null for last week's price. A named product's sale state is its line's on_sale; a deals list holds only each banner's deepest discounts, so a product absent from one may still be on sale. Sale end dates are not published. A term or banner with no line says why (unmatched_reason, banners_unmatched; unmatched_reason_rule in the answer): excluded_category is alcohol, screened out, which does not mean the store does not sell it; search_unanswered (that store was not checked this time: its prices could not be read right now, which is not a failure or an error and does not mean it does not sell the item; a later call may answer it). Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"region": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
},
"postal_code": {
"type": "string",
"minLength": 2,
"maxLength": 10,
"description": "A postal code of the country, in that market's own format (CA: its postal code; FR: its postal code; GB: its postcode; US: its zip code); a partial code only where the market's format has one. Used for this call only; never stored."
},
"city": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "A city name, used when no postal_code is given. A city resolves only when it names ONE place the country's store directory knows; otherwise the answer is location_unresolved and a postal_code is needed. A city whose stores form one metro across a state/region line (every store near the others) is read there without a question. Any other city in several states/regions is answered ambiguous_location with their candidates (most stores first), never one picked: each candidate carries region (the code), name (English), name_fr (French), city (its \"<city>, <region>\" value, which this argument resolves to that candidate) and store_count. FR : une ville dont les magasins forment une seule agglomération de part et d'autre d'une limite régionale (tous proches les uns des autres) y est lue sans question; toute autre ville présente dans plusieurs régions reçoit ambiguous_location et la liste des régions, jamais un choix; la valeur city d'un candidat, « <ville>, <région> », désigne ce candidat."
},
"store_ids": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "integer",
"minimum": 1
},
"description": "With a location, the answer covers these stores only, by store id: only the nearest store of each chain to that SAME location is accepted; other ids are ignored, and the call is refused when none of them is."
},
"terms": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "string",
"minLength": 2,
"maxLength": 60
},
"description": "Generic grocery words, e.g. \"milk\", \"eggs\", \"ground beef\". Each is searched in the market's catalog."
},
"language": {
"type": "string",
"enum": [
"en",
"fr"
],
"description": "Product-name language (French names where the catalog has them; English otherwise)."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Paging (default 0): an answer over 48 KB comes in pages (paged true); the next page is this request with offset = next_offset and page_token = the page's page_token; next_offset null: last page."
},
"page_token": {
"type": "string",
"maxLength": 512,
"description": "Paging: the page_token of the page before, sent with offset only when that page carried one. A next page without it, more than 5 minutes after the first page, or whose answer changed is refused page_expired; offset 0 starts that answer anew."
},
"alcohol": {
"type": "boolean",
"description": "True only when the person explicitly asked for an alcoholic drink (beer, wine, spirits, hard seltzer); false or omitted otherwise, and never inferred."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"description": "Most products listed per term, cheapest first (default 25)."
}
},
"required": [
"country",
"terms"
],
"additionalProperties": false
}🟢market_compare_regions(country, regions, terms, language, offset, ...)
Read-only market data. Compares 2-4 regions of ONE market on the same catalog items: per term, each region's lowest banner median for every item priced in all of them (naming that banner), the percentage difference from the first region's (naming its banner), and a basket of each term's first common item with the banner of every line. A term with no item priced in every region compares each region's best-value pick, a SIMILAR product and not the same one, by unit price (basis unit_price: per kg, L or unit, never a kg against a L); when it cannot, the term is not compared and says why (not_compared_reason) with each region's pick (best value per unit for a term that states no size, never called its cheapest package; pick_basis says which), saying whether those picks are different products or the same one; the basket names the terms it leaves out. A region with no current median for a term is compared at last week's price, labelled (price_basis last_week, last_week_in) and never in the basket. A region that cannot be read is named in regions_refused with its refusal code and the others are compared, the first of them as the base (base_region); fewer than two read refuses the call. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"regions": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
}
},
"terms": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "string",
"minLength": 2,
"maxLength": 60
},
"description": "Generic grocery words, e.g. \"milk\", \"eggs\", \"ground beef\". Each is searched in the market's catalog."
},
"language": {
"type": "string",
"enum": [
"en",
"fr"
],
"description": "Product-name language (French names where the catalog has them; English otherwise)."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Paging (default 0): an answer over 48 KB comes in pages (paged true); the next page is this request with offset = next_offset and page_token = the page's page_token; next_offset null: last page."
},
"page_token": {
"type": "string",
"maxLength": 512,
"description": "Paging: the page_token of the page before, sent with offset only when that page carried one. A next page without it, more than 5 minutes after the first page, or whose answer changed is refused page_expired; offset 0 starts that answer anew."
},
"alcohol": {
"type": "boolean",
"description": "True only when the person explicitly asked for an alcoholic drink (beer, wine, spirits, hard seltzer); false or omitted otherwise, and never inferred."
}
},
"required": [
"country",
"regions",
"terms"
],
"additionalProperties": false
}🟢market_staple_prices(country, region, staples, language, offset, ...)
Read-only market data. The reviewed staple basket in one region: per staple, each banner's best-value product for the staple at its stated size (the same pick Nana makes for a household at that banner), priced at the banner's region-wide median times the packs that meet the size (a pick billing less than the size, sized in another unit, or with no size is not counted); the median of those banner figures when 3+ banners (each with 5+ stores) have one, the lowest and highest, and each banner's product. Medians confirmed within 8 days; a banner priced only up to 14 days ago is listed apart under last_week_prices as last week's price. A staple below a floor is listed as withheld; one that fewer than 3 banners price at its stated size (too_few_banners) lists each banner's own price at that size, with no typical, low or high price. on_sale is true when the line's price is a sale price below that product's regular price there (the line then carries regular_price, sale_price -- equal to price -- and savings, for the same packs); false when the price is the regular price; null for last week's price. A named product's sale state is its line's on_sale; a deals list holds only each banner's deepest discounts, so a product absent from one may still be on sale. Sale end dates are not published. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"region": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
},
"staples": {
"type": "array",
"minItems": 1,
"maxItems": 30,
"items": {
"type": "string",
"enum": [
"milk",
"eggs",
"butter",
"chicken_breasts",
"ground_beef",
"bread",
"bananas",
"canned_tomatoes",
"rice",
"pasta"
]
},
"description": "Staple keys; absent is the whole basket."
},
"language": {
"type": "string",
"enum": [
"en",
"fr"
]
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Paging (default 0): an answer over 48 KB comes in pages (paged true); the next page is this request with offset = next_offset and page_token = the page's page_token; next_offset null: last page."
},
"page_token": {
"type": "string",
"maxLength": 512,
"description": "Paging: the page_token of the page before, sent with offset only when that page carried one. A next page without it, more than 5 minutes after the first page, or whose answer changed is refused page_expired; offset 0 starts that answer anew."
}
},
"required": [
"country",
"region"
],
"additionalProperties": false
}🟢market_coverage(country, region)
Read-only market data. Per region of one market: the banners published (each with 5+ live stores), the banners withheld with their reason, and the live store count. Without a region, also each chain of the market once (chains: banner_id, the registry name, stores_enabled summed over the regions, published or withheld) and the market's totals. store_count counts the banner's stores Nana's catalog reads in the region, not every store the chain operates. too_few_stores: fewer than 5 such stores, too few for a regional median; at a location the banner's nearest store is still priced. no_fresh_prices: no price of the banner landed in the region within 8 days; stale_since is the last week one did, null when none is on record. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"region": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
}
},
"required": [
"country"
],
"additionalProperties": false
}🟢market_deals(country, region, postal_code, city, store_ids, ...)
Read-only market data. The latest published deals in one region of one market, per banner: item, brand, size, sale price and regular price, groceries first and then by discount (the household deals card's order), each banner's page dated by its confirmed_at, the day its flyer was read. A page answers for up to 8 days after confirmed_at, so one confirmed 7 days or more before read_at may be last week's flyer, not this week's; its confirmed_at is its date. The same deals a household sees for that banner and region, alcohol screened out: each deal carries alcohol, the catalog's own verdict (category first), false on every deal served. Per-deal start/end dates are not published. Only each banner's `limit` deepest discounts are listed, so a product missing here may still be on sale: a named product's own price line carries its on_sale. Takes EITHER region OR a location (postal_code, or city). With a location the answer is for the nearest store of each banner there (each store it names carries its banner, store id, store name, street and city; never a distance or coordinates), exactly as Nana answers a household at that code. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"region": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
},
"postal_code": {
"type": "string",
"minLength": 2,
"maxLength": 10,
"description": "A postal code of the country, in that market's own format (CA: its postal code; FR: its postal code; GB: its postcode; US: its zip code); a partial code only where the market's format has one. Used for this call only; never stored."
},
"city": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "A city name, used when no postal_code is given. A city resolves only when it names ONE place the country's store directory knows; otherwise the answer is location_unresolved and a postal_code is needed. A city whose stores form one metro across a state/region line (every store near the others) is read there without a question. Any other city in several states/regions is answered ambiguous_location with their candidates (most stores first), never one picked: each candidate carries region (the code), name (English), name_fr (French), city (its \"<city>, <region>\" value, which this argument resolves to that candidate) and store_count. FR : une ville dont les magasins forment une seule agglomération de part et d'autre d'une limite régionale (tous proches les uns des autres) y est lue sans question; toute autre ville présente dans plusieurs régions reçoit ambiguous_location et la liste des régions, jamais un choix; la valeur city d'un candidat, « <ville>, <région> », désigne ce candidat."
},
"store_ids": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "integer",
"minimum": 1
},
"description": "With a location, the answer covers these stores only, by store id: only the nearest store of each chain to that SAME location is accepted; other ids are ignored, and the call is refused when none of them is."
},
"banner": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9_]{0,63}$",
"description": "One banner key published in the region; every published banner of the region when absent."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "Deals per banner, in the page's order (default 20)."
},
"language": {
"type": "string",
"enum": [
"en",
"fr"
],
"description": "Product-name language (French names where the catalog has them; English otherwise)."
}
},
"required": [
"country"
],
"additionalProperties": false
}🟢market_stores(country, region, postal_code, city, store_ids)
Read-only market data. The live stores of one region per published banner: the banner name, its store count and opaque store ids. For a region, stores are named by banner only; at a location, stores lists each store once with its store name, street and city. Takes EITHER region OR a location (postal_code, or city). With a location the answer is for the nearest store of each banner there (each store it names carries its banner, store id, store name, street and city; never a distance or coordinates), exactly as Nana answers a household at that code. Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"region": {
"type": "string",
"pattern": "^[A-Z]{2,3}(-[A-Z0-9]{1,3})?$",
"description": "The region code in that country's market: CA: a province code (e.g. AB, BC); FR: an ISO 3166-2 region code (e.g. FR-20R, FR-ARA); GB: an ITL1 region code (e.g. TLC, TLD); US: a state code (e.g. AK, AL). Not every region has published prices now."
},
"postal_code": {
"type": "string",
"minLength": 2,
"maxLength": 10,
"description": "A postal code of the country, in that market's own format (CA: its postal code; FR: its postal code; GB: its postcode; US: its zip code); a partial code only where the market's format has one. Used for this call only; never stored."
},
"city": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "A city name, used when no postal_code is given. A city resolves only when it names ONE place the country's store directory knows; otherwise the answer is location_unresolved and a postal_code is needed. A city whose stores form one metro across a state/region line (every store near the others) is read there without a question. Any other city in several states/regions is answered ambiguous_location with their candidates (most stores first), never one picked: each candidate carries region (the code), name (English), name_fr (French), city (its \"<city>, <region>\" value, which this argument resolves to that candidate) and store_count. FR : une ville dont les magasins forment une seule agglomération de part et d'autre d'une limite régionale (tous proches les uns des autres) y est lue sans question; toute autre ville présente dans plusieurs régions reçoit ambiguous_location et la liste des régions, jamais un choix; la valeur city d'un candidat, « <ville>, <région> », désigne ce candidat."
},
"store_ids": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "integer",
"minimum": 1
},
"description": "With a location, the answer covers these stores only, by store id: only the nearest store of each chain to that SAME location is accepted; other ids are ignored, and the call is refused when none of them is."
}
},
"required": [
"country"
],
"additionalProperties": false
}🟢market_basket(country, postal_code, city, store_ids, items, ...)
Read-only market data. A shopping list billed at the stores of ONE location (postal_code, or city): per item, each store's best-value product in the packs that meet the quantity, with its price and price_basis (a median line carries the confirmed_at of its median, a shelf line and a last_week line the confirmed_at their price was observed (last_week: not as_of)); per store, the list's total there and whether it priced every item; and the cheapest store that priced the whole list, with its total. The same picks, prices and bill Nana gives a household at that code; a last-week price is shown labelled and is in no total. The answer is for the nearest store of each banner there (each with its store id, store name, street and city; never a distance). on_sale is true when the line's price is a sale price below that product's regular price there (the line then carries regular_price, sale_price -- equal to price -- and savings, for the same packs); false when the price is the regular price; null for last week's price. A named product's sale state is its line's on_sale; a deals list holds only each banner's deepest discounts, so a product absent from one may still be on sale. Sale end dates are not published. Item quantity: Omitted or 1 = the usual amount a household buys of that item (the same reading as Nana's cart add: e.g. bananas = a usual bunch of about 6). 2 or more counts the item as the term names it: pieces of a countable item, or packs when the term names a pack or size ('bag of onions' x2 = 2 bags; '2 L milk' x3 = three 2 L). A weighed item without a size counts the household's usual pack for it. A term or banner with no line says why (unmatched_reason, banners_unmatched; unmatched_reason_rule in the answer): excluded_category is alcohol, screened out, which does not mean the store does not sell it; search_unanswered (that store was not checked this time: its prices could not be read right now, which is not a failure or an error and does not mean it does not sell the item; a later call may answer it). Every figure is dated by the answer's as_of date: the OLDEST median or shelf price the answer quotes (its read time when it quotes none). No household data.
입력 스키마
{
"type": "object",
"properties": {
"country": {
"type": "string",
"enum": [
"CA",
"FR",
"GB",
"US"
],
"description": "ISO 3166-1 country code of the market."
},
"postal_code": {
"type": "string",
"minLength": 2,
"maxLength": 10,
"description": "A postal code of the country, in that market's own format (CA: its postal code; FR: its postal code; GB: its postcode; US: its zip code); a partial code only where the market's format has one. Used for this call only; never stored."
},
"city": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "A city name, used when no postal_code is given. A city resolves only when it names ONE place the country's store directory knows; otherwise the answer is location_unresolved and a postal_code is needed. A city whose stores form one metro across a state/region line (every store near the others) is read there without a question. Any other city in several states/regions is answered ambiguous_location with their candidates (most stores first), never one picked: each candidate carries region (the code), name (English), name_fr (French), city (its \"<city>, <region>\" value, which this argument resolves to that candidate) and store_count. FR : une ville dont les magasins forment une seule agglomération de part et d'autre d'une limite régionale (tous proches les uns des autres) y est lue sans question; toute autre ville présente dans plusieurs régions reçoit ambiguous_location et la liste des régions, jamais un choix; la valeur city d'un candidat, « <ville>, <région> », désigne ce candidat."
},
"store_ids": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"type": "integer",
"minimum": 1
},
"description": "With a location, the answer covers these stores only, by store id: only the nearest store of each chain to that SAME location is accepted; other ids are ignored, and the call is refused when none of them is."
},
"items": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "object",
"properties": {
"term": {
"type": "string",
"minLength": 2,
"maxLength": 60,
"description": "Generic grocery words, e.g. \"milk\", \"eggs\", \"2 L milk\". A brand or size is honoured only when named."
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 99,
"description": "How much of the item (default 1): Omitted or 1 = the usual amount a household buys of that item (the same reading as Nana's cart add: e.g. bananas = a usual bunch of about 6). 2 or more counts the item as the term names it: pieces of a countable item, or packs when the term names a pack or size ('bag of onions' x2 = 2 bags; '2 L milk' x3 = three 2 L). A weighed item without a size counts the household's usual pack for it."
}
},
"required": [
"term"
],
"additionalProperties": false
},
"description": "The shopping list: each item once, with its quantity."
},
"language": {
"type": "string",
"enum": [
"en",
"fr"
],
"description": "Product-name language (French names where the catalog has them; English otherwise)."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Paging (default 0): an answer over 48 KB comes in pages (paged true); the next page is this request with offset = next_offset and page_token = the page's page_token; next_offset null: last page."
},
"page_token": {
"type": "string",
"maxLength": 512,
"description": "Paging: the page_token of the page before, sent with offset only when that page carried one. A next page without it, more than 5 minutes after the first page, or whose answer changed is refused page_expired; offset 0 starts that answer anew."
},
"alcohol": {
"type": "boolean",
"description": "True only when the person explicitly asked for an alcoholic drink (beer, wine, spirits, hard seltzer); false or omitted otherwise, and never inferred."
}
},
"required": [
"country",
"items"
],
"additionalProperties": false
}커뮤니티
증거