# Filter by user in total message count endpoint

**URL:** <https://community.sendbird.com/t/filter-by-user-in-total-message-count-endpoint/5961>\
**Category:** API\
**Tags:** group-channel\
**Created:** [November 15, 2022, 7:42pm UTC](https://community.sendbird.com/t/filter-by-user-in-total-message-count-endpoint/5961 "2022-11-15T19:42:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkepps](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jkepps/32/1156_2.png) [@jkepps](https://community.sendbird.com/u/jkepps)\
**Post date:** [November 15, 2022, 7:42pm UTC](https://community.sendbird.com/t/filter-by-user-in-total-message-count-endpoint/5961/1 "2022-11-15T19:42:56Z")

</div>

**[Problem/Question]**  
Are there any plans to add the ability to include parameters in the `group_channel/{channel_url}/messages/total_count` endpoint. It would be really useful to be able to filter by user\_id and/or timestamp for example. As of now, I have to load all of the messages, 200 at at time, using the message list endpoint to get the total count of messages sent by a user in a channel. As you can imagine, that isn’t particularly performant.

Alternatively, adding this field to the metrics/analytics endpoint could also be an option, but I imagine adding some query parameters to the channel messages count endpoint that already exists would be pretty straight forward.

Thanks!
