Stream all products matching a filter
POST/products/stream
Stream products using filters and sorting. Unlike /products/query, this endpoint has no result limit and returns all matching products.
When to use: Use this endpoint when:
- Your query matches more than 10,000 products
- The
/products/queryendpoint returnstotalExceedsLimit: true - You need to retrieve all matching products regardless of count
- You only need product ids (and the regional code) for a large result set — pass
compact=true - You only need Medipim product ids — use
/products/stream-idsinstead
The compact path is served from the search index and does not hydrate full product documents, so it is substantially faster than a full stream.
The response is streamed as newline-delimited JSON (NDJSON).
Request
Responses
- 200
- 204
- 401
- 403
- 422
Successful operation. The response body is streamed as newline-delimited JSON: one JSON object per line, each containing a meta envelope and a result. Without compact, result is a full Product; with compact=true it is a ProductCompact.
No products match the given filter.
Unauthorized
Forbidden
Unprocessable Entity