fix api data endpoint