filters object to products.search. Every field is optional — combine as many as you need.
| Filter | SDK page |
|---|---|
| Price | Price filter |
| Color | Color filter |
| Dimensions | Dimension filter |
| Brand | Brand filter |
| Website | Website filter |
| Attributes | Attribute filter |
Combined example
import Channel3 from "@channel3/sdk";
const client = new Channel3();
async function main() {
const response = await client.products.search({
query: "running shoes",
filters: {
brand_ids: ["brand_id_1", "brand_id_2"],
gender: "unisex",
price: { min_price: 50.0, max_price: 150.0 },
availability: ["InStock", "LimitedAvailability"],
},
limit: 20,
});
console.log(response.products[0]?.offers[0]?.price);
}
main();
from channel3_sdk import Channel3
client = Channel3()
def main():
response = client.products.search(
query="running shoes",
filters={
"availability": ["InStock"],
"price": {"min_price": 10, "max_price": 50},
"gender": "male",
},
limit=20,
)
print(response.products[0].offers[0].price)
if __name__ == "__main__":
main()