App Logo
fnac.com

Add a Fnac product to the cart

Automatically add a Fnac product to the cart on fnac.com. Add a Fnac.com product to the shopping cart from its id (a<number> or mp<number>, as Search Fnac products returns) or its product page link, with a quantity from 1 to 10, 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 euros, plus the item count and total. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. The product is added from the offer Fnac shows first; to buy from another seller, pass the offer id from Get Fnac product's offers, or a link that carries it. The seller of each line is named in the cart. Nothing is paid or ordered. A product that has no add button (unavailable) fails with an error, and so does a link that is not a Fnac product page.

Inputs

product required

Fnac product id as Search Fnac products returns it (a<number> or mp<number>), or a www.fnac.com product page link. A link ending with ?oref=<offer id> selects that seller's offer.

offer_id optional

Offer id from the offers of Get Fnac product, to buy from that seller instead of the offer Fnac shows first. Leave out for the default offer.

quantity optional

Units to add, 1 to 10. Added to what the cart already holds for the same offer.

Default: 1

Output

name required
added required
count required

Number of items in the cart, quantities summed.

lines required
total required

Cart total in euros as the site states it.

productId required

Fnac numeric product id of the line that was added.

offerId optional

FAQ

Add a Fnac.com product to the shopping cart from its id (a<number> or mp<number>, as Search Fnac products returns) or its product page link, with a quantity from 1 to 10, 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 euros, plus the item count and total. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. The product is added from the offer Fnac shows first; to buy from another seller, pass the offer id from Get Fnac product's offers, or a link that carries it. The seller of each line is named in the cart. Nothing is paid or ordered. A product that has no add button (unavailable) fails with an error, and so does a link that is not a Fnac product page.
Ask an AI agent connected to Reduck to run reduck/fnac.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/fnac.com/add_to_cart
You do not need one. "Add a Fnac product to the cart" drives the real fnac.com pages in a browser, so it works whether or not fnac.com offers an API for this.
Required: product. Optional: offer_id, quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of fnac.com that are reachable without signing in.
It makes changes on fnac.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/fnac.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/fnac.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking