API url refactored