Total Wine & More data as structured JSON - product search, product detail and store locator, priced at the store you choose with units in stock, purchase limit and aisle. 3 endpoints, 2 credits each.
---
name: total-wine-product-data
description: Total Wine & More data as structured JSON - product search, product detail and store locator, priced at the store you choose with units in stock, purchase limit and aisle. 3 endpoints, 2 credits each.
version: 1.0.0
tags: total-wine, total-wine-api, total-wine-product-data, liquor, wine, beer, spirits, liquor-prices, store-prices, inventory, product-search, product-data, store-locator, retail, price-monitoring, agents, ai-agents, structured-data, json, mcp
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 120
throttle: 1
homepage: https://scavio.dev/docs/totalwine-search?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data
---
# Total Wine via Scavio
Search Total Wine & More, read one product in full, and find stores near a location. Total Wine prices and stock are set per store, so search and product take a `store_id` and return that store's price, units on hand and aisle. All endpoints return structured JSON.
## When to trigger
Use this skill when the user asks to:
- Find wine, spirits or beer at Total Wine by keyword or brand
- Check the price or stock of a bottle at a specific Total Wine store
- Find the aisle, bay or shelf of a product in a Total Wine store
- Find Total Wine stores near a ZIP code or city
- Compare Total Wine prices between stores, or against other liquor retailers
- Monitor Total Wine prices, stock or restocks
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
### If you do not have a key yet
An agent running this skill without `SCAVIO_API_KEY` set will get `401` on every
call below. The whole path from nothing to a working key is self-serve:
1. Sign up at [dashboard.scavio.dev](https://dashboard.scavio.dev/sign-up?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data) - email or Google, no card required.
2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
3. A new account starts with 50 credits. Every endpoint in this skill costs 2 credits.
When the balance runs out the API answers `402` with a JSON body carrying
`billing_url`. Topping up needs no code change - the same key keeps working.
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. All Total Wine endpoints cost **2 credits**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/totalwine/stores` | 2 | Stores near a ZIP or city, nearest first: `store_id`, address, phone, coordinates, distance in miles |
| `POST /api/v1/totalwine/search` | 2 | Search at one store: price (cents), units in stock, purchase limit, aisle, size, rating, pickup/delivery/shipping. `store_id` required |
| `POST /api/v1/totalwine/product` | 2 | One product at one store: price, units in stock, aisle, bay, shelf, last restock date, ABV, taste profile. `store_id` required |
## Workflow
1. **Find the store:** call `/totalwine/stores` with `query` (a ZIP or city). Take `store_id` from the nearest store.
2. **Search at that store:** call `/totalwine/search` with `query` and `store_id`. Every row is that store's price and stock.
3. **Product detail:** call `/totalwine/product` with the row's `id` as `product_id` (or a `product_url`) and the same `store_id`.
A response is only returned when Total Wine answered for the requested store. If the store carries none of the matches, Total Wine falls back to other stores; those rows are dropped, `products` is empty and `searched_all_stores` is `true` (Virginia stores, for example, sell no spirits).
## Parameters
### Stores (`/stores`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | required | ZIP code, city, or "city, state" |
| `radius` | integer | 50 | Miles, 1-200 |
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | required | Keywords (1-200 chars) |
| `store_id` | string | required | Store number from `/stores`, e.g. `"503"` |
| `page` | integer | 1 | 1-based page, 24 results per page |
### Product (`/product`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `product_id` | string | one of | Numeric id from search or the URL's `/p/<id>` |
| `product_url` | string | one of | Total Wine product URL ending in `/p/<id>` |
| `store_id` | string | required | Store number from `/stores` |
## Examples
```bash
curl -X POST https://api.scavio.dev/api/v1/totalwine/search \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "titos", "store_id": "503"}'
```
Captured response (store 503, San Antonio Del Norte; trimmed to one product):
```json
{
"data": {
"query": "titos",
"store_id": "503",
"page": 1,
"total_results": 13,
"total_pages": 1,
"searched_all_stores": false,
"count": 13,
"products": [
{
"position": 1,
"id": "96260175",
"sku_id": "96260175-1",
"name": "Tito's Handmade Vodka",
"brand": "Tito's",
"size": "1.75L Bottle",
"pack": "Single",
"container": "Bottle",
"url": "https://www.totalwine.com/spirits/vodka/vodka/titos-handmade-vodka/p/96260175",
"image": "https://www.totalwine.com/images/96260175/96260175-1-fr.png",
"price": 2999,
"prices": [
{
"price": 2999,
"type": "EDLP"
}
],
"in_stock": true,
"stock": 1204,
"purchase_limit": 6,
"aisle": "Aisle 03, Left",
"rating": 4.8,
"review_count": 3302,
"pickup": true,
"delivery": true,
"shipping": false
}
]
},
"response_time": 11108,
"credits_used": 2
}
```
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
def totalwine(endpoint, body):
r = requests.post(f"{BASE}/api/v1/totalwine/{endpoint}", headers=HEADERS, json=body)
r.raise_for_status()
return r.json()["data"]
# 1. Nearest store to a ZIP
store = totalwine("stores", {"query": "78801", "radius": 100})["stores"][0]
print(store["store_id"], store["name"], store["distance_miles"])
# 2. Prices and stock at that store (price is in cents)
found = totalwine("search", {"query": "titos", "store_id": store["store_id"]})
for row in found["products"]:
print(row["name"], row["size"], row["price"] / 100, row["stock"], row["aisle"])
# 3. Full detail at the same store
p = totalwine("product", {"product_id": found["products"][0]["id"], "store_id": store["store_id"]})
print(p["price"], p["stock"], p["aisle"], p["bay"], p["shelf"], p["last_received_date"])
```
## Response shapes
Every response uses the envelope `{ data, response_time, fetched_at, credits_used, credits_remaining }`. Nothing is cached; `fetched_at` is when Total Wine answered.
- **stores** - `query`, `radius`, `count`, `stores[]` (`store_id`, `name`, `address`, `city`, `state`, `zip`, `phone`, `latitude`, `longitude`, `distance_miles`, `delivery`).
- **search** - `query`, `store_id`, `page`, `total_results`, `total_pages`, `searched_all_stores`, `count`, `products[]` (`position`, `id`, `sku_id`, `name`, `brand`, `size`, `pack`, `container`, `url`, `image`, `price`, `prices[]` {`price`, `type`}, `in_stock`, `stock`, `purchase_limit`, `aisle`, `rating`, `review_count`, `pickup`, `delivery`, `shipping`).
- **product** - `id`, `sku_id`, `store_id`, `name`, `brand`, `size`, `pack`, `alcohol_percentage`, `url`, `images[]`, `price`, `prices[]`, `in_stock`, `stock`, `aisle`, `bay`, `shelf`, `last_received_date`, `rating`, `review_count`, `taste_profile[]`, `characteristics[]`, `breadcrumbs[]`, `pickup`, `delivery`, `shipping`.
## Guardrails
- `price` is an integer in cents: `2999` is $29.99. `prices[]` lists each price with its type; `EDLP` is the everyday price.
- Prices and stock are per store. Always name the store you quote, and never present one store's price as another's.
- `stock` is units on hand at that store when it was fetched; it can change within minutes.
- Never fabricate prices, stock or store details. Only return what the API returned, with the product `url` so the user can verify.
## Failure handling
- `400` means a missing or invalid parameter, most often a missing or non-numeric `store_id`. Look the store up with `/totalwine/stores`.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `402` means the balance is out of credits. The body carries `billing_url`.
- `404` on `/product` means no such product.
- `429` means rate or usage limit exceeded. Wait before retrying. See [rate limits](https://scavio.dev/docs/rate-limits?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data).
- `502` means Total Wine did not answer for the requested store or is temporarily unavailable. It is not charged; retry after a few seconds.
## SDKs
```bash
pip install scavio==0.29.0
npm install scavio@0.29.0
```
```js
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY
const { data: near } = await scavio.totalwine.stores({ query: "78801", radius: 100 });
const storeId = near.stores[0].store_id;
const found = await scavio.totalwine.search({ query: "titos", store_id: storeId });
const product = await scavio.totalwine.product({ product_id: found.data.products[0].id, store_id: storeId });
```
MCP: the Scavio MCP server exposes all 3 endpoints as tools (`search_totalwine`, `get_totalwine_product`, `get_totalwine_stores`). Total Wine is opt-in: add `totalwine` to `SCAVIO_PLATFORMS`.
```json
{
"mcpServers": {
"scavio": {
"command": "npx",
"args": ["-y", "@scavio/mcp-server@0.27.0"],
"env": {
"SCAVIO_API_KEY": "sk_live_your_key",
"SCAVIO_PLATFORMS": "default,totalwine"
}
}
}
}
```
## Docs
Full reference per endpoint: [search](https://scavio.dev/docs/totalwine-search?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data), [product](https://scavio.dev/docs/totalwine-product?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data), [stores](https://scavio.dev/docs/totalwine-stores?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data). Overview: [Total Wine API](https://scavio.dev/totalwine-api?utm_source=agent-skills&utm_medium=skill&utm_campaign=total-wine-product-data).
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into a dedicated decision points section covering auth failure, rate limits, out-of-stock, store fallbacks, and multiple-store comparison. documented edge cases (rate limits, auth expiry, empty result sets, 502 retries). clarified input requirements with scavio account setup and env var guidance. restructured original workflow into numbered procedure steps with explicit inputs and outputs. preserved all three endpoints and their response shapes in output contract. added outcome signal criteria for successful execution.
query total wine & more for wine, beer, spirits by keyword. get price, in-stock count, aisle location, and store details. all endpoints return structured json priced per store with live inventory. costs 2 credits per call. base url: https://api.scavio.dev.
use this skill to search total wine inventory by product name or brand, fetch full product detail including physical location within a store, or find total wine locations near a user's zip code or city. prices and stock are per-store, so the skill requires a store_id for search and product detail. use it when a user wants to know if total wine has something in stock, what it costs at a specific location, which aisle it's on, or which stores are nearby.
external connection:
environment variable:
SCAVIO_API_KEY: api key from scavio dashboard. set via export SCAVIO_API_KEY=sk_live_your_key. if missing, all calls return 401 unauthorized.api parameters by endpoint:
stores endpoint:
query (string, required): zip code, city, or "city, state" format.radius (integer, optional, default 50): search radius in miles. range 1-200.search endpoint:
query (string, required): product keywords, 1-200 chars. e.g., "titos vodka", "pinot noir".store_id (string, required): numeric store id from /stores response. e.g., "503".page (integer, optional, default 1): 1-indexed page number. 24 results per page.product endpoint:
product_id (string, one of required): numeric product id from search response or extracted from product url.product_url (string, one of required): full total wine product url (alternative to product_id).store_id (string, required): numeric store id from /stores response.resolve the store location. call POST /api/v1/totalwine/stores with the user's zip code or city in query. the response includes an array stores[] sorted by distance. extract store_id from the first result (nearest). if no stores found, the array is empty and skill cannot proceed. log store name and distance for user reference.
search for products at that store. call POST /api/v1/totalwine/search with the product keyword in query and the store_id from step 1. the response includes total_results and total_pages. if total_results is 0, the store does not carry any matching products. if searched_all_stores is true, total wine fell back to other stores because this store had no matches (common in virginia). extract products[] array. each row contains id, name, brand, size, price (in cents), stock, aisle, rating, pickup, delivery, shipping.
fetch full product detail. (optional, only if user asks for more info.) call POST /api/v1/totalwine/product with product_id (the id from step 2) and the same store_id. the response includes additional fields: bay, shelf, last_received_date, alcohol_percentage, taste_profile[], characteristics[], and full images[] array.
format and return results to user. present prices as dollars (divide cents by 100). always name the store in every result. include aisle, stock count, and url. do not invent or round prices. never present one store's price as another's.
if SCAVIO_API_KEY is not set: all requests will fail with 401 unauthorized. skill cannot recover without the key. prompt user to sign up at scavio.dev, copy the key from dashboard, and set the environment variable.
if the user provides a store_id directly (skipping step 1): use it. if it is invalid or non-numeric, the api returns 400 bad request. re-run step 1 to find the correct store.
if search returns total_results = 0 and searched_all_stores = true: the requested store does not carry the product and total wine did not find matches in fallback stores. this is not an api error; inform the user that total wine does not stock this item.
if search returns in_stock = false for a product: the product exists but is out of stock at that store. do not proceed to step 3 unless user explicitly asks for details.
if api returns 402 payment required: the account is out of credits. response body includes billing_url. guide user to top up at that url. the same key resumes working after top-up.
if api returns 429 too many requests: rate or usage limit exceeded. wait 10-30 seconds and retry. do not spam.
if api returns 502 bad gateway: total wine did not answer or is temporarily unavailable. retry after 5 seconds. this call is not charged.
if api returns 404 not found on product endpoint: the product_id does not exist. it may have been delisted. fallback to search to find alternatives.
if stock is 0 or very low (e.g., 1-2 units): inform user of low availability. stock can change within minutes; always include the timestamp from the response.
if the user asks to compare prices between stores: call search and product at multiple store_ids and present each with its store name, price, and stock. never collapse prices from different stores into a single row.
all responses are json objects with this envelope:
{
"data": { ... },
"response_time": <ms>,
"fetched_at": <iso8601 timestamp>,
"credits_used": 2,
"credits_remaining": <integer>
}
stores endpoint (/stores) response shape:
{
"data": {
"query": "78801",
"radius": 50,
"count": 3,
"stores": [
{
"store_id": "503",
"name": "San Antonio Del Norte",
"address": "...",
"city": "...",
"state": "TX",
"zip": "78801",
"phone": "...",
"latitude": 29.42,
"longitude": -98.49,
"distance_miles": 2.1,
"delivery": true
}
]
},
"response_time": 450,
"fetched_at": "2025-01-15T10:30:00Z",
"credits_used": 2,
"credits_remaining": 48
}
search endpoint (/search) response shape:
{
"data": {
"query": "titos",
"store_id": "503",
"page": 1,
"total_results": 13,
"total_pages": 1,
"searched_all_stores": false,
"count": 13,
"products": [
{
"position": 1,
"id": "96260175",
"sku_id": "96260175-1",
"name": "Tito's Handmade Vodka",
"brand": "Tito's",
"size": "1.75L Bottle",
"pack": "Single",
"container": "Bottle",
"url": "https://www.totalwine.com/spirits/vodka/vodka/titos-handmade-vodka/p/96260175",
"image": "https://www.totalwine.com/images/96260175/96260175-1-fr.png",
"price": 2999,
"prices": [
{
"price": 2999,
"type": "EDLP"
}
],
"in_stock": true,
"stock": 1204,
"purchase_limit": 6,
"aisle": "Aisle 03, Left",
"rating": 4.8,
"review_count": 3302,
"pickup": true,
"delivery": true,
"shipping": false
}
]
},
"response_time": 11108,
"fetched_at": "2025-01-15T10:30:11Z",
"credits_used": 2,
"credits_remaining": 46
}
product endpoint (/product) response shape:
{
"data": {
"id": "96260175",
"sku_id": "96260175-1",
"store_id": "503",
"name": "Tito's Handmade Vodka",
"brand": "Tito's",
"size": "1.75L Bottle",
"pack": "Single",
"alcohol_percentage": 40,
"url": "https://www.totalwine.com/spirits/vodka/vodka/titos-handmade-vodka/p/96260175",
"images": [ "https://www.totalwine.com/images/..." ],
"price": 2999,
"prices": [
{
"price": 2999,
"type": "EDLP"
}
],
"in_stock": true,
"stock": 1204,
"aisle": "Aisle 03, Left",
"bay": "03",
"shelf": "Left",
"last_received_date": "2025-01-10",
"rating": 4.8,
"review_count": 3302,
"taste_profile": [ "smooth", "clean" ],
"characteristics": [ "craft", "american" ],
"breadcrumbs": [ "Spirits", "Vodka" ],
"pickup": true,
"delivery": true,
"shipping": false
},
"response_time": 850,
"fetched_at": "2025-01-15T10:30:12Z",
"credits_used": 2,
"credits_remaining": 44
}
key fields to report:
price: integer in cents. divide by 100 for display. e.g., 2999 -> $29.99.stock: integer units on hand at that store. can change within minutes.aisle, bay, shelf: physical location in store. e.g., "Aisle 03, Left" and bay/shelf for detail.in_stock: boolean. if false, product is unavailable.pickup, delivery, shipping: fulfillment options available at that store.url: product page link so user can verify data.fetched_at: timestamp of api call. prices and stock are live as of this time.the skill worked if:
stores call succeeds: user gets a list of total wine locations sorted by distance, with store name, address, phone, coordinates, and distance in miles. at least one store is found.
search call succeeds: user gets a list of products matching the keyword, each with price in dollars, in-stock status, aisle location, size, brand, rating, and a url. if the store does not carry any matches, the response clearly states that (e.g., "no results at this store").
product call succeeds: user gets full detail including bay, shelf, last restock date, alcohol percentage, taste profile, and characteristics. all fields are populated from the api response.
prices are presented as dollars, not cents: e.g., "$29.99" not "2999".
the store name is always included: e.g., "at san antonio del norte, aisle 03, left".
timestamps are shown: the user can see when the data was fetched (in fetched_at).
urls are provided: user can click through to total wine to verify price, see more images, or buy.
credits consumed is logged: user knows each call cost 2 credits and can track balance.
errors are handled gracefully: if api returns 401, 402, 429, 502, etc., the user gets a clear message (e.g., "api key missing" or "out of credits, top up here: ...") and knows what to do next.