<molin-bought-together>, and you can call it directly to build your own “frequently bought together” block.
The endpoint is public, read-only, and needs no API key: the widget ID identifies the shop, and shoppers call it straight from the browser.
Call
widget.molin.ai, never molin.ai. Keeping every widget request on one origin means you don’t have to add another origin to your Content Security
Policy.GET /v1/bought-together
The product page URL. Tracking parameters and fragments are ignored, and the page is matched to your catalog by URL, or by
gtin or sku when given.1 adds an AI-written paragraph explaining why these products go with the one on the page.Language tag the explanation is written in, such as
hu or en-US. Defaults to your widget’s language.Response
The page’s own product, so you can show it at the head of the set the way a “frequently bought together” row does.
null when the page is not a known product, or when nothing was bought with it.Companions, strongest first, each once even when it sits in several sets.
coOrders is how many orders held both this product and the page product. originalPrice is empty when the source didn’t
provide a price before the discount. Only products that can still be bought are returned.The price as a number, with
priceCurrency as its ISO code, on the page product and on every companion. Use them to add a bundle total up rather than parsing the display price. priceAmount is
null when the source price could not be read as a number.The AI-written paragraph when
explain=1 was given and the text could be written, otherwise empty.200 with an empty products list rather than an error.
Caching and limits
Responses are cached for one hour. Requests are rate limited per IP.Errors
The endpoint answers400 for a missing or unknown widget ID, a missing url, and a limit outside the range described earlier, with no body. Treat a rejection as a bug in the request rather than something to retry.