# Endpoint to get unread/new?

**URL:** https://meta.discourse.org/t/endpoint-to-get-unread-new/113500
**Category:** Development
**Created:** [April 5, 2019, 3:57am UTC](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500 "2019-04-05T03:57:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)
#### Post date: [April 5, 2019, 3:57am UTC](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500/1 "2019-04-05T03:57:19Z")

</div>

Hi!

I’ve created a side navigation:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/4/24a668fbbd7558653ad195260540bcfbb6810a8b.png)

Here’s the website:

> **[La Tranchée = Communauté + Coaching + Formation](https://forum.latranchee.com/)**
>
> Pour marketeurs & entrepreneurs trop ambitieux!

I’m using this endpoint to fetch and parse the categories: [https://forum.latranchee.com/categories.json](https://forum.latranchee.com/categories.json)

Right now, I’m showing the number of new post this week.

However, I’d prefer if I could show the number of unread and new posts, as is displayed on the category page.

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/1/41f7c23dc6e16e9cf96871a1f96f3d05df05a7d3.png)

Any ideas on how I could get those data?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 24, 2022, 6:27pm UTC](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500/2 "2022-06-24T18:27:36Z")

</div>



---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [June 24, 2022, 7:24pm UTC](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500/3 "2022-06-24T19:24:54Z")

</div>

Have you tried using:

```js
api.container.lookup("site:main").categories

```

to fetch the Categories? There are a couple more properties using this approach.

For example, I see there are `unreadTopics` and `newTopics` per each category object.
