York Wallcoverings
Reads York Wallcoverings' public wallpaper/mural storefront (yorkwallcoverings.com) — search the catalog by keyword, read a product's live price and…
Reads York Wallcoverings' public wallpaper/mural storefront (yorkwallcoverings.com) — search the catalog by keyword, read a product's live price and stock, and get the handoff to add it to cart on the real site.
Domain: yorkwallcoverings.com
Also known as: York Wallcoverings, York Wallpaper, York Wall Coverings, yorkwallcoverings.com
Call it directly
bowmark.providers.yorkwallcoverings.search(query: string): Promise<YorkWallcoveringsSearchResult[]>
bowmark.providers.yorkwallcoverings.getProduct(url: string): Promise<YorkWallcoveringsProduct>
bowmark.providers.yorkwallcoverings.addToCart(url: string): Promise<YorkWallcoveringsAddToCartHandoff>Functions
| Function | What it does |
|---|---|
search | Searches York's live public catalog (wallpaper, wall murals, grasscloth) by keyword — theme, style, color or brand words all match, since the site's own search covers name and description —… |
getProduct | Reads one York product page in full — SKU, live price, in-stock/out-of-stock status, description and images — for a product URL search already returned. |
addToCart | Hands back the shopper's own York product page — the exact Add to cart button for this SKU — since the site's cart requires a per-session ASP.NET token nobody but the shopper can supply. |
Types
interface YorkWallcoveringsSearchResult {
sku: string;
name: string;
url: string;
price: number;
}
interface YorkWallcoveringsProduct {
sku: string;
name: string;
url: string;
price: number;
inStock: boolean;
description: string;
images: string[];
}
interface YorkWallcoveringsAddToCartHandoff {
sku: string;
name: string;
url: string;
price: number;
inStock: boolean;
note: string;
}Examples
const murals = await bowmark.providers.yorkwallcoverings.search("floral"); // => YorkWallcoveringsSearchResult[]const mural = await bowmark.providers.yorkwallcoverings.getProduct("https://yorkwallcoverings.com/psw1710m-tropical-lagoon-lush-premium-peel-stick-wall-mural"); // => price/stock as of right now