PetSmart
PetSmart Search API
Search PetSmart products, up to 40 per page: SKU, web_style_id, name, brand, UPC, price, original price, sale price and the on_sale flag, the price range across sizes, rating and review count, size, variations, category, pets, promotions, how many stores stock it, pickup and Autoship eligibility, and product URL. Prices are national, in dollars. Pass store_id to list only products in stock at that store. 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/jsonquerystringrequiredSearch keywords.
Example: dog food
store_idstringPetSmart store number. When set, only products in stock at that store are listed and each carries in_stock_at_store. Find store numbers with /api/v1/petsmart/stores.
Example: 1658
pageintegerResults page, 1-based, 1-100. Defaults to 1.
Example: 1
limitintegerResults per page, 1-40. Defaults to 40.
Example: 10
sortstringrelevance (default), best_sellers, price_low, price_high, top_rated or new_arrivals.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.petsmart.search(query="dog food", store_id="1658", limit=10)["data"]
for p in res["products"]:
print(p["sku"], p["name"], p["size"], p["price"], "sale" if p["on_sale"] else "", "stores:", p["stores_in_stock"])Response