1,806 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get Fnac product
Read one fnac.com product from its Fnac id or product page link: title, price, list price, availability, rating, review count, brand, images and seller.
List the Fnac cart items
List the items in the Fnac.com cart of this browser, as the site holds it: for each line its product id, offer id, name, seller (Fnac itself or the marketplace seller), quantity, unit price and line price in euros, plus the number of items and the cart total. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list and a zero count.
Get Fnac product offers
List every offer for one fnac.com product, 10 sellers a page: price, condition, seller name and id, ships from, shipping price and delivery date. Fnac's own offer comes first on page 1.
Search Fnac products
Search Fnac.com by free-text query, with Fnac's own sort order and filters (price band, brand, sold by Fnac and the product's attributes). Returns one page of 20 results: the total result and page counts, has_next_page, the items (id, title, url, price, list_price, rating, review_count, image_url, brand, seller, seller_type, condition, availability as Fnac writes it, badges such as Black Friday, and the number of other offers shown under the card), and the filters the page offers for this search, each value with the id to pass back in filters. Prices are in euros. Results include marketplace sellers. A search with no match gives an empty items list with total_results 0, and a page past the last one gives an empty list too. Pass an id to Get Fnac product.
Remove a product from the Fnac cart
Remove a product from the Fnac.com cart of this browser by its product id, whatever its quantity, and return what is left in the cart: each line with its product id, offer id, name, seller, quantity, unit price and line price in euros, plus the item count and total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. When the same product is in the cart from several sellers, pass the offer id to pick the line.
Add a Fnac product to the cart
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.
