App Logo
cvs.com

Add a product to the CVS cart

TL;DR

Automatically add a product to the CVS cart on cvs.com. Add a CVS product to this browser's cart for store pickup.

About

Use it to fill a CVS cart on the US site, from a product's id or link. A product with sizes, counts or colors needs the variant id from the get-product script. The site picks a store from the browser's location and offers only the quantity that store has. If the product, variant or quantity is not valid, nothing is added and an error says why. Nothing is paid or ordered. No account is needed.

Inputs

product required

The product id (from search-products) or the link of its page on cvs.com.

quantity optional

How many to add. The site sells at most max_quantity of a variant per order (get-product), and no more than the store has.

Default: 1
variantId optional

The item id of the variant to add (a variant id from get-product). Needed when the product has more than one variant.

Output

name required
added required
count required

The number of items in the cart after the add, all quantities added.

lines required
total required

The estimated cart total in US dollars, after deals and before taxes.

offerId required

The item id of the variant that was added.

productId required

FAQ

Add a CVS (cvs.com, US) product to the cart of this browser, as a guest, from its id or page link, with a quantity, as the product page's add-to-cart button does. A product sold in several variants (size, count, color) needs variantId, from get-product. The site adds the item for store pickup at the store it picks for the browser's location, and offers only the quantity that store has. Gives the cart after the add. An unknown product, an unknown or missing variant, or a quantity above what the site sells gives an error that says so, and nothing is added. Nothing is paid or ordered.
Ask an AI agent connected to Reduck to run reduck/cvs.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/cvs.com/add_to_cart
You do not need one. "Add a product to the CVS cart" drives the real cvs.com pages in a browser, so it works whether or not cvs.com offers an API for this.
Required: product. Optional: quantity, variantId.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of cvs.com that are reachable without signing in.
It makes changes on cvs.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/cvs.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/cvs.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking