Base URL
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
Authorizationheader with a valid API token.
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
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
Banner
If a promotional banner is configured for the category in the Admin Panel, it appears in thebanner 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:
- Switch to
POST /category_pages/{hashid}on the{zone}-category-pages.doofinder.comhost. - Replace the
urlparam withbase_filter, using the field and value of the category the page renders. - Move the remaining params to the JSON body:
sort[N][field]=directionbecomes"sort": [{"field": "direction"}], andfilter[field][]=value/exclude[field][]=valuebecome"filter": {"field": ["value"]}/"exclude": {"field": ["value"]}.