Query products with filters and pagination
POST/products/query
Query products using filters, sorting, and pagination. This endpoint supports a maximum of 10,000 results.
Filter: The filter object must have exactly one key. It can be a property filter (e.g. id, search, brand, publicCategories, medipimCategories, organization, deleted, status, productFamilies, media, attributes, dietaryRestrictions, colors, createdAt, touchedAt / updatedSince, hasContent, hasCorrections, publicPrice, regulatedPrice, gtin, ean, activeIngredient, atc) or a compound filter (and, or, not). See the ProductFilter schema for details. Additional region-specific filters may also be available.
Pagination Limit: This endpoint can only return up to 10,000 products. If your query matches more than 10,000 products:
- The
totalfield in the response will be capped at 10,000 - The
totalExceedsLimitfield will be set totrue - Use the
/products/streamendpoint to retrieve all matching products - Pass
compact=trueto return only product ids and the regional code. The compact path is served from the search index and does not hydrate full product documents. For result sets larger than 10,000, use/products/stream?compact=trueinstead. - If you only need Medipim product ids, use
/products/query-ids(or/products/stream-idswhen the result set exceeds 10,000).
Request
Responses
- 200
- 401
- 422
Successful operation
Unauthorized
Validation error (e.g., pagination limit exceeded)