Endpoint to get unread/new?

Hi!

I’ve created a side navigation:

Here’s the website:

I’m using this endpoint to fetch and parse the categories: 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.

Any ideas on how I could get those data?

다음 코드를 사용해 보셨나요?

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

이 방법으로 Categories를 가져올 수 있습니다. 이 접근 방식으로 사용할 수 있는 속성이 몇 가지 더 있습니다.

예를 들어, 각 카테고리 객체에 unreadTopics와 newTopics가 있는 것을 확인할 수 있습니다.