# How to get unread notification / topic count via API?

**URL:** <https://meta.discourse.org/t/how-to-get-unread-notification-topic-count-via-api/113927>\
**Category:** Product Support\
**Created:** [10 באפריל,‏ 2019,‏ 6:37am UTC](https://meta.discourse.org/t/how-to-get-unread-notification-topic-count-via-api/113927 "2019-04-10T06:37:50Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [11 באפריל,‏ 2019,‏ 5:44pm UTC](https://meta.discourse.org/t/how-to-get-unread-notification-topic-count-via-api/113927/13 "2019-04-11T17:44:01Z")

</div>

> [@blake](#):
>
> I’ll look into this. I don’t think there is an api endpoint for this

Okay there doesn’t appear to be an API endpoint for getting the unread or new topic counts for a user. It would be possible to write a plugin that creates a new endpoint that provides those stats. Those counts are coming from [this file](https://github.com/discourse/discourse/blob/master/lib/unread.rb).

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-unread-notification-topic-count-via-api/113927)._
