analyze state transitions of different API