Version 3.0.2
matplotlib

matplotlib.axis.XAxis.get_label_position

XAxis.get_label_position()

Return the label position (top or bottom)