extensions / Commerce extension
POST
/__runtime/products/searchSearch storefront products
Searches the products and pages of a project for the storefront search UI and returns matching products plus page results.
POST
Authentication
- Requirement
- Not specified
- Credential type
- Not specified
- Scopes
- Not specified
Permissions
- Requires the commerce products extension to be enabled for the project.
Headers
Path Parameters
Query Parameters
Request Body
Schema: RuntimeProductsRequest
| Field | Required | Type | Details |
|---|---|---|---|
project_id | Yes | integer | Description: Target project identifier. |
extension_id | No | integer | Description: Target extension identifier. |
page | No | integer | Description: Page number. Defaults to 1. Range: min 1 |
page_size | No | integer | Description: Number of products returned per page. Product listing/search requests are clamped by the product API. Range: min 1, max 200 |
page_items_limit | No | integer | Description: Maximum number of matching page results returned with product search results. Range: min 1 |
q | No | string | Description: Search text used by this operation. |
sort | No | string | Description: Product sort field. Unknown values fall back to position. Allowed values: positionnameproduct_namepricebrand |
direction | No | string | Description: Sort direction. Defaults to descending for position and ascending for other product fields. Allowed values: ascascendingdescdescending |
filters | No | object<string,array<string>> | Description: Filter map keyed by product attribute code. Use system keys for category/price filters, or replace an attribute key with a real product attribute code such as color, size, or brand. Object shape: category array<string>category_slug array<string>price array<number|string>price__min array<number|string>price__max array<number|string>color array<string> example attribute keysize array<string> example attribute key |
path | No | string | Description: Current storefront path. Category pages can infer category filters from this path. |
query | No | string | Description: Original storefront query string used to preserve pagination/filter URLs. |
Response Body
Example 200 response
json
{
"items": [],
"page_items": [],
"page_total": 1,
"total": 1,
"page": 1,
"page_size": 1,
"total_pages": 1
}Errors
400 BAD_REQUEST404 NOT_FOUND500 INTERNAL_SERVER_ERRORAvailability
- Available in
- v0.1.0
- Available since
- v0.1.0
- Implementation
- Available
- Deprecation
- Not specified
- Rate limits
- Not specified

