在Node中请求GET失败

我正在向我的node后端请求第三方api服务。
我得到了403 forbidden的回应:

 request("http://www.giantbomb.com/api/search/?api_key=my_api_key&field_list=name,image,id&format=json&limit=1&query=street%20fighter%203&resources=game",(err,res,body) => { console.log(body); }) 

在浏览器中查询相同的请求会返回预期的结果。
任何想法为什么会发生?

编辑:

logging响应正文,我收到下面的页面(没有JS):

 <h1>Wordpress RSS Reader, Anonymous Bot or Scraper Blocked</h1> <p> Sorry we do not allow WordPress plugins to scrape our site. They tend to be used maliciously to steal our content. We do not allow scraping of any kind. You can load our RSS feeds using any other reader but you may not download our content. <a href='/feeds'>Click here more information on our feeds</a> </p> <p> Or you're running a bot that does not provide a unique user agent. Please provide a UNIQUE user agent that describes you. Do not use a default user agent like "PHP", "Java", "Ruby", "wget", "curl" etc. You MUST provide a UNIQUE user agent. ...and for God's sake don't impersonate another bot like Google Bot that will for sure get you permanently banned. </p> <p> Or.... maybe you're running an LG Podcast player written by a 10 year old. Either way, Please stop doing that. </p> 

这个服务需要头文件中的User-Agent,参见这个例子

 const rp = require('request-promise') const options = { method: 'GET', uri: 'http://www.giantbomb.com/api/search/?api_key=my_api_key&field_list=name,image,id&format=json&limit=1&query=street%20fighter%203&resources=game', headers: { 'User-Agent': 'test' }, json: true } rp(options) .then(result => { // process result }) .catch(e => { // handle error }) 

像这样在请求中包含User-Agent头部

 var options = { url: 'http://www.giantbomb.com/api/search/? api_key=my_api_key&field_list=name,image,id&format=json&limit=1&query=street%20fighter%203&resources=game', headers: { 'User-Agent': 'request' } }; request(options, (err,res,body) => { console.log(body); })