Skip to main content
GET
/
short-links
/
metrics
Get metrics for short links
curl --request GET \
  --url https://api.wavix.com/v1/short-links/metrics
{
  "metrics": [
    {
      "latitude": 59.3247,
      "longitude": 18.056,
      "operating_system": "Mac OS X 10.15",
      "browser": "Firefox",
      "language": "English",
      "phone": "12762025555",
      "utm_campaign": "summer",
      "created_at": "2023-07-19T18:23:42.120Z",
      "link_hash": "hd82Jhs21",
      "user_id": 100017
    }
  ],
  "pagination": {
    "current_page": 2,
    "per_page": 25,
    "total": 101,
    "total_pages": 5
  }
}

Authorizations

appid
string
query
required

An API key to authorize your request

Query Parameters

from
string
required

Start date of your search time range, in yyyy-mm-dd format.

Example:

"2023-05-01"

to
string
required

End date of your search time range, in yyyy-mm-dd format.

Example:

"2023-05-31"

phone
string

Filter results by the phone number associated with the short links.

Example:

"1872025555"

utm_campaign
string

Filter results by the UTM campaign parameter. You can use this parameter to group the tracking insights by campaign.

Example:

"summer"

page
integer

The page number

Example:

1

per_page
integer

The number of records per page

Example:

25

Response

Short link metrics

metrics
ShortlinkMetricsItem · object[]
required

Short link metrics that match the search criteria

pagination
object
required
I