Bowmark AIdocs

KOKET

Reads KOKET's public furniture, lighting and textiles storefront (bykoket.com/shop) — search the catalog, read a product's live price, stock and…

Reads KOKET's public furniture, lighting and textiles storefront (bykoket.com/shop) — search the catalog, read a product's live price, stock and description, and get the handoff to add it to cart on the real site.

Domain: bykoket.com

Also known as: KOKET, Koket, By KOKET, bykoket.com, KOKET Home

Call it directly

bowmark.providers.bykoket.searchProducts(query: string): Promise<KoketProductSummary[]>
bowmark.providers.bykoket.getProduct(idOrUrl: string): Promise<KoketProduct>
bowmark.providers.bykoket.addToCart(idOrUrl: string): Promise<KoketAddToCartHandoff>

Functions

FunctionWhat it does
searchProductsSearches KOKET's live public catalog (furniture, lighting, textiles) and returns each match's id, name, product URL, price and stock status.
getProductReads one KOKET product's live page — price (list and current, since KOKET runs promotions), stock count, availability message, description and images.
addToCartHands back the shopper's own KOKET product page — the exact Add to cart button for this product — since the site's cart requires a per-session token nobody but the shopper can supply.

Types

interface KoketProductSummary {
  id: string;
  name: string;
  url: string;
  price: number;
  currency: string;
  inStock: boolean;
}

interface KoketProduct {
  id: string;
  name: string;
  url: string;
  reference: string;
  price: number;
  priceFormatted: string;
  listPrice: number;
  onSale: boolean;
  currency: string;
  inStock: boolean;
  quantityLeft: number | null;
  availabilityMessage: string;
  description: string;
  images: string[];
}

interface KoketAddToCartHandoff {
  id: string;
  name: string;
  url: string;
  price: number;
  currency: string;
  inStock: boolean;
  note: string;
}

Examples

const chairs = await bowmark.providers.bykoket.searchProducts("chair"); // => KoketProductSummary[]
const chair = await bowmark.providers.bykoket.getProduct("32"); // => KoketProduct, price/stock as of right now