Это пример выполнения запроса к интернет-ресурсу с помощью метода get встроенного модуля https
const { get } = require('https');
get('https://kodaktor.ru/g/ko_resp', (r, b = '') => r.on('data', x => b += String(x)).on('end', () => console.log(b)));