> ## 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).

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

<CodeGroup>
  ```typescript TypeScript theme={null}
  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={null}
  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()
  ```
</CodeGroup>

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