def fetch(endpoint):
        """
        Args:
            The Virustotal API endpoint to query.

        Returns:
            The Virustotal JSON response.

        Raises:
            RuntimeError if the request fails.
        """

        response = None
        url = VT_BASE_URL + endpoint
        header = {"X-Apikey": yeti_config.get("vt", "key")}
        response = requests.get(url, headers=header, proxies=yeti_config.get("proxy"))
        if response.ok:
            return response.json()
        else:
            msg = f"Failed to query Virustotal API: {response.json()}"
            logging.error(msg)
            raise RuntimeError(msg)

        Args:
            The Virustotal API endpoint to query.

        Returns:
            The Virustotal JSON response.

        Raises:
            RuntimeError if the request fails.
        
plugins/analytics/public/virustotal_api.py