I would suggest using https://github.com/node-fetch/node-fetch
import fetch from 'node-fetch';
const response = await fetch('https://api.github.com/users/github');
const data = await response.json();
console.log(data);
For POST request:
import fetch from 'node-fetch';
const response = await fetch('https://bin.org/post', {method: 'POST', body: 'a=1'});
const data = await response.json();
console.log(data);