get_product
Look up a single Yandex Lavka product's price, size, stock, description, and nutrition by ID, slug, or Lavka link. This read-only lookup does not modify data.
Instructions
Get one product: price, size, stock, description, nutrition. Read-only.
product is an id or slug from a search result, or a Lavka link (a
lavka.yandex.ru/good/... page or a shared ...?item= link).
nutrition is the КБЖУ block exactly as the product card shows it, numbers
as Lavka gives them (nothing recomputed), or null when the card has none
(non-food items):
per_100g: {kcal, protein, fat, carbs} per 100 g, or null.per_portion: the same per the card's other tab, with itslabel("Всё блюдо", "На упаковку", "На 50 г", ...), or null if the card has only one tab.default_basis: the only tab ("per_100g" / "per_portion") when the card has one; null when it has both (Lavka doesn't say which one opens).portion_grams: the portion's weight when the card states it (from the label, or the item's weight for a whole dish/pack), else null.warning: null, or a note that per_portion doesn't follow from per_100g for that weight — Lavka's own data is wrong then; don't log it blindly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||