Introduction

For authentication you always need to send your API key as a custom value named 'X-API-KEY' in the header. You can find it in the account page of the dashboard. All pings returned are in ms without separators.

X-API-KEY: YOUR_API_KEY_HERE

Ping all your websites

loadping.com/api/ping
[{"url":"http:\/\/example.com","ping":797},{"url":"http:\/\/www.example2.com","ping":1456}]

Ping of specific website

loadping.com/api/ping/example.com
[{"url":"http:\/\/example.com","ping":797}]

Ping history of specific website

loadping.com/api/history/example.com/2019-03-25
[{"id":13565,"website_id":1,"user_id":1,"ping":844,"time":"2019-03-25 00:00:02"},
{"id":13583,"website_id":1,"user_id":1,"ping":1044,"time":"2019-03-25 00:01:02"},
{"id":13586,"website_id":1,"user_id":1,"ping":753,"time":"2019-03-25 00:02:03"}]

All of your alerts

loadping.com/api/alerts
[{"id":1,"user_id":1,"website_id":1,"time":"2019-03-07 16:18:10","type":0,"status":0},
{"id":2,"user_id":1,"website_id":1,"time":"2019-03-07 19:04:07","type":5,"status":0}]

Alerts of specific website

loadping.com/api/alerts/example.com
[{"id":1,"user_id":1,"website_id":1,"time":"2019-03-07 16:18:10","type":0,"status":0},
{"id":2,"user_id":1,"website_id":1,"time":"2019-03-07 19:04:07","type":5,"status":0}]

Alerts of specific website on specific date

loadping.com/api/alerts/example.com/2019-03-25
[{"id":5,"user_id":1,"website_id":1,"time":"2019-03-25 14:48:07","type":5,"status":0}]