Chart statistics
Get user chart statistics#
- Url:
https://velo-europe.de/api/{lang}/proxy/statistics/user-chart-statistics
- Method:
GET
Authentication required
Request parameters#
- routeType -
required
- available values:all
,pending
,finished
- period -
required
- available values:year
,month
- year -
required if period is month
- eg.2021
,2021
Example response for month#
Object with keys of month and values of month days
{
"01": {
"01": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"02": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"03": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"04": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"05": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"06": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"07": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"08": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"09": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"10": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"11": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"12": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"13": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"14": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"15": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"16": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"17": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"18": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"19": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"20": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"21": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"22": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"23": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"24": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"25": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"26": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"27": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"28": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"29": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"30": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"31": {
"distance": 0,
"time": 0,
"avg_speed": 0
}
},
...
},
"12": {
"01": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
...
}
}
Example response for year#
Object with keys of years eg. 2020 and values of months from 01 to 12
{
"2020": {
"01": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"02": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"03": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"04": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"05": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"06": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"07": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"08": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"09": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"10": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"11": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"12": {
"distance": 0,
"time": 0,
"avg_speed": 0
}
},
"2021": {
"01": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"02": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"03": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"04": {
"distance": 3.11,
"time": 17.7,
"avg_speed": 20.88
},
"05": {
"distance": 0.48,
"time": 0.15,
"avg_speed": 52
},
"06": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"07": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"08": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"09": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"10": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"11": {
"distance": 0,
"time": 0,
"avg_speed": 0
},
"12": {
"distance": 0,
"time": 0,
"avg_speed": 0
}
}
}
Request example#
curl --location --request GET 'https://velo-europe.de/api/de/proxy/statistics/user-chart-statistics?routeType=all&period=year' \
--header 'Authorization: Bearer ZTc1ZDkwMTE3NzljYTY1ODNhMjI4ZjYwMGU1MjM2M2UwM2E4Y2E1YTUyNWVhZWE5MGVlM2EyZmU3NTVjY2Y2Ng'
Get user chart statistics v2 (generic)#
- Url:
https://velo-europe.de/api/{lang}/proxy/statistics/user-chart-statistics/generic
- Method:
GET
Authentication required
Request parameters#
- routeType -
required
- available values:all
,pending
,finished
Response object description#
[ // contains all needed years for user
{
"year": "2020",
"months": [ // contains all months
{
"month": "1",
"distance": 0,
"time": 0,
"avg_speed": 0,
"days": [ // contains all days of the month
{
"day": "1",
"distance": 0,
"time": 0,
"avg_speed": 0
}
...
]
}
...
]
}
...
]