API for service availability/contact center availability

is there any API to know whether a service and/or the contact center is available or not (Need to know when Contact center is closed or the service is closed for some reason)