Get World Market product
Automatically get World Market product on worldmarket.com. Get one World Market (worldmarket.com, US) product from its id or its product page link, also the id or link of one of its colors: product id, link, name, brand, rating out of 5, review count, category path, and each variant the page offers (the selected one and one per swatch or option button) with its offerId, options (for example color), price and price before the sale in US dollars, availability text, whether it can be ordered and shipped, the shipping surcharge, the most units one order can hold, and pickup stock at the store World Market picks for a new guest (pickup_store). Pass offerId to Add a product to the World Market cart. For a product with two kinds of options, only the combinations the page links to are listed. An id or link that World Market does not know fails with a message that says so.
Inputs
product requiredProduct id (the number at the end of a product link, for example 138556) or the product link.
Output
id requiredProduct id.
url requiredname requiredbrand requiredrating requiredAverage customer rating out of 5.
variants requiredbreadcrumbs requiredreview_count requiredFAQ
Search World Market products
Search World Market (worldmarket.com, US) products by keywords, 60 a page: id, name, link, lowest and highest price shown and the price before the sale in US dollars, price label (for example Sale), rating, review count, online stock status, colors and image of each, plus the total count and the number of pages. A search with no match gives an empty list and a zero total, and a page past the last one gives an empty list. When World Market sends the keywords to another page instead of results, redirected_to gives that page.
Remove a product from the World Market cart
Remove lines from the World Market (worldmarket.com, US) cart of this browser and return the cart as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that variant, whatever its quantity. Both come from List the items in the World Market cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the subtotal before shipping and tax, and each line left with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.
Add a product to the World Market cart
Add a World Market (worldmarket.com, US) product to the cart of this browser for shipping, and return the cart as the site holds it afterwards. Give the product id or link and, for a product with colors or other options, the offerId of one variant (both from Get World Market product), with a quantity from 1 to 10. Returns the product id, offer id, name, whether the cart now holds the offer, and the cart: the number of units, the subtotal before shipping and tax, and each line with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Store stock follows the store World Market picks for a new guest. Works as a guest, with no account: lines already in the cart stay and are listed too. Nothing is paid or ordered. An unknown product, an offerId of another product, an offer that cannot be ordered, or a quantity above the limit of the product fails with a message that says so, and adds nothing.
