Getting started
Overview
The statin REST API lets you shorten URLs and retrieve click analytics programmatically.
POST /links
Request, response & code samples →
ReferenceGET /links/:id/stats
Request, response & code samples →
Introduction
All requests are JSON over HTTPS. Authenticate with an API key from Integrations & API in your dashboard.
Authentication
Include your API key on every request using the Authorization header:
Authorization: Bearer la_your_api_key_hereKeys start with la_ and are shown only once when generated. You must be signed in to create keys from Integrations & API.
Base URL
All endpoints are relative to:
https://statin.io/api/v1Plan requirements
API access requires a Starter plan or higher. Free plans cannot create keys or call the API.
Metrics respect your plan's analytics retention window and which statistics breakdowns are included (countries, referrers, UTM, bot detection, etc.).
View plans →Errors
401— Missing or invalid API key403— Plan does not include API access or link limit reached404— Link not found400— Invalid URL or request body