This API method fetches a geohost graph in .png format

Request

GET /reporting/geohost_name/graph_id HTTP/1.0
Host: api.gslb.me 
Authorization: Basic base64_credentials

Where:

  • geohost_name is the name of the geohost you want to get graphs information  for (ie.: geo.mydomain.com)
  • graph_id is the id of the graph you want to fetch as a .png image. To get graphs ids, the get geohosts’s graphs list call can be used
  • base64_credentials is username:password in base64-encoded format (HTTP Basic Authentication)

Sample requests:

  • Raw request:
GET /reporting/geo.mydomain.com/24 HTTP/1.0
Host: api.gslb.me 
Authorization: Basic dGVzdHVzZXJAZ3NsYi5tZTp0ZXN0cGFzc3dvcmQK
  • Using curl:
curl -u testuser@gslb.me:testpassword -k https://api.gslb.me/reporting/geo.mydomain.com/24

Response

  • In case of invalid geohost, invalid graph id or internal error:
HTTP/1.1 500 Server Error

  • In case of success: the graph as a .png image
HTTP/1.1 200 OK
Content-Type: image/png