Skip to main content
Dub provides comprehensive SDKs and libraries to integrate link management, tracking, and analytics into your applications. Choose the SDK that best fits your tech stack.

Server-Side SDKs

Use our server-side SDKs to create and manage short links, track conversions, and interact with the Dub API from your backend applications.

TypeScript

Official TypeScript/JavaScript SDK for Node.js applications

Python

Official Python SDK for Python applications

Go

Official Go SDK for Go applications

Ruby

Official Ruby SDK for Ruby applications

Client-Side SDKs

Track user interactions and conversions on your website with our client-side analytics tools.

Analytics Script

Lightweight JavaScript snippet for tracking clicks and conversions

React

React components for analytics and embeds

Next.js

Next.js integration with App Router support

Command Line Interface

Manage your Dub links directly from your terminal.

Dub CLI

Command-line tool for creating and managing short links

Features Across SDKs

All server-side SDKs provide consistent functionality:
  • Link Management - Create, update, delete, and retrieve short links
  • Domain Management - Manage custom domains for your workspace
  • Analytics - Track clicks, conversions, and attribution data
  • Customer Tracking - Associate conversions with customer profiles
  • Conversion Events - Track leads and sales for attribution

Authentication

All SDKs use API key authentication. Get your API key from the Dub Dashboard.
Authorization: Bearer dub_xxxxxx

Base URL

All API requests are made to:
https://api.dub.co

Getting Started

Choose your SDK and follow the installation and usage guides to get started with Dub in your application.

Build docs developers (and LLMs) love