GET
/
analytics
/
{alias}
curl --request GET \
  --url https://ishortn.ink/api/v1/analytics/{alias} \
  --header 'x-api-key: <api-key>'
{
  "clicksPerDate": {
    "2024-07-01": 150,
    "2024-07-02": 200
  },
  "clicksPerCountry": {
    "US": 300,
    "CA": 50
  },
  "clicksPerCity": {
    "New York": 100,
    "Los Angeles": 150
  },
  "clicksPerDevice": {
    "Desktop": 250,
    "Mobile": 100
  },
  "clicksPerOS": {
    "Windows": 200,
    "iOS": 100,
    "Android": 50
  },
  "clicksPerBrowser": {
    "Chrome": 150,
    "Firefox": 100,
    "Safari": 50
  },
  "clicksPerModel": {
    "iPhone 12": 50,
    "Galaxy S21": 30
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

alias
string
required

The alias of the shortened link.

Response

200
application/json

Aggregated visit statistics retrieved successfully

The response is of type object.