Viso.li

Get Link Statistics

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

Returns click history for a short link you own. Each invocation can include location, referrer, device, and network details, depending on your plan.

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

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

Path parameters

FieldTypeDescription
slugstringRequired. Public slug of the shortened link.

Query parameters

FieldTypeDescription
startDatestringISO 8601 start of the range. Defaults to 7 days ago.
endDatestringISO 8601 end of the range. Defaults to today.

Example request

This reads January 2025 clicks for one slug.

1curl "https://viso.li/api/link/your-link-slug/stats?startDate=2025-01-01T00:00:00.000Z&endDate=2025-01-31T23:59:59.000Z" \
2 -H "Authorization: Bearer sk_api_your_api_key"

Success response

Returns 200 OK. Field detail on each invocation depends on your subscription.

response.json
1{
2 "slug": "your-link-slug",
3 "stats": {
4 "invocations": [
5 {
6 "date": "2025-09-24T14:20:00.000Z",
7 "continent": "NA",
8 "country": "United States",
9 "region": "CA",
10 "city": "San Francisco",
11 "referer": "google.com",
12 "asn": {
13 "asn": "15169",
14 "name": "Google LLC",
15 "domain": "google.com",
16 "type": "COM"
17 },
18 "browser": "Chrome",
19 "os": "macOS",
20 "deviceModel": "MacBook Pro",
21 "deviceType": "desktop"
22 }
23 ],
24 "startDate": "2025-09-01T00:00:00.000Z",
25 "endDate": "2025-09-30T23:59:59.000Z"
26 }
27}

Response fields

FieldTypeDescription
slugstringThe requested short-link slug.
stats.invocationsobject[]One row per click in the date range.
stats.startDatestringISO 8601 start of the resolved range.
stats.endDatestringISO 8601 end of the resolved range.

Errors

StatusErrorDescription
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 or 50 requests per day.
500Internal Server ErrorUnexpected server error. Retry the request.