Cleans up api response