Search Petco products
Automatically search Petco products on petco.com. Search Petco (petco.com, US) products by keywords, 48 a page, in the order of the site. For each product: id, name, link, brand, rating, review count, lowest and highest price and the price before the sale in US dollars, image, and each size or flavor with its item number, name, link and price. Also gives the total count and the number of pages. A page past the last one gives an empty list. For keywords that match no product, Petco shows the products it finds closest. Use a managed browser in the US.
Inputs
query requiredKeywords, for example "dog food".
page optionalResults page, 48 products a page.
Default: 1Output
page requiredpages requiredNumber of result pages.
query requiredtotal requiredNumber of products that match, on all pages.
products requiredFAQ
Remove a product from the Petco cart
Remove one line from the Petco (petco.com, US) cart of this browser and return the cart as the site holds it afterwards. Give the lineId of the line, from List the items in the Petco cart. Removes the line whatever its quantity. Returns removed (true when the line was removed, false when the cart has no such line, and then nothing is changed), the number of units, the subtotal before shipping and tax, and each line left with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account. Use a managed browser with country US.
Add a product to the Petco cart
Add a Petco (petco.com, US) product to the cart of this browser for shipping, and return the cart as the site holds it afterwards. Give the product id or link and, for a product with several sizes, the offerId (item number) of one size (both from Get Petco product), with a quantity from 1 to 10. Without offerId, the size that the link or item number names, or the one the page selects, is added. Returns the product id, offer id, name, whether the cart now holds the offer, and the cart: the number of units, the subtotal before shipping and tax, and each line with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account: lines already in the cart stay and are listed too. Nothing is paid or ordered. An unknown product, an offerId of another product, an item that cannot be ordered, or a quantity above the units in stock fails with a message that says so, and adds nothing. Use a managed browser with country US.
List the items in the Petco cart
List the items in the Petco (petco.com, US) cart of this browser, as the site holds it: for each line its line id, product id, offer id (the item number of the size), name, seller (always Petco), quantity, unit price and line price in US dollars, plus the number of units and the subtotal before shipping and tax. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list, a zero count and a zero total. Use a managed browser with country US.
