normalize api url