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
http://myanalytics.dev/api/v1/stats/{id}

Request example:

curl --location --request GET 'http://myanalytics.dev/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, os, device, visitors, pageviews, country, city, page, referrer, resolution, language, landing_page, event, campaign, continent, visitors_hours, pageviews_hours.