App Logo
emag.ro

Add product to emag.ro cart

Automatically add product to emag.ro cart on emag.ro. Add an emag.ro product to the shopping cart from its product page link or product code, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the item count and products total. 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 page that does not offer the add button (out of stock, no longer listed) fails with an error; a link that is not an emag.ro product page fails with an error.

Inputs

product required

Link of an emag.ro product page (as Search emag products gives it) or its product code, 9 capital letters and digits, for example DM9NN8MBM.

quantity optional

How many units to add to the cart.

Default: 1

Output

name required
added required

Units this run added to the cart.

count required

Units in the cart after the add.

lines required
total required

Products total in lei, taxes included.

offerId required
productId required

FAQ

Add an emag.ro product to the shopping cart from its product page link or product code, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the item count and products total. 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 page that does not offer the add button (out of stock, no longer listed) fails with an error; a link that is not an emag.ro product page fails with an error.
Ask an AI agent connected to Reduck to run reduck/emag.ro/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/emag.ro/add_to_cart
You do not need one. "Add product to emag.ro cart" drives the real emag.ro pages in a browser, so it works whether or not emag.ro offers an API for this.
Required: product. Optional: quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of emag.ro that are reachable without signing in.
It makes changes on emag.ro, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/emag.ro/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/emag.ro/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking