Skip to main content

REST API: Bulk statistics endpoint for all habits

Hi,

I use the REST API v2 for a daily review of my habits. GET /habits/{habitId}/statistics works per habit and accepts startDate and endDate, which is already a big help.

The remaining problem is scale: my account has 304 habits including archived ones, with 81 currently active. Collecting statistics for the whole account means one call per habit, which takes several minutes of sequential calls for a single day's review.

It would help to have a single endpoint that returns statistics for all habits (or for a list of habit IDs) over a date range, so a full-account review can be done in one call instead of hundreds.

Thank you,

Daisuke

2 comments

Comments2

  • daisuketeshima

    •

    Nov 20

    Thank you, Minh Thư! One note on the MCP suggestion: I currently can't use the MCP as a substitute for this, because its journal is also capped at 50 entries and the access token expires within a few hours of consent. Both issues are already reported to support (Zoey) and are with the engineering team. That's why a bulk statistics endpoint in the REST API would help so much. Thanks again for forwarding it!

  • Minh Thư

    Team•

    Nov 20

    Hi Daisuke, thank you for the detailed feature request!

    I can definitely see how making hundreds of sequential calls for a daily review is a bottleneck when you have that many active habits. I am forwarding your request for a bulk statistics endpoint directly to our development team to consider for a future update.

    In the meantime, you might want to check out Habitify MCP or Habi AI. Both of these tools can help you retrieve statistics and get a quick analysis on the overall performance of all your habits.

    Thanks again for the feedback and for using the API!