dub icon indicating copy to clipboard operation
dub copied to clipboard

[FEAT]: API endpoint for link analytics

Open versecafe opened this issue 1 year 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

These endpoints are available now;

devkiran avatar Apr 27 '24 14:04 devkiran