QRcodly
APIShort url

Get analytics for a short URL

GET
/short-url/{shortCode}/analytics

Returns analytics for a short URL. Every plan gets the aggregate statistics and a summary (last 7 days, top country, top device). The time-series data and the breakdowns by browser, operating system, device type and country require the Pro plan; without it they are null and detailsLocked is true. Only the owner can access analytics for their short URLs.

Authorization

bearerAuth
AuthorizationBearer <token>

Authenticate with a Bearer token. Pass your API key in the Authorization header: Authorization: Bearer <your-api-key>

In: header

Path Parameters

shortCode*string

The 5-character short URL code

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/short-url/string/analytics"
{  "shortUrlStats": {    "pageviews": 0,    "visitors": 0,    "visits": 0,    "bounces": 0,    "totaltime": 0  },  "summary": {    "pageviewsLast7Days": 0,    "visitorsLast7Days": 0,    "topCountry": {      "label": "string",      "share": 0    },    "topDevice": {      "label": "string",      "share": 0    }  },  "detailsLocked": true,  "viewsAndSessions": {    "pageviews": [      {        "date": "string",        "value": 0      }    ],    "sessions": [      {        "date": "string",        "value": 0      }    ]  },  "browserMetrics": [    {      "label": "string",      "count": 0    }  ],  "osMetrics": [    {      "label": "string",      "count": 0    }  ],  "deviceMetrics": [    {      "label": "string",      "count": 0    }  ],  "countryMetrics": [    {      "label": "string",      "count": 0    }  ]}
{  "message": "string",  "code": 0}
{  "message": "string",  "code": 0}
{  "message": "string",  "code": 0}
{  "message": "string",  "code": 0}