The Free API provides a daily summary of rides, distances, CO2 offset, Petrol saved along with the number of new users registered and the work trips for the past 90 days from the date of query. Global summary is the default response however, If you wish to get data for a specific city you can get the list of cities from another API call and pass the city id to get daily summary for that particular city.
|GET /api/v1/activities/map/:city_id||This API endpoint provides past 7 days' rides along with their locations. You could optionally pass the city id parameter(city_id=1) to filter for a particular city. Additionally, we have provided access to number of rides, number of riders, distance, CO2 offset, and fuel saved for individual rides as well as a cumulative summary.|
|GET /api/v1/activities/company/:id||On selection of a specified date range (date parameter formats specified below), this API endpoint provides rider and rides details (Ex: rider name, ride date, distace and ect). This API is restricted to company ambassadors only. If you are a company ambassador you need to pass company id as a parameter (which is available on the header next to your company name on the 'Manage Riders' page). Data available post 1st January, 2019.|
|GET /api/v1/cities/list||This API endpoint provides the list of cities that exists in cycle to work.|
|GET /api/v1/stats/global/:city_id||This API endpoint provides a daily summary of rides, distances, CO2 offset, Fuel saved along with the number of new users registered and the work rides for the past 90 days from the date of query.|