[GH-ISSUE #1113] FR: Add stats endpoint to the API #729

Closed
opened 2026-03-02 11:52:13 +03:00 by kerem · 0 comments
Owner

Originally created by @MohamedBassem on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1113

Originally assigned to: @MohamedBassem on GitHub.

Discussed in https://github.com/hoarder-app/hoarder/discussions/1111

Originally posted by vhsdream March 11, 2025
I'm in the process of creating a Hoarder widget for homepage - discussion here, and I'm wondering if there is a way to return all bookmarks in a single API call. I've noted that without the limit parameter, it only returns the first 20; and if I use the parameter the maximum is capped at 100. I want to be able to return all of them just so I can display the total number of bookmarks in the widget. Which I suppose is not very efficient once you start to have thousands of bookmarks.

Since I actually have no training in Javascript or Typescript there is perhaps a better way of getting the info I need, or of somehow managing to do multiple sequential API calls in homepage's implementation; but I thought I'd ask in case I'm missing something simple.

Originally created by @MohamedBassem on GitHub (Mar 11, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1113 Originally assigned to: @MohamedBassem on GitHub. ### Discussed in https://github.com/hoarder-app/hoarder/discussions/1111 <div type='discussions-op-text'> <sup>Originally posted by **vhsdream** March 11, 2025</sup> I'm in the process of creating a Hoarder widget for [homepage](https://gethomepage.dev) - discussion [here](https://github.com/gethomepage/homepage/discussions/4391#discussioncomment-12369537), and I'm wondering if there is a way to return **all** bookmarks in a single API call. I've noted that without the `limit` parameter, it only returns the first 20; and if I use the parameter the maximum is capped at 100. I want to be able to return all of them just so I can display the total number of bookmarks in the widget. Which I suppose is not very efficient once you start to have thousands of bookmarks. Since I actually have no training in Javascript or Typescript there is perhaps a better way of getting the info I need, or of somehow managing to do multiple sequential API calls in homepage's implementation; but I thought I'd ask in case I'm missing something simple.</div>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#729
No description provided.