0

Google has a Google Workspace Status Dashboard where they indicate whether any of their core services are experiencing an outage or not.

Accordingly, I would like to be able to fetch the status for a particular service. For example, I would like to check whether Gmail has one of the following statuses:

  • Available
  • Service disruption
  • Service outage

I would like to make an API call in Python that would retrieve the status and allow me to perform an action according to the current status.

Is there a way I can achieve this?

I found some documentation here but I'm still trying to figure out how I can do it.

geekygeek
  • 611
  • 4
  • 15
  • 1
    Use `https://www.google.com/appsstatus/dashboard/incidents.json` instead, you can find all the incidents as JSON, per dict object there is the service that experienced downtime with key `service_name` and other data. If you want GMail, i think you iterate through the key per object and handle accordingly. – Bijay Regmi May 24 '22 at 20:56

1 Answers1

0

The problem with the API is that it does not work directly with the Dashboard, instead it works with the information from the Google Workspace Alert Center, meaning that you need to set up an alert first in order to pull the data from this specific alert using the API and the alert will only be triggered when there is a service disruption or outage reported in the Dashboard, so it will not show any data about the service being Available but only when there is an outage.

As mentioned by Bijay Regmi and the official documentation, I think the best option would be to subscribe to the Status Dashboard RSS or use the JSON feeds.

With Python you could also create a RSS reader to pull that information in a better way, and you can use this other Stack Overflow post as a reference on how to build it.

Fernando Lara
  • 2,263
  • 2
  • 4
  • 14