PetSmart
PetSmart Product API
One PetSmart product by web_style_id, SKU or product URL, with every variant (size and flavor): SKU, UPC, price, original price, sale price and end date, Autoship first-order and recurring price when an Autoship offer runs, ship-to-home stock, pickup and same-day purchase options, images, promotions and Treats points. Also brand, rating, review count, categories, description and the option lists. Prices are national, in dollars. Costs 1 credit 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/jsonweb_style_idstringProduct id: the number at the end of a product URL (...-36648.html), or the web_style_id of a search result. One id covers every size and flavor.
Example: 36648
skustringA SKU (one size or flavor), the sku of a search result. Returns the whole product it belongs to, with requested_sku set.
Example: 5252900
urlstringA petsmart.com product page URL ending in -<number>.html. Pass exactly one of web_style_id, sku or url.
Example: https://www.petsmart.com/dog/food/dry-food/purina-pro-plan-sensitive-skin-and-stomach-dry-dog-food-adult-salmon-and-rice-formula-digestive-health-36648.html
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.petsmart.product(web_style_id="36648")["data"]
print(p["name"], p["rating"], p["review_count"])
for v in p["variants"]:
print(v["sku"], v["options"].get("size"), v["price"], "was", v["original_price"], "autoship:", v["autoship"])Response