Petco
Petco Product API
One Petco product by part number or URL, with every variant (size, flavor): cat_entry_id, part number, SKU, UPC, price, list price, Repeat Delivery (autoship) price, first-autoship promo price, online quantity and status, fulfillment flags, ingredients, guaranteed analysis, directions, specifications, dimensions and images. Plus brand, rating, review count and breadcrumbs. 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/jsonpart_numberstringPetco part number, 4-10 digits: a search result's part_number. Pass this or url.
Example: 3748364
urlstringPetco product page URL, https://www.petco.com/product/<name>-<part number> (a search result's url). Answers faster than part_number.
Example: https://www.petco.com/product/purina-pro-plan-sensitive-skin-and-stomach-salmon-and-rice-formula-dry-dog-food-40-lbs-3748364
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.petco.product(part_number="3748364")["data"]
print(p["name"], p["rating"], p["review_count"])
for v in p["variants"]:
print(v["cat_entry_id"], v["upc"], v["price"], "autoship:", v["autoship_price"], "first autoship:", v["first_autoship_price"])Response