Fixed api call variable name