API-Endpunkt:
https://auswertung.ch/api/v1/stats/{id}
Beispiel anfordern:
curl --location --request GET 'https://auswertung.ch/api/v1/stats/{id}?name={name}&from={from}&to={to}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
name
browser
, campaign
, city
, continent
, country
, device
, event
, landing_page
, language
, os
, page
, pageviews
, pageviews_hour
, referrer
, resolution
, visitors
, visitors_hour
.from
Y-m-d
.to
Y-m-d
.search
search_by
url
.sort_by
count
.sort
desc
.per_page
10
, 25
, 50
, 100
. Standardwert ist: 25
.