Hi
Product
Features
Security
Difference
Limits
FAQ
Pricing
Doc & Api
Get started free
NEXT-GEN LINK INFRASTRUCTURE

Stop guessing.
Start improving.

Deploy custom domains, ISO country routing, A/B split testing, PathLock™ PIN gates, and deterministic revenue attribution in under two minutes.

Get startedAccess our plans
Platform
  • Country & Device Routing
  • Weighted A/B Testing
  • Revenue Attribution (EPC)
  • Dynamic QR Studio
Security & Access
  • PathLock™ PIN Protection
  • Branded URL Masking
  • Click Limits & Expiration
  • Custom OpenGraph Cards
Developers
  • REST API & SDK Quickstart
  • Real-Time Click Telemetry
  • Signed Webhooks & Events
  • Full Documentation Hub
Legal & Trust
  • Privacy Policy (GDPR)
  • Terms of Service
  • No-Refund Policy
  • Dashboard Overview
LShorter Logo
LShorter© 2026 LShorter Inc.
Built on Cloudflare Edge Network
All 310+ Cloudflare Edge PoPs Operational
Privacy•Terms•Refunds
LShorter Logo
LShorter
HiHiProductProductFeaturesFeaturesSecuritySecurityDifferenceDifferenceLimitsLimitsFAQFAQPricingPricing
Doc & ApiDoc & Api
SDK & API Reference
Endpoints REST, clés Bearer et SDK TypeScript
Routage intelligent & Géo
Ciblage pays, OS mobile et redirection Edge
PathLock™ & Sécurité
Protection par code PIN, expiration et masquage
Télémétrie & Analytics
Flux de clics en direct, attribution et webhooks
RESSOURCESDocumentation

Documentation

Get started
LShorter Logo
LShorter
All guides & documentation

Real-Time Telemetry & Metrics API

Extract rich audience analytics, geographic breakdown, device statistics, and click telemetry with millisecond precision.

4 min read•Official Edge Documentation
Real-Time Telemetry & Metrics API

Overview & Architecture

Every interaction with your short links produces instant metrics aggregated at the Edge. No personally identifiable information (PII) is stored, ensuring native GDPR, CCPA, and PECR compliance.

Redirection counters (count) and financial conversion amounts (amount) synchronize in real time via REST API to power live dashboards, automation alerts, or financial profitability tracking systems (ROI/EPC).

Key Principles

Core architectural pillars ensuring high performance, isolation, and security.

01Atomic Click Counters (Count)
Every click is counted atomically at the Edge (totalClicks) and split between raw volume and cookieless unique visitors (uniqueVisitors).
02Monetary Metrics & Revenue (Amount)
Track cumulative revenue (trackedRevenue), average order value (AOV), and earnings per click (EPC = total revenue / total clicks).
03Multi-Dimensional Segmentation
Analyze performance by country, continent, device type (mobile, desktop, tablet), OS, and browser.
04Referrer Tracking
Pinpoint exact traffic sources (Twitter/X, LinkedIn, newsletters, search engines).
SDK Integration

Implementation & SDK Examples

Ready-to-use TypeScript code snippets and configuration examples for your integrations.

1. Fetching Statistics via SDK

Query comprehensive metrics for a specific link:

get-analytics.ts
typescript
123456789
import { lshorter } from "@/lib/lshorter";
const stats = await lshorter.analytics.get("launch-2026", {
period: "30d", // 24h, 7d, 30d, 90d, all
});
console.log("Total Clicks:", stats.totalClicks);
console.log("Top Countries:", stats.topCountries);
console.log("Device Breakdown:", stats.devices);
REST API Specification

API Endpoints & Reference

Direct HTTP request methods, parameters schema, authentication, and responses.

GET

Get Link Analytics

Bearer <API_KEY>60 to 1,400 req/min (by plan)
https://lsho.cc/api/v1/analytics/:slug

Retrieves aggregated click telemetry, country distribution, device breakdown, browser statistics, and top referring sources for a specific short link.

Path Parameters

ParameterTypeRequiredDescriptionExample
slugstringRequiredShort link slug alias.launch-2026

Query Parameters

ParameterTypeRequiredDescriptionExample
periodstring (24h | 7d | 30d | 90d | all)OptionalTimeframe window for metrics aggregation.Default: 30d30d
countrystring (ISO 3166-1 alpha-2)OptionalFilter statistics by a specific country code.US
devicestring (mobile | desktop | tablet)OptionalFilter statistics by device type.mobile

Request Examples

bash
12
curl -X GET "https://lsho.cc/api/v1/analytics/launch-2026?period=30d" \
-H "Authorization: Bearer $LSHORTER_API_KEY"

Response Payload

200 OKTelemetry payload containing comprehensive traffic analysis.
response-200.json
json
123456789101112131415161718192021222324252627282930313233
{
"slug": "launch-2026",
"period": "30d",
"totalClicks": 3482,
"uniqueVisitors": 2910,
"conversionsCount": 87,
"conversionRate": 2.5,
"trackedRevenue": 4263.0,
"currency": "USD",
"epc": 1.22,
"averageOrderValue": 49.0,
"topCountries": [
{ "code": "US", "name": "United States", "clicks": 1420, "percentage": 40.7 },
{ "code": "GB", "name": "United Kingdom", "clicks": 890, "percentage": 25.5 },
{ "code": "DE", "name": "Germany", "clicks": 450, "percentage": 12.9 },
{ "code": "FR", "name": "France", "clicks": 310, "percentage": 8.9 }
],
"devices": {
"mobile": 2180,
"desktop": 1150,
"tablet": 152
},
"browsers": [
{ "name": "Chrome", "clicks": 1940 },
{ "name": "Safari", "clicks": 1120 },
{ "name": "Firefox", "clicks": 422 }
],
"referrers": [
{ "source": "t.co", "clicks": 1200 },
{ "source": "linkedin.com", "clicks": 840 },
{ "source": "direct", "clicks": 950 }
]
}

Recommended Best Practices

Expert tips to maximize performance, resilience, and link security.

Recommendation 01

Use the period query parameter to fetch exact time windows for automated weekly and monthly campaign reporting.

Recommendation 02

Leverage mobile vs desktop breakdown to fine-tune your target page responsive design and load speed.

Recommendation 03

Combine UTM parameters with the referrer telemetry to isolate paid ad performance from organic social traffic.

Previous guideAdvanced Security & PIN Code ProtectionNext guideClick Limits & Scheduled Expiration

Related Guides & APIs

Quickstart & REST API Reference
Quickstart & REST API Reference
Integrate intelligent edge link shortening, real-time analytics, and conversion tracking with our high-performance REST API and TypeScript SDK.
Read guide & API
Dynamic Routing & Edge Geolocation
Dynamic Routing & Edge Geolocation
Redirect visitors to contextual URLs based on their origin country or continent with ultra-low latency.
Read guide & API