Stats

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
Show

API endpoint:

GET
https://analytics.slymetrix.com/api/v1/stats/{id}

Request example:

                curl --location --request GET 'https://analytics.slymetrix.com/api/v1/stats/{id}' \
                --header 'Accept: application/json' \
                --header 'Authorization: Bearer {api_key}'
                
Parameter
Type
Description
from
required string
The starting date in Y-m-d format.
to
required string
The ending date in Y-m-d format.
name
required string
The name of the statistic. Possible values are: browser, campaign, city, continent, country, device, event, landing_page, language, os, page, pageviews, pageviews_hours, referrer, resolution, visitors, visitors_hours, sales, sales_hours, turnover, turnover_hours.
search
optional string
The search query.
sort
optional string
Sort. Possible values are: max for Best performing, min for Least performing. Defaults to: max.
per_page
optional int
Results per page. Possible values are: 10 to 100. Defaults to: 10.