Dub

API

Open-source short link API with click analytics, QR codes and conversions

Price
Free tier, then paid
Access
API key

About

Link attribution platform for branded short links, QR codes and deep links, with click, lead and sale tracking and an affiliate program product. Open source (AGPL-3.0) and self-hostable; the hosted free plan includes API access at 60 requests a minute.

What you can do with it

  • Create branded short links on your own domain through the API
  • Generate a QR code for any link
  • Track clicks, leads and sales per link, and run affiliate programs with Dub Partners

Get started

  1. Create a free Dub workspace
  2. Create an API key under Settings > API Keys
  3. Send it as a Bearer token

Example

curl -X POST https://api.dub.co/links \
  -H "Authorization: Bearer $DUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://google.com"}'

Details

Hosting
Hosted service, Self-hosted
Available in
Worldwide
Official SDKs
JavaScript/TypeScript, Python, Go, Ruby, PHP, Swift
MCP server
Remote

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .