Dynatrace API to get application downtime

Also you can use the metric API to then gain the availability rate for the applicable underlying infrastructure of the app when applicable. Granted it will be an availability percentage and not down time hours/mins. There use to be synthetic reports that had all that data but thats deprecated