# 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:** 15

<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,‏ 8:53pm UTC](https://meta.discourse.org/t/how-to-get-unread-notification-topic-count-via-api/113927/15 "2019-04-11T20:53:23Z")

</div>

Nice! Looks good.

I need to update the docs, but you can now use headers for the api authentication instead of query params. You can change your request to be

```plaintext
curl -i -sS -X GET "https://site/unread.json" \
-H "Api-Key: api-key" \
-H "Api-Username: api-username"

```

---

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