Links

Turn any URL into a short dby.sh link and count the people who click it. In the dashboard, open Links and choose Add link, or add one from code:

curl -X POST https://api.databuddy.cc/links/create \
  -H "x-api-key: $DATABUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Launch post", "targetUrl": "https://www.databuddy.cc/blog", "slug": "launch"}'

Leave out slug and Databuddy picks one. Adding a link needs a key with write:links.

FieldWhat it does
Name and destinationRequired
Slug3 to 50 letters, numbers, hyphens or underscores, unique
FolderGroups links by campaign, channel or customer, and filters the list
UTM parametersAdds utm_source, utm_medium, utm_campaign, utm_term and utm_content to the destination
iOS and Android destinationsSends iPhone, iPad and Android visitors elsewhere, such as an app store page
ExpirationAfter this time, visitors go to your fallback URL or a page saying the link expired
Social previewThe title, description and image apps show when the link is shared; filled from the destination, and you can override each
External IDYour own ID, such as a partner's, to list their links through the API
QR codeCustomize and download it for print, packaging or events

Open content in the visitor's app

Choose Add link, then Deep link, pick the app, and paste an HTTPS link to the content. On a phone it opens the app, falling back to the web page if the app isn't installed. On desktop it opens the web page.

Supported apps: Instagram, TikTok, YouTube, X, Spotify, LinkedIn, Facebook, WhatsApp and Telegram.

See who clicks

Open a link to see its clicks for the selected dates, today's count, referrers, devices, and countries, regions and cities. Bots and crawlers aren't counted, and neither are social apps fetching the link to build a preview.

To read clicks from code, use link analytics: POST /v1/query with link_id instead of website_id.

API key scopeAllows
read:linksListing and reading links
write:linksAdding, updating and deleting links
read:data with global accessClick analytics through /v1/query

How is this guide?