Add api_host and api_port instance methods