Get a list of all site with API

Hi All,

I have this cURL command:

curl -X GET api.pingdom.com/.../checks -H 'Authorization:Bearer <api_key>' | grep -oE '"hostname":"[^"]+"|,"type":"[^"]+"|,"http":"[^"]+"|,"url":"[^"]+"' | sed 's/"hostname":"\([^"]\+\)","type":"\([^"]\+\)","http":"\([^"]\+\)","url":"\([^"]\+\)"/\1\2\3/'

this gives me the following data:

"hostname":"www.site.com"
,"type":"http"

However, the result does not show me the full link of the site which should be www.site.comn/ecy/monitor or something to that effect. I can't see anywhere in the Pingdom API arguments to get that.

Any help would be appreciated.

Thx Dreadnought

Parents Reply Children