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.

image

Any ideas on how I could get those data?

هل جربت استخدام:

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

لجلب الفئات؟ هناك عدد قليل من الخصائص الإضافية باستخدام هذا النهج.

على سبيل المثال، أرى أن هناك unreadTopics و newTopics لكل كائن فئة.

إعجابَين (2)