App Logo
petco.com

Add a product to the Petco cart

Automatically add a product to the Petco cart on petco.com. 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.

Inputs

product required

Product id (for example 5030043), the item number of one size (for example 2998871) or the product link.

offerId optional

Item number of the size to add, from the variants of Get Petco product. Without it, the size that the product link or number names, or the one the page selects, is added.

quantity optional

How many to add.

Default: 1

Output

name required
added required

True when the cart now holds a line of this offer.

count required

Number of units in the cart.

lines required
total required

Subtotal in US dollars, before shipping and tax.

offerId required
productId required

FAQ

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.
Ask an AI agent connected to Reduck to run reduck/petco.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/petco.com/add_to_cart
You do not need one. "Add a product to the Petco cart" drives the real petco.com pages in a browser, so it works whether or not petco.com offers an API for this.
Required: product. Optional: offerId, quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of petco.com that are reachable without signing in.
It makes changes on petco.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/petco.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/petco.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking