With the new version of Uptime Robot’s front-end, response time data was also added as a new feature.
However, it was not available in the API until today as we were experimenting ways to keep this huge data. Things look pretty stable now and response times can now be reached via API.
As expected, the feature is a parameter for the
getMonitors method. There are actually 2 parameters:
- responseTimes: if set to 1 (responseTimes=1), the response time for all the checks in the last 24 hours is returned
- responseTimesAverage (optional): the API can also return the values as averages for given minutes (for ex: the dashboard averages the values as 30 minutes). This parameter will be very handy once the data for longer periods will be available and we’ll be able to get averages for hours/days/weeks, etc.
Hope that this new addition will enable you to provide more useful data in your site and/or apps.