> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trychannel3.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find Brands by Name

Search brands ordered by relevance. Use returned IDs with `filters.brand_ids` on [Search with filters](/sdk/search-with-filters.md).

See also [Brand](/guides/brand.md) and [Brand search](/guides/brand-search).

```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
import Channel3 from "@channel3/sdk";

const client = new Channel3();

async function main() {
  const response = await client.brands.search({ query: "lululemon" });
  console.log(response.brands.map((b) => ({ id: b.id, name: b.name })));

  const brandId = response.brands[0]?.id;
  if (brandId) {
    const products = await client.products.search({
      query: "leggings",
      filters: { brand_ids: [brandId] },
    });
    console.log(products.products[0]?.title);
  }
}

main();
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from channel3_sdk import Channel3

client = Channel3()

def main():
    response = client.brands.search(query="lululemon")
    print([(b.id, b.name) for b in response.brands])

    brand_id = response.brands[0].id
    products = client.products.search(
        query="leggings",
        filters={"brand_ids": [brand_id]},
    )
    print(products.products[0].title)

if __name__ == "__main__":
    main()
```

To page through all brands, see [Browse the brand catalog](/sdk/browse-brands.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.