# Add to Google Store cart

Automatically add to Google Store cart on store.google.com. Add a Google Store US product to the cart, with the options you choose, and get the cart back.

- Site: store.google.com
- Address: `reduck/store.google.com/add_to_cart`
- Updated: 2026-12-01 (v1)
- Author: Reduck AI (reduck)

## About

Use it to prepare a Google Store order, for example a phone in a given color and storage. Take the option labels from Get Google Store product. If an option is missing, the run fails and lists the choices. It adds the product as a guest and keeps the lines already in the cart. Nothing is paid or ordered. No account is needed.

## Run it

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

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

## Input

- `product` (string, required): The product's slug (e.g. pixel_buds_2a) or a store.google.com product link.
- `options` (array, optional): Option labels to choose, one per panel, exactly as Get Google Store product lists them (e.g. ["Fog"]).

## Output

- `sku` (string | null, required)
- `slug` (string, required)
- `count` (integer, required)
- `lines` (array, required)
- `chosen` (array, required)
- `cart_id` (string | null, optional)
- `line_id` (string | null, optional)
- `currency` (string, optional)
- `subtotal` (number | null, optional)
- `quantity_in_cart` (integer, optional)

## FAQ

### What does "Add to Google Store cart" do?

Add one unit of a Google Store US (store.google.com/us) product to the shopping cart from its buy page, choosing the options given (labels from Get Google Store product, e.g. "Fog", or "Obsidian", "256GB | 12GB RAM" and "Unlocked"), and return the cart afterwards: each line with its line id, SKU, name, quantity, line prices in US dollars and a review_hash, plus the item count and subtotal. A panel with a single option is chosen by itself; a panel left without a choice fails with an error that lists its options. Works as a guest: lines already in the cart stay. Nothing is paid or ordered.

### How do I automatically add to Google Store cart on store.google.com?

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

### Is there a store.google.com API to add to Google Store cart?

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

### What information do I need to provide?

Required: product. Optional: options.

### What does it return?

It returns sku, slug, count, lines, chosen, cart_id, line_id, currency, subtotal, quantity_in_cart.

### Do I need to be logged in to store.google.com?

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/store.google.com/add_to_cart
