Example: Find products by keyword and include sold out products with available attributes to filter

Via TheShop Frontstore API v2, you can search for products by a keyword and include sold out products and available attributes for filtering in the response.

API client usage

Navigate to TheShop Frontstore API v2.

API docs

use Theshop\ApiClient\Connector;
use Theshop\ApiClient\Requests\Products\ProductListRequest;

public function search(Connector $connector)
{
    $products = $connector->send(new ProductListRequest(
        showSoldOut: true,
        flags: ['available_attributes'],
        keyword: 'example'
    ))->data['items'];   
}

Frontstore

Last updated