# How can I get a channel list with Filter on multiple conditions? i using '@amityco/js-sdk'

**URL:** <https://forum.social.plus/t/how-can-i-get-a-channel-list-with-filter-on-multiple-conditions-i-using-amityco-js-sdk/483>\
**Category:** Web\
**Created:** [July 16, 2022, 9:28am UTC](https://forum.social.plus/t/how-can-i-get-a-channel-list-with-filter-on-multiple-conditions-i-using-amityco-js-sdk/483 "2022-07-16T09:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huykaiser273](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@huykaiser273](https://forum.social.plus/u/huykaiser273)\
**Post date:** [July 16, 2022, 9:28am UTC](https://forum.social.plus/t/how-can-i-get-a-channel-list-with-filter-on-multiple-conditions-i-using-amityco-js-sdk/483/1 "2022-07-16T09:28:15Z")

</div>

Hi everyone,

for example, I have 3 channels:

- channel 1 with tags: ‘ios’
- channel 2 with tags: ‘android’
- channel 3 with tags: ‘window’

now i want to get a list with channels that having tag ‘ios’ and ‘android’, so the output should be [channel 1, channel 2]

i have tried this:  
const liveCollection = ChannelRepository.queryChannels({  
types: [ChannelType.Community],  
tags: [‘ios’, ‘android’],  
});

but didnt work. Are there any ways that i can filter on multiple conditions?  
btw i using ‘@amityco/js-sdk’

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 18, 2022, 11:37am UTC](https://forum.social.plus/t/how-can-i-get-a-channel-list-with-filter-on-multiple-conditions-i-using-amityco-js-sdk/483/2 "2022-07-18T11:37:08Z")

</div>

Hi @huykaiser273 may I confirm what is your channel type? is it community?

We did check your code and it should work, pls see here’s the sample code:

```auto
export const getChannels = async () => {
    const liveCollection = ChannelRepository.queryChannels({
        types: [ChannelType.Community],
        filter: ChannelFilter.Member,
        tags: ['ios', 'android'],
        excludeTags: ['deleted'],
        sortBy: ChannelSortingMethod.FirstCreated
    });

    liveCollection.on('dataUpdated', models => {
        console.log("checking get channels " + JSON.stringify(models))
    });
}

```

---

<div class="post-metadata">

**Author:** ![huykaiser273](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@huykaiser273](https://forum.social.plus/u/huykaiser273)\
**Post date:** [July 20, 2022, 7:14am UTC](https://forum.social.plus/t/how-can-i-get-a-channel-list-with-filter-on-multiple-conditions-i-using-amityco-js-sdk/483/3 "2022-07-20T07:14:08Z")

</div>

oh i have tried again and it works, Many tks
