# Add a product to the Target.com cart

Automatically add a product to the Target.com cart on target.com. Add a Target.com product to the shopping cart from its id (tcin) or product page link, with an optional quantity from 1 to 10, shipped to the buyer, and return the cart as the site holds it afterwards: each line with its product id, name, seller, quantity, unit price and line price in dollars, plus the item count and subtotal. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A product that cannot be shipped (sold out, store pickup only, or a family where one variant must be chosen), a quantity above the site's limit for the item, or a link that is not a Target product page fails with an error.

- Site: target.com
- Address: `reduck/target.com/add_to_cart`
- Updated: 2026-11-25 (v1)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/target.com/add_to_cart`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/target.com/add_to_cart
```

## Input

- `product` (string, required): Target product id (tcin, for example 53274278) or a www.target.com product link containing /A-<id>. Get ids from Search Target.com products.
- `quantity` (integer, optional): How many to add, 1 to 10.

## Output

- `added` (boolean, required)
- `count` (integer, required)
- `lines` (array, required)
- `total` (number | null, required)
- `productId` (string, required)
- `name` (string | null, optional)
- `offerId` (string | null, optional)

## FAQ

### What does "Add a product to the Target.com cart" do?

Add a Target.com product to the shopping cart from its id (tcin) or product page link, with an optional quantity from 1 to 10, shipped to the buyer, and return the cart as the site holds it afterwards: each line with its product id, name, seller, quantity, unit price and line price in dollars, plus the item count and subtotal. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A product that cannot be shipped (sold out, store pickup only, or a family where one variant must be chosen), a quantity above the site's limit for the item, or a link that is not a Target product page fails with an error.

### How do I automatically add a product to the Target.com cart on target.com?

Ask an AI agent connected to Reduck to run reduck/target.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/target.com/add_to_cart

### Is there a target.com API to add a product to the Target.com cart?

You do not need one. "Add a product to the Target.com cart" drives the real target.com pages in a browser, so it works whether or not target.com offers an API for this.

### What information do I need to provide?

Required: product. Optional: quantity.

### What does it return?

It returns name, added, count, lines, total, offerId, productId.

### Do I need to be logged in to target.com?

No. It only uses pages of target.com that are reachable without signing in.

### Does it change anything on target.com, or only read data?

It makes changes on target.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/target.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/target.com/add_to_cart

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/target.com/add_to_cart
