Developer

API reference

Programmatic access to link shortening, redirect, and stats. Request a key below to get started.

Base URL https://smply.cc/api/v1
Auth header X-API-Key: <YOUR_API_KEY>
POST /shorten Shorten a URL
Request body
json
{
  "url": "https://example.com/very/long/path"
}
Response 200
json
{
  "short_url": "https://smply.cc/abc123",
  "code":      "abc123"
}
GET /stats/{code} Get link stats
Path parameter
code string The short code returned from /shorten
Response 200
json
{
  "short":        "https://smply.cc/abc123",
  "original":     "https://example.com/very/long/path",
  "visited":      142,
  "created":      "2025-01-15T14:30:00Z",
  "last_visited": "2025-03-24T09:12:00Z"
}
GET /{code} Redirect to original URL
Behaviour

Returns a 302 Found redirect to the original URL. Increments the visit counter and records last_visited. No request body required.

Response 302
http
HTTP/1.1 302 Found
Location: https://example.com/very/long/path