Petco
Petco Search API
Search Petco products and get each one's price, list price and Repeat Delivery (autoship) price in dollars, rating, review count, brand, part_number, cat_entry_id, fulfillment flags (pickup in store, same-day delivery, autoship, in-store only), deal groups and every size or flavor variation with its own prices. Also returns total_results, facets with counts and the categories the matches fall into. 48 products per page. Prices are national. 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, up to 200 characters. A bare part number is rejected: use /api/v1/petco/product.
Example: dog food
pageintegerResults page, 1-based, up to 100. Defaults to 1. 48 products per page.
Example: 2
sortstringrelevance (default), price, rating, top_sold, newest or name.
sort_orderstringasc or desc. Defaults to asc for price and name, desc for everything else.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.petco.search(query="dog food")["data"]
for p in res["products"]:
print(p["part_number"], p["name"], p["price"], "autoship:", p["autoship_price"], "cat_entry_id:", p["cat_entry_id"])Response