Fix API history request