2,339 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Search Amazfit products
Search the Amazfit US store (us.amazfit.com) by keywords, 24 products a page, in the store's own order: for each product its handle (pass it to Get Amazfit product or Add to Amazfit cart), title, type, link, price and struck-through price in US dollars, whether it is available, its number of variants and its image, plus the total number of results and whether another page follows. A search with no match, or a page after the last, gives an empty list.
Get Amazfit product
Get one product of the Amazfit US store (us.amazfit.com) by its handle or product link: title, type, tags, link, price and struck-through price in US dollars, availability, description, options (e.g. colour) and every variant with its id (pass it to Add to Amazfit cart), title, SKU, price and availability, and the images. An unknown handle fails with an error that says so.
Add to Amazfit cart
Add an Amazfit US (us.amazfit.com) product to the shopping cart by its handle or product link, with an optional variant id (from Get Amazfit product; the only variant when the product has one) and quantity from 1 to 10, and return the cart afterwards: each line with its line id, ids, name, variant, quantity, prices in US dollars and a review_hash, plus the item count and subtotal. Works as a guest: lines already in the cart stay. Nothing is paid or ordered. A sold-out variant, an unknown handle, or a product with several variants and no variant id fails with an error.
Remove from Amazfit cart
Remove one line from the Amazfit US (us.amazfit.com) shopping cart of this browser, whatever its quantity, by its line id and the review_hash that List Amazfit cart items gives for it, and return what is left. The review_hash makes sure the line is still the one that was reviewed (same variant, quantity and price): when it changed, or the line is not in the cart, nothing is removed and the run fails with an error.
List Amazfit cart items
List the items in the Amazfit US (us.amazfit.com) shopping cart of this browser: for each line its line id, product and variant ids, handle, name, variant, SKU, quantity, unit price, line price and struck-through price in US dollars, link, image and a review_hash (pass it to Remove from Amazfit cart), plus the item count and subtotal. It is the browser's guest cart: no sign-in. An empty cart gives an empty list.
