def METHOD_NAME(self, proxies: Optional[dict] = None):
    try:
        url = self._base_url.format(version=self.api_version, endpoint="getLangs")
        print("url: ", url)
        response = requests.get(url, params={"key": self.api_key}, proxies=proxies)
    except requests.exceptions.ConnectionError:
        raise ServerException(503)
    else:
        data = response.json()
    if response.status_code != 200:
        raise ServerException(response.status_code)
    return data.get("dirs")