Better check for host url passed to api.