starbucks_nutrition
Recalculate calories, fat, sugars, and protein for a customized Starbucks espresso drink. Specify product, size, and complete modifier build to get accurate nutrition for exact custom recipe.
Instructions
Recalculate nutrition for a customized Starbucks drink. Recalculates calories, fat, sugars, and protein for a customized build of a Starbucks beverage: swap the milk, change the number of espresso shots or syrup pumps, and get the real figures for that exact drink rather than the standard recipe. Starbucks only offers this for four hot espresso beverages; product_number and form must be one of 406/hot (Caffe Americano), 407/hot (Caffe Latte), 408/hot (Caffe Mocha), or 413/hot (Caramel Macchiato). Any other product returns an invalid-parameter error naming the four that work. size_sku comes from a /starbucks/product result's sizes[].sku. modifiers is the COMPLETE build, not a change-set: start from that size's default_recipe, adjust what you want, and send the whole list back; an empty list is rejected. Each modifier needs a sku, an optional quantity (defaults to 1, and is the dial that matters for countable modifiers like espresso shots), and an optional replaced_sku when substituting a pick-one slot such as the milk. This returns Starbucks' own four-value dynamic-nutrition panel, which is smaller than the full per-size panel /starbucks/product returns for the standard build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | Yes | Product form. Only hot is supported for this endpoint | |
| request | Yes | The size and the complete modifier build | |
| product_number | Yes | Starbucks numeric product id. One of: 406, 407, 408, 413 |