Skip to content

Browsing and search

View .mdllms.txt

Everything a visitor sees before they sign in works with your secret key alone (a publishable key works too, from a native app).

GET /v1/marketplace tells you how to build the shop:

Field Use it for
currencies The currency picker. The first is the default.
locales Languages. The first is the default.
term_kinds Which catalogue filters exist, e.g. brand, designer.
listings.attributes_schema A JSON Schema of the marketplace’s own listing fields (condition, dimensions…). Filter on them with attr.
shipping Delivery prices by size and zone, for “delivery from…” hints. See Shipping and delivery.

Cache it for a few minutes; it changes when the team edits Settings.

GET /v1/listings?q=lounge+chair&term=<brand id>&attr=condition:excellent&min_price=500000&currency=EUR&sort=newest&limit=24
Parameter What it does
q Words in the title, catalogue terms or description. Accents don’t matter and word beginnings match: “henn” finds Henningsen.
category This category and everything under it. Repeat it for several: listings in any of them.
location Stored at one of the marketplace’s locations (ids from GET /v1/locations), or seller: still with the seller. Repeat it for several.
term Catalogue term ids; repeat it. Terms of one kind match any (brand A or B); different kinds must all match (brand A and designer C).
attr key:value on the marketplace’s own fields; repeat it. Values of one key match any.
min_price, max_price Minor units of currency, which is then required. Listings in other currencies are compared at the day’s rate.
seller One seller’s listings, for a seller page.
new_days Only listings put on sale in the last this many days (up to 365), for a “New in” page.
ids Only these listings, in the order given (unless you sort); repeat it, up to 100. For a cart or a recently viewed list in one request. Ids not on sale are left out; set limit to get them all on one page.
currency Adds display_price in this currency (one of the marketplace’s).
sort relevance (the default with q), newest (the default without), price_asc, price_desc, popular (most saved).
facet Counts for your filters: term:<kind> (e.g. term:brand), attr:<key> (e.g. attr:condition), category or location; repeat it.
fields summary: only what a listing card shows (see below). full, the default: everything.
limit, cursor Paging. Pass next_cursor back as cursor; there’s no more when it’s absent.

The answer has items, total (how many match) and next_cursor. Only listings on sale are returned.

For a grid of listing cards, ask for fields=summary. Each item then has only these fields (the ListingSummaryBody schema), with the same names and values as the full listing:

id, seller_id, status, title, price, display_price, stock, category_id, terms (each with id, slug and name), attributes, custody, site, images (the main photo only: the first ready one), favorited and published_at.

It’s quicker to answer and a fraction of the size. Fetch the listing itself for its page. fields works the same on You may also like and favourites.

With facet, the answer also has facets: for each one, how many of the matching listings have each value (a term id, an attribute value, a category id, or a location id or seller).

"facets": [
{ "facet": "term:brand", "values": [{ "value": "<brand id>", "count": 4 }] },
{ "facet": "attr:condition", "values": [{ "value": "excellent", "count": 2 }] },
{ "facet": "category", "values": [{ "value": "<category id>", "count": 3 }] }
]

Each facet leaves out its own filter, so its counts show what choosing that value would give: with one brand chosen, the other brands still show how many they’d add. Values with nothing to show aren’t listed, so you can hide those choices.

A category counts only the listings placed in it, not those in its subcategories: add a subcategory’s count to its parent’s to show the parent’s total.

When q finds nothing because of a typo, the answer has suggestion: the corrected words, when they find something (“chiar” → “chair”). Show those results, or offer a link to them.

Every listing has price: what the seller set, in the listing’s currency. With currency, it also has display_price, converted at the day’s rate.

  • Show display_price when you asked for one, otherwise price.
  • Converted prices are approximate. The buyer pays what the quote says.
  • Format with Intl.NumberFormat(locale, { style: 'currency', currency }) after dividing by 100 for currencies with two decimals.
const money = ({ amount, currency }: { amount: number; currency: string }, locale = 'sv-SE') =>
new Intl.NumberFormat(locale, { style: 'currency', currency }).format(amount / 100)

A listing on sale may have a price_schedule: the price falls in steps while it doesn’t sell. The current price is already the dropped one, so you don’t need to work it out.

GET /v1/listings/{id}?currency=EUR returns one listing on sale (404 otherwise). Useful fields:

  • title, description, terms (by kind, each with name and slug), attributes, category_id.
  • images in display order; the first is the main photo.
  • delivery: how it can reach the buyer. See Shipping and delivery.
  • site: the showroom or warehouse it’s stored at, when it is (buyer_pickup says whether buyers may collect it there).
  • favorite_count, and favorited when you send the user’s session.
  • seller_id, for a link to the seller’s other listings (?seller=).

GET /v1/listings/{id}/similar?limit=8&currency=EUR suggests listings on sale like this one, best first. It works for sold listings too, so their pages can point to what’s still for sale.

It weighs what they share: the designer, then the brand, then the category (or a neighbouring one), details such as material or colour, a similar price, words in the title, and shoppers who saved both. No one seller, brand or designer fills the list while there are others to show. Near-equal matches are mixed per listing and per day, so a reload shows the same pieces but they change over time.

Suggestions are worked out at most every 15 minutes per listing; each answer still leaves out what has sold since and shows current prices.

reasons says why each was picked, by listing id, if you want to show it (“Also by Hans Wegner”): same_designer, same_brand, same_category, saved_together, similar_title, shared_details and similar_price.

{
"items": [{ "id": "…", "title": "CH24 Wishbone chair", "…": "…" }],
"reasons": { "…": ["same_designer", "similar_price"] }
}

Each image has status and urls:

Size Use
thumb 400 px square, for grids
medium 800 px wide, for listing pages on phones
large 1600 px wide, for zoom

The URLs are public and can be cached forever; a changed photo gets a new URL. Only ready images have sizes.

  • GET /v1/categories?locale=sv returns the whole tree at once, with parent_id and position. Build the menu from it.
  • GET /v1/catalog-terms?kind=brand&in_use=true&fields=summary returns every brand with listings on sale, each with listing_count, for a filter list. fields=summary leaves out the descriptions, which a filter doesn’t show.
  • GET /v1/catalog-terms?kind=designer&q=hen filters by the start of the name, a page at a time, for a brand or designer index.
  • GET /v1/catalog-terms/{kind}/{slug} returns one term, for a brand page at /brands/<slug>. Then list its listings with term=<id>.

GET /v1/locations returns the marketplace’s active showrooms and warehouses: address, opening hours and whether buyers may collect there. Use it for a “visit us” page.

With the user’s session:

  • PUT /v1/me/favorites/{listing id} saves, DELETE removes. Both are safe to repeat.
  • GET /v1/me/favorites?currency=EUR lists them, newest first, with cursor paging (fields=summary for cards).

Show the heart from favorited on listings you fetched with the session.