Skip to content

Instantly share code, notes, and snippets.

@tomaszklim
Created January 8, 2019 11:57
Show Gist options
  • Save tomaszklim/9be1f0b1ae3a50625d5ac1960e9120a5 to your computer and use it in GitHub Desktop.
Save tomaszklim/9be1f0b1ae3a50625d5ac1960e9120a5 to your computer and use it in GitHub Desktop.
Get the list of Uptimerobot.com checks
#!/bin/sh
api="u123456-qa9oic80zsll1xi0fhbwso1"
offset=$1
if [ "$offset" = "" ]; then
offset=0
fi
curl -s -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cache-Control: no-cache" \
-d "api_key=$api&format=json&logs=0&alert_contacts=1&limit=50&offset=$offset" \
"https://api.uptimerobot.com/v2/getMonitors" |python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment