# Add a product to the World Market cart

Automatically add a product to the World Market cart on worldmarket.com. Add a World Market (worldmarket.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 colors or other options, the offerId of one variant (both from Get World Market product), with a quantity from 1 to 10. 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. Store stock follows the store World Market picks for a new guest. 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 offer that cannot be ordered, or a quantity above the limit of the product fails with a message that says so, and adds nothing.

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

## Run it

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

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

## Input

- `product` (string, required): Product id (the number at the end of a product link, for example 138556) or the product link.
- `offerId` (string, optional): Id of the variant to add, from the variants of Get World Market product. Without it, the variant the product page selects is added.
- `quantity` (integer, optional): How many to add.

## Output

- `name` (string | null, required)
- `added` (boolean, required): True when the cart now holds a line of this offer.
- `count` (integer, required): Number of units in the cart.
- `lines` (array, required)
- `total` (number | null, required): Subtotal in US dollars, before shipping and tax.
- `offerId` (string, required)
- `productId` (string, required)

## FAQ

### What does "Add a product to the World Market cart" do?

Add a World Market (worldmarket.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 colors or other options, the offerId of one variant (both from Get World Market product), with a quantity from 1 to 10. 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. Store stock follows the store World Market picks for a new guest. 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 offer that cannot be ordered, or a quantity above the limit of the product fails with a message that says so, and adds nothing.

### How do I automatically add a product to the World Market cart on worldmarket.com?

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

### Is there a worldmarket.com API to add a product to the World Market cart?

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

### What information do I need to provide?

Required: product. Optional: offerId, quantity.

### What does it return?

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

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

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

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