-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.txt
26 lines (22 loc) · 1.25 KB
/
api.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Endpoints:
GET /analytics/time
GET /analytics/endpoints
GET /analytics/referrers
GET /analytics/hosts
GET /analytics/countries
GET /analytics/newusers
You may get a Gateway timeout (504) and high response times the first (few) times you look at analytics
Query Strings (for all endpoints; none required):
host: Filter for analytics on this host (deprecated)
endpoint: Filter for analytics on this endpoint
time: Filters for analytics with time (either 'd.M.yyyy', 'HH' or 'mm' based on timeunit)
timeunit: Any of 'date', 'hour' and 'minute' (default: 'date')
referrer: Filter for analytics from this referrer
deep: presence of this query string will give back more in depth data (this may result in a gateway timeout and even higher response times; won't work on every endpoint)
countrycode: Filters the data by a specific country
(of the following the shortest time period will be used)
days: Only use analytics from last x days (default: 7)
hours: Only use analytics from last x hours
minutes: Only use analytics from last x minutes
seconds: Only use analytics from last x seconds
You have to have the private token of your site as a cookie in your request