# API Query channel members

**URL:** https://forum.mattermost.com/t/api-query-channel-members/1050
**Category:** Troubleshooting
**Created:** [March 11, 2016, 9:47am UTC](https://forum.mattermost.com/t/api-query-channel-members/1050 "2016-03-11T09:47:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tht13](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tht13](https://forum.mattermost.com/u/tht13)
#### Post date: [March 11, 2016, 9:47am UTC](https://forum.mattermost.com/t/api-query-channel-members/1050/1 "2016-03-11T09:47:43Z")

</div>

I am trying to use the api to get a list of members of a channel. Slack has an api call `/api/channels.info?channel=id`  
What is the correct way of doing this in Mattermost?  
Also when is the Web service documentation ready? Because at the moment I get 404 errors if I go to a incorrect page so it is very difficult to get a list of commands which are possible.  
Thanks 😄

---

<div class="post-metadata">

### Author: ![hmhealey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hmhealey/32/1915_2.png) [@hmhealey](https://forum.mattermost.com/u/hmhealey)
#### Post date: [March 21, 2016, 1:17pm UTC](https://forum.mattermost.com/t/api-query-channel-members/1050/2 "2016-03-21T13:17:39Z")

</div>

Hi @tht13. The current api to do that is `/api/v1/channels/<CHANNEL_ID>/extra_info/<LIMIT>`. From that, you’ll get a json blob of the form

```auto
{
    id: CHANNEL_ID,
    members: A list of up to LIMIT truncated User objects with user id, nickname, email, and username
    member_count: The number of members in the channel including those not returned due to the limit
}

```

I believe that a limit of -1 will also cause the system to give you all members of that channel, but I’m not 100% certain of that.
