Skip to main content
GET
/
api
/
stats
/
{short_id}
Get Link Stats
curl --request GET \
  --url https://api.krumb.fun/api/stats/{short_id} \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Email: <x-email>' \
  --header 'X-Password: <x-password>'
{
  "success": true,
  "short_id": "<string>",
  "original_url": "<string>",
  "clicks": 123,
  "created_at": "2023-11-07T05:31:56Z"
}
GET /api/stats/{short_id} Retrieve analytics for a shortened link.

Path Parameters

  • short_id – The short ID (e.g. abc123 from https://krumb.fun/abc123)

Request Headers

  • X-Email: Your account email (e.g. [email protected])
  • X-Password: Your account password
  • X-Api-Key: Your API key

Example Request

GET /api/stats/abc123 HTTP/1.1
Host: api.krumb.fun
X-Email: [email protected]
X-Password: your_password
X-Api-Key: your_api_key

Success Response

{
  "success": true,
  "short_id": "abc123",
  "original_url": "https://example.com",
  "clicks": 42,
  "created_at": "2025-08-16T14:32:11.123456"
}

Error Responses

  • 400 – Missing headers
  • 403 – Invalid credentials
  • 404 – Link not found

Headers

X-Email
string
required

Your account email

X-Password
string
required

Your account password

X-Api-Key
string
required

Your API key

Path Parameters

short_id
string
required

Response

Stats retrieved

success
boolean
short_id
string
original_url
string
clicks
integer
created_at
string<date-time>