1,973 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get Banana Republic product
Get one product of the Banana Republic US store (bananarepublic.gap.com) from its id or its product page link: the product id, name, brand, description and detail lines, rating and rating count, the fits (for example Regular, Tall, Petite) and size labels, every color with its id, name, price, regular price, stock status and image, and every size variant with its offerId (the sku), color, fit, size, price, regular price in US dollars and stock. Pass offerId and productId to Add a product to the Banana Republic cart. A product page can hold several colors that Banana Republic names differently: name is the name of the color the page shows (selectedColorId), and each color has its own title. An id or link that Banana Republic does not know fails with a message that says so.
Search Banana Republic products
Search the Banana Republic US store (bananarepublic.gap.com) by free text, with the sort orders and filters of the site. Returns one page of up to 200 products as the site lists them: the product id, the id and link of the first color, the name, the sale and regular price range in US dollars, the rating, the review count, the number of colors, the image, the badges and offers shown on the card, and up to 5 colors with their own id, price and image. Also returns the total number of results, the page count, whether a next page exists, and the filters the site offers for this search (department, size, color, fit and more), each value with its result count. A search with no match, or a page past the last one, returns an empty list. When Banana Republic sends a search term to another page (for example a help page), the list is empty and redirectUrl gives that page. Pass a productId or url to Get Banana Republic product to see the sizes.
Add a product to the Banana Republic cart
Add a size of a Banana Republic US (bananarepublic.gap.com) product to the shopping bag of this browser, for shipping, and return the bag as the site holds it afterwards. Give the product id or link and the offerId of the size, both from Get Banana Republic product, and a quantity from 1 to 5. Returns the product id, offer id, name, the number of units added, and the bag: the number of units, the estimated total before tax and shipping, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Banana Republic can show units of one size on several lines, for example when an offer prices them differently. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. A product that Banana Republic does not know, a missing or unknown offerId, an out of stock size, or a quantity out of range fails with a message that says so, and adds nothing.
List the items in the Banana Republic cart
List the items in the Banana Republic US (bananarepublic.gap.com) shopping bag of this browser, as the site holds it. For each line: its line id (to pass to Remove a product from the Banana Republic cart), product id, offer id (the sku), name, seller, quantity, unit price and line price in US dollars after the offers Banana Republic applies in the bag. Banana Republic can show units of one size on several lines, for example when an offer prices them differently. Also returns the number of units and the estimated total, before tax and shipping. The bag is the guest bag of the browser, so no sign-in is needed. An empty bag returns an empty list and a zero count.
Remove a product from the Banana Republic cart
Remove lines from the Banana Republic US (bananarepublic.gap.com) shopping bag of this browser and return the bag as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that size. Both come from List the items in the Banana Republic cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the estimated total before tax and shipping, and each line left with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.
Search Gap products
Search the Gap US store (gap.com) by free text, with the sort orders and filters of the site. Returns one page of up to 200 products as the site lists them: the product id, the id and link of the first color, the name, the sale and regular price range in US dollars, the rating, the review count, the number of colors, the image, the badges and offers shown on the card, and up to 5 colors with their own id, price and image. Also returns the total number of results, the page count, whether a next page exists, and the filters the site offers for this search (department, size, color, fit and more), each value with its result count. A search with no match, or a page past the last one, returns an empty list. When Gap sends a search term to another page (for example a help page), the list is empty and redirectUrl gives that page. Pass a productId or url to Get Gap product to see the sizes.
