private function buildUrl($mode, $params = [])
    {
        $urlParams = array_merge(['mode' => $mode, 'apikey' => $this->apiKey, 'output' => 'json'], $params);
        return 'http://' . $this->url . ':' . $this->port . "/api?" . http_build_query($urlParams);
    }