Chewy
Chewy Product API
One Chewy product by id or chewy.com URL: one-time, offer, list and strike-through price with savings, MAP price and whether it is enforced, Autoship and first-Autoship price, discount and savings cap, per-unit price, in-stock flag, rating, rating count, review count and star distribution, brand, GTIN, description, key benefits, specifications, details, breadcrumbs, images, promotions and every variant with its own price, Autoship price and stock. Prices are in US dollars. Costs 10 credits per request; a failed attempt is not charged.
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/jsonproduct_idstringChewy product id: the number after /dp/ in a product URL, or a search result's product_id. 1-12 digits. Pass this or url.
Example: 38485
urlstringA chewy.com product URL, https://www.chewy.com/<name>/dp/<id>. Pass this or product_id.
Example: https://www.chewy.com/kong-classic-dog-toy/dp/38485
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.chewy.product(product_id="38485")["data"]
print(p["name"], p["price"], "list", p["list_price"], "MAP", p["map_price"], "enforced:", p["map_enforced"])
print("autoship:", p["autoship_price"], "first autoship:", p["first_autoship_price"])
print(p["rating"], "from", p["rating_count"], "ratings:", [(r["stars"], r["count"]) for r in p["rating_distribution"]])
for v in p["variants"]:
print("variant:", v["product_id"], v["attributes"], v["price"], v["in_stock"])Response