Spec's
Spec's Product API
One Spec's product with every store's price and stock in store_prices (about 200 Texas stores in one call), the online price, and details: brand, size, proof, ABV, type, origin, region, vintage, tasting notes, description and images. Pass store_id to put that store's price at the top. Prices are in cents (3260 = $32.60). Costs 5 credits per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonslugstringLast part of the product URL, or the slug of a search result. Send slug or product_url.
Example: titos-texas-vodka-5
product_urlstringSpec's product URL, https://specsonline.com/shop/<type>/<slug>/.
Example: https://specsonline.com/shop/spirits/titos-texas-vodka-5/
store_idstringSpec's store number from /api/v1/specs/stores. Sets the top-level price and stock to that store's.
Example: 169
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# Store 169 = Stone Oak, San Antonio
p = client.specs.product(slug="titos-texas-vodka-5", store_id="169")["data"]
print(p["name"], f"store ${p['price'] / 100:.2f}", f"online ${p['online']['price'] / 100:.2f}")
# Every store's price in the same response
cheapest = min(p["store_prices"], key=lambda s: s["price"])
print("cheapest store:", cheapest["store_id"], f"${cheapest['price'] / 100:.2f}")Response