# Starbucks Menu ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/starbucks/menu` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 3 credits per call | | **Documentation** | https://www.piloterr.com/library/starbucks-menu | ## Description Full Starbucks menu for one café, with the default-size price of each item. Prices use browser rendering. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/starbucks/menu' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### DTLA Grand Park menu, default-size prices ```json { "store": { "name": "DTLA Grand Park", "open": false, "phone": "+1 213-625-2205", "address": { "city": "Los Angeles", "line1": "217 N. Hill Street", "region": "CA", "country": "US", "formatted": "217 N. Hill Street, Los Angeles", "postal_code": "90012" }, "distance": null, "schedule": [ { "day": "thursday", "open": true, "hours": "4:30 AM to 9:00 PM" }, { "day": "friday", "open": true, "hours": "4:30 AM to 9:00 PM" }, { "day": "saturday", "open": true, "hours": "5:00 AM to 5:00 PM" }, { "day": "sunday", "open": true, "hours": "5:00 AM to 5:00 PM" }, { "day": "monday", "open": true, "hours": "4:30 AM to 9:00 PM" }, { "day": "tuesday", "open": true, "hours": "4:30 AM to 9:00 PM" }, { "day": "wednesday", "open": true, "hours": "4:30 AM to 9:00 PM" } ], "store_id": "69543", "amenities": [ "In café", "Mobile Order and Pay", "MOP ASAP + Scheduled Ordering", "Nitro Cold Brew", "Oven-warmed Food", "Redeem Rewards", "Starbucks Wi-Fi" ], "time_zone": "GMT-07:00 America/Los_Angeles", "coordinates": { "latitude": 34.05612, "longitude": -118.24698 }, "open_status": "Opens Thursday at 4:30 AM", "hours_status": "Open 4:30 AM-9:00 PM", "store_number": "9230-154245", "ownership_type_code": "co", "recommendation_reason": "nearby" }, "results": [ { "sku": "183887", "uri": "/product/418/hot", "url": "https://www.starbucks.com/menu/product/418/hot", "name": "Pumpkin Spice Latte", "size": "grande", "price": 6.75, "sizes": [ "short", "tall", "grande", "venti" ], "calories": "390 calories", "currency": "usd", "form_code": "hot", "image_url": "https://cloudassets.starbucks.com/is/image/sbuxcorp/PumpkinSpiceLatteV1", "categories": [ "The Latest > Pumpkin Picks", "Coffee & Espresso > Hot Coffee & Espresso > Latte" ], "availability": "purchasable", "product_type": "beverage", "product_number": 418 } ], "currency": "usd", "pagination": { "next": null, "page": 1, "per_page": 275, "total_pages": 1, "total_results": 275 } } ``` ## Documentation ## Overview Starbucks Menu returns the order menu for one café. Each item includes the price of its default size. For drinks, that size is usually `grande`. The price on each row is the default size only, usually grande. To price short, tall, grande, and venti, call [Starbucks Product](https://www.piloterr.com/library/starbucks-product) with `query` built as `{product_number}/{form_code}` from that row, plus the same `store_number`. Product usually returns in about 30 seconds. Both calls time out at 60 seconds. Pass `store_number` from [Starbucks Search](https://www.piloterr.com/library/starbucks-search). `9230` and `9230-154245` both work. The whole menu comes back in one response, and `pagination.next` is `null`. The price is the price at that café. To get short, tall, grande, and venti for a single item, call [Starbucks Product](https://www.piloterr.com/library/starbucks-product) with `product_number` and `form_code` from this list. Some items have `price` set to `null`. That happens when Starbucks does not publish an order price for them, for example packaged coffee or a shopping bag. Drinks on the order menu are priced. ## Quickstart ``` GET https://api.piloterr.com/v2/starbucks/menu?store_number=9230 GET https://api.piloterr.com/v2/starbucks/menu?store_number=849 ``` Café `9230` is DTLA Grand Park. A live menu there is about 275 items. The hot Pumpkin Spice Latte (`418`, form `hot`) comes back at `grande` for 6.75 usd, 390 calories. The same drink iced is 6.95 usd at `grande`. From a menu row, the product call is: ``` GET https://api.piloterr.com/v2/starbucks/product?query=418/hot&store_number=9230 ``` Use the row's `form_code` in lowercase (`hot`). ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `store_number` | string | no | Café number, short or full | | `query` | string | no | Café number, or a menu URL with `storeNumber`, when `store_number` is empty | One of `store_number` or `query` is required. ## Response | Field | Description | |---|---| | `store` | The café, with the same fields as Search, including `recommendation_reason` | | `currency` | ISO currency for the prices below, such as `usd` | | `results` | Menu items | | `pagination` | One page. `next` is `null`. `total_results` is the number of items | Each item: | Field | Description | |---|---| | `product_number` | Number to use in Product | | `name` | Item name | | `form_code` | Form, such as `hot` or `iced` | | `categories` | Category path, for example `Coffee & Espresso > Hot Coffee & Espresso > Latte` | | `availability` | Whether the item can be ordered, such as `purchasable` | | `size` | Name of the default size | | `sku` | SKU of the default size | | `sizes` | Size codes only. These rows do not include a price | | `price` | Price of the default size, or `null` | | `calories` | Calorie label for the default size | | `image_url` | Image | | `url` | Product page | The example on this page shows one item. A real call returns the full menu, and `pagination.total_results` matches that count. ## Errors | Code | Meaning | |---|---| | `400` | No café number, or the URL is not on starbucks.com | | `404` | Café or menu not found | | `500` | No prices could be loaded |