← All ideas

Link: Add a count endpoint to the v1 API with the same filters as the list

NewLinkIdea

Dub has GET /links/count that accepts the list filters and returns only the total (https://dub.co/docs/api-reference/endpoint/retrieve-links-count). Our API only returns total inside the paginated list, so a dashboard that wants a number must fetch a page of links too. First scope: GET /api/v1/links/count reusing parseLinkListQuery in lib/link-api-query.ts, links:read scope, grouped by an optional groupBy of tag or folder.

Comments 0

No comments yet.