Williams-Sonoma
Williams-Sonoma Product API
One product of a Williams-Sonoma, Inc. brand by brand and product id, or by a product link: price range and markdown, availability, breadcrumbs, the dimension lines and materials, rating on Williams Sonoma, and every SKU with its options, price, regular price, online stock state, back-order date, ship mode and delivery services (standard, white glove, room of choice). US for every brand, and the Canadian sites of Williams Sonoma, Pottery Barn and West Elm in CAD. Costs 1 credit.
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/jsonbrandenum<string>The brand. Served here: us: every brand; ca: williams_sonoma, pottery_barn, west_elm. Any other brand answers 400 before anything is charged. Optional when url is sent (the brand is read from the link).
Example: williams_sonoma
williams_sonoma— Williams Sonoma.pottery_barn— Pottery Barn.pottery_barn_kids— Pottery Barn Kids.pottery_barn_teen— Pottery Barn Teen.west_elm— West Elm.rejuvenation— Rejuvenation.mark_and_graham— Mark and Graham (no stores).
marketenum<string>default:usus (default, USD) or ca (the brand's Canadian site, English, CAD: williams_sonoma, pottery_barn and west_elm).
us— The US site, USD.ca— The Canadian site, English, CAD.
productstringThe product id: the part after /products/ in a product link (items[].product_id in search and category). 2-150 characters.
Example: wusthof-classic-chefs-knife
urlstringA product link on the brand's site, instead of product (brand and market are read from it).
Notes
Williams-Sonoma. brand picks one of the seven Williams-Sonoma, Inc. brands: williams_sonoma (Williams Sonoma, cookware and kitchen), pottery_barn (Pottery Barn, furniture and home), pottery_barn_kids (Pottery Barn Kids), pottery_barn_teen (Pottery Barn Teen), west_elm (West Elm, modern furniture), rejuvenation (Rejuvenation, lighting and hardware) and mark_and_graham (Mark and Graham, personalized gifts; it has no stores). market is us (default, USD) or ca (the brand's Canadian site, English, CAD, for Williams Sonoma, Pottery Barn and West Elm on product). Every answer carries brand, brand_name, market, currency, language and host. The brands publish no public API. This endpoint costs 1 credit and serves us: every brand; ca: williams_sonoma, pottery_barn, west_elm. Reviews carry no reviewer names, locations or photos. Store phone numbers and addresses are the brands' public store details, as the store locator lists them. page_type says how the product is sold: simple (one item in sizes or colors), complex, configured (a made-to-order piece: configurator_base_skus lists the base SKUs to send to configurator for its fabrics, price range and lead time) or guided (every fabric and size listed as its own SKU). dimensions are the dimension lines as the brand gives them (Overall: 63" w x 33" d x 39" h for the Gabrielle sofa, blade and handle lengths for a knife), materials the material tags; width_in, height_in and depth_in sit on a SKU where the brand gives them. skus[].stock is on_hand, back_ordered (with back_ordered_date) or not_available; for unit ranges call stock, for dates to a ZIP delivery-estimate, for pickup per store store-pickup. Up to 500 SKUs are returned (skus_returned next to sku_count). rating and review_count exist on Williams Sonoma only; messages are the promotion messages valid today, with their dates as given. No UPC is published.
| Endpoint | Credits | Brands / markets |
|---|---|---|
product | 1 credit | us: every brand; ca: williams_sonoma, pottery_barn, west_elm |
configurator | 1 credit | us: pottery_barn |
delivery-estimate | 1 credit | us: every brand |
stock | 1 credit | us: every brand |
store-pickup | 1 credit | us: every brand with stores (not mark_and_graham) |
stores | 1 credit | us: every brand with stores (not mark_and_graham) |
floor-samples | 1 credit | us: every brand with stores (not mark_and_graham) |
categories | 1 credit | us: every brand |
category | 5 credits | us: pottery_barn |
search | 5 credits | us: williams_sonoma, pottery_barn |
popular-searches | 1 credit | us: every brand |
reviews | 1 credit | us: williams_sonoma |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=150)
# A knife in three sizes and many colors: every SKU with its price and stock state.
d = client.williamssonoma.product(brand="williams_sonoma", product="wusthof-classic-chefs-knife")["data"]
print(d["name"], d["price"], d["rating"], d["review_count"])
for s in d["skus"]:
print(s["sku"], s["options"], s["price"], s["regular_price"], s["stock"], s["back_ordered_date"])Response