Skip to main content
The Category Pages API (formerly Category Merchandising API) powers category listing pages (PLPs) on your ecommerce site. You tell it which category to render with a base filter, and it returns a paginated, faceted result set with your merchandising rules (pinning, boosting, hiding, sort order) and banner already applied. Version: 1.0

Base URL

Supported zones: eu1, us1, ap1
The former {zone}-category-merchandising.doofinder.com host still works but is deprecated. Use {zone}-category-pages.doofinder.com for new integrations.

Authentication

The API supports two authentication methods:
  • CORS (browser requests): requests from a domain registered as an allowed origin for the search engine are authenticated automatically. Allowed origins come from the site URL configured in your search engine settings.
  • API token (server-side requests): include an Authorization header with a valid API token.
The token is validated against the account owning the search engine identified by hashid. A missing, invalid, or unauthorized token returns 401 Unauthorized.

How it works

1

Configure your category pages in the Admin Panel

Go to Category Merchandising → Configuration and set up the facets, sort, rules and banners for your categories.
2

Call the API on page load

Send POST /category_pages/{hashid} with the category’s base_filter (e.g. {"category_merchandising": "shoes"}) in the JSON body.
3

Render the product grid

The response contains a paginated results array, facets for the filter UI, the applied base_filter and filter, and an optional promotional banner.

Endpoint

Send the parameters as a JSON body with Content-Type: application/json.

Required parameters

Optional parameters


Example request

Example response


Key concepts

Base filter vs. client filter

The base filter is always applied. Client filter values are combined with it: different fields are combined with AND, and values for the same field (including the base filter field) are combined with OR. Filter values are case-sensitive, so they must match the indexed values exactly. Facets for the base filter field are returned like any other facet, so your UI can let shoppers widen the category selection.

Facet types

If a promotional banner is configured for the category in the Admin Panel, it appears in the banner field. Use html_code when present (takes precedence over image); fall back to image / mobile_image otherwise. A banner from an active merchandising campaign takes precedence over the category one.

Error responses


Migrating from the deprecated endpoint

GET /category_merchandising/{hashid} is deprecated. It derives the base filter by matching a page url against the URL patterns configured in the Admin Panel. Its responses carry a Deprecation header (RFC 9745) and a Link header pointing to the successor endpoint. To migrate:
  1. Switch to POST /category_pages/{hashid} on the {zone}-category-pages.doofinder.com host.
  2. Replace the url param with base_filter, using the field and value of the category the page renders.
  3. Move the remaining params to the JSON body: sort[N][field]=direction becomes "sort": [{"field": "direction"}], and filter[field][]=value / exclude[field][]=value become "filter": {"field": ["value"]} / "exclude": {"field": ["value"]}.
The response format is the same.