LibClassicSwingTimerAPI
There is no relevant WOW API to have an easily accessible state of the swing timer. This library fires custom EVENTS that can be used in other ADDONs to produce swing timer information.
For usage exemple and API EVENTS: LibClassicSwingTimerAPI Documentation