dub icon indicating copy to clipboard operation
dub copied to clipboard

[FEAT]: API endpoint for link analytics

Open versecafe opened this issue 7 months ago • 1 comments

Proposal

An endpoint in the dub API for getting the related tinybird analytics data of a given link, project, or domain.

Extension

If this is approved I think it would make sense to add support for this to the dub-node package under something like

const data = client.analytics({ link: "dub.sh/fdsjebQ" });
// or
const data - client.analytics({ project: projectSlug });
// or
const data - client.analytics({ domain: "dub.sh" });

versecafe avatar Jan 20 '24 05:01 versecafe