Fix broken getAPIRequestURL method