Documentation

API reference

Create links, read click statistics and manage campaigns from your own systems.

Command Palette

Search for a command to run...

Pages

Link Stats Summary

GEThttps://www.viso.li/api/link/:slug/stats/summary

Returns counted totals for a short link you own: visits, unique visitors, countries, and the breakdowns your plan includes.

Without dates, the range is the last 7 days through today (start of day, server time).

deviceTypes and operatingSystems are null on FREE. referers.items is null below PRO. referers.unique is always a number.

Send Authorization: Bearer sk_user_api_your_api_key on every request. See authentication.

Path parameters

slugstringrequired
Public slug of the shortened link.

Query parameters

startDatestring
ISO 8601 start of the range. Defaults to 7 days ago.
endDatestring
ISO 8601 end of the range. Defaults to today.

Example request

This reads the counted overview for 12–19 October 2026. On FREE, deviceTypes and operatingSystems are null. Below PRO, referers.items is null.

Success response

Returns 200 OK. deviceTypes and operatingSystems are null on FREE. referers.items is null below PRO.

Response fields

slugstringrequired
The requested short-link slug.
startDatestringrequired
ISO 8601 start of the resolved range.
endDatestringrequired
ISO 8601 end of the resolved range.
visitsnumberrequired
Total clicks in the range.
visitorsnumberrequired
Unique visitors in the range.
referers.uniquenumberrequired
Number of distinct referring hostnames.
referers.itemsobject[] | nullrequired
Hostname counts. Null below PRO.
referers.items[].hostnamestringrequired
Referring hostname.
referers.items[].countnumberrequired
Clicks from this hostname.
countriesobject[]required
Clicks by country.
countries[].codestringrequired
ISO country code.
countries[].namestringrequired
Country name.
countries[].countnumberrequired
Clicks from this country.
deviceTypesobject[] | nullrequired
Clicks by device type. Null on FREE. Included on STARTER, PRO, and ENTERPRISE.
deviceTypes[].typestringrequired
MOBILE, TABLET, DESKTOP, BOT, or UNKNOWN.
deviceTypes[].countnumberrequired
Clicks from this device type.
operatingSystemsobject[] | nullrequired
Clicks by operating system. Null on FREE. Included on STARTER, PRO, and ENTERPRISE.
operatingSystems[].osstringrequired
Operating system name.
operatingSystems[].countnumberrequired
Clicks from this operating system.

Errors

StatusErrorDescription
400Bad RequeststartDate or endDate is not a valid ISO 8601 datetime, or endDate is before startDate.
401UnauthorizedMissing, malformed, or invalid Bearer token.
404Not FoundThe slug does not exist or does not belong to you.
429Too Many RequestsMore than 10 requests per minute and 50 requests per day. Some responses include a Retry-After header.
500Internal Server ErrorUnexpected server error. Retry the request.
1curl "https://www.viso.li/api/link/abc123/stats/summary?startDate=2026-10-12T00:00:00.000Z&endDate=2026-10-19T00:00:00.000Z" \
2 -H "Authorization: Bearer sk_user_api_your_api_key"
Response
1{
2 "slug": "abc123",
3 "startDate": "2026-10-12T00:00:00.000Z",
4 "endDate": "2026-10-19T00:00:00.000Z",
5 "visits": 120,
6 "visitors": 80,
7 "referers": {
8 "unique": 4,
9 "items": [
10 {
11 "hostname": "google.com",
12 "count": 40
13 }
14 ]
15 },
16 "countries": [
17 {
18 "code": "US",
19 "name": "United States",
20 "count": 70
21 }
22 ],
23 "deviceTypes": [
24 {
25 "type": "DESKTOP",
26 "count": 90
27 }
28 ],
29 "operatingSystems": [
30 {
31 "os": "macOS",
32 "count": 50
33 }
34 ]
35}