Link shortener API

Power your product with smart short links & analytics

Build branded short links, control traffic routing, and access real-time analytics directly from your applications using Replug’s powerful URL shortener API.

Replug’s link shortener API explained

This API helps you create branded short links, manage campaigns, and track performance directly from your applications. It is built for developers and teams who need full control, automation, and insight beyond basic URL shorteners.

Create links via API

Generate branded short links, custom slugs, and campaign URLs using simple REST requests.

Access real-time analytics

Retrieve click data, referrers, locations, and device insights in structured JSON responses.

Secure REST framework

A RESTful API with OAuth authentication designed for reliable and protected integrations.

Scalable by design

Cloud-based infrastructure that supports automation, high traffic, and growing products.

Create shortened URLs & branded short links

Start integrating today

Connect your app to Replug’s API and start creating branded short links in minutes.

See the API in action

Get a quick view of how Replug’s URL shortener API works so you can start creating and tracking links in minutes.

Step 1: Authenticate

Connect securely using OAuth to gain access to your API endpoints.

Step 2: Create a short link

Send a POST request with your URL and campaign details to generate a branded short link.

Step 3: Receive short URL & analytics

The API responds with a unique short URL and an analytics ID you can use to track performance.

Step 4: Fetch click stats

Use a POST request to retrieve real-time click data, including referrers, location, and device information.

POST
/api/v2/links/create
Create a branded short link with optional custom slug, password protection, expiry date, and more
Request
curl -X POST 'https://api.replug.io/api/v2/links/create' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://example.com/my-product",
    "call_to_action_id": "507f1f77bcf86cd799439011",
  }'
Response
{
  "status": true,
  "message": "Link created successfully",
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "short_url": "abc123",
    "shorten_url": "abc123",
    "url": "https://example.com/my-product",
    "url_shortened": "https://rplg.co/abc123",
    "call_to_action_id": "507f1f77bcf86cd799439011",
    "brand_id": "507f1f77bcf86cd799439013",
    "created_at": "2025-12-15T10:30:00.000Z",
    "updated_at": "2025-12-15T10:30:00.000Z",
    "domain": {
      "url": "https://rplg.co",
      "scheme": "https",
      "netloc": "rplg.co",
      "registered_domain": "rplg.co"
    },
    "enabled_features": {
      "password_protection": false
    }
  }
}

Smart link capabilities

Deliver personalized experiences to every user automatically. Use traffic routing, geo-targeting, and A/B testing to increase engagement, boost conversions, and ensure every link drives results.

Smart link capabilities

Advanced analytics via API

Turn every click into a growth opportunity. Access real-time data on clicks, devices, locations, and conversions to understand your audience better and optimize campaigns for maximum performance.

Advanced analytics via API

Programmatic link creation

Create and manage links in seconds using a powerful API designed for marketers and developers. Automate link generation, use custom domains, and scale campaigns while keeping full control over your URLs.

Programmatic link creation

Why choose Replug over other URL shortener APIs?

See why marketers and developers trust Replug to deliver more than just short links.

Regular Links
Limited or no support for custom domains
Basic reporting or minimal insights
Links typically go to a single destination
Often lacks mobile deep linking or app store fallback
Focused only on shortening links, not marketing outcomes
Replug favicon
With Replug
Use your own domains for every link to strengthen your brand and build trust
Access real-time insights on clicks, devices, locations, and conversions to optimize campaigns
Automatically redirect users based on location, device, or campaign rules for better engagement
Easily connect web and mobile experiences to increase app engagement
Built for growth with features like UTM tagging, A/B testing, and campaign optimization

How can developers use the link shortener API

Manage links effortlessly while gaining insights to drive better marketing results.

SaaS product link generation

Automatically create branded short links for your software products, making onboarding, sharing, and activation seamless.

CRM link tracking

Integrate with CRM systems to track clicks, conversions, and customer engagement in real time across all touchpoints.

Affiliate & influencer platforms

Generate unique tracking links for affiliates and influencers to accurately measure performance, attribution, and payouts.

Marketing automation tools

Use the API to embed link creation, tracking, and analytics directly into automated marketing workflows.

Internal dashboards

Centralize link management, analytics, and reporting for teams with secure internal dashboards.

QR code generators

Combine short links with dynamic QR codes for offline campaigns, events, packaging, and print marketing.

Frequently asked questions

Answers to common questions for developers and marketers using Replug’s API.

All features for smarter link management

Over 30,000+ marketers onboard

Manage all your links in one place

Customize links, track clicks, optimize campaigns, and turn insights into measurable revenue growth with Replug.
Sign up for free

No credit card required

CTA Preview