title: External API Calls With Express, Node.JS and Require Module
body: <p>I have a route as followed:</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  var request = require('request');
  
  router.get('/', function(req, res, next) {
    request({
      uri: 'http://www.giantbomb.com/api/search',
      qs: {
        api_key: '123456',
        query: 'World of Warcraft: Legion'
      },
      function(error, response, body) {
        if (!error &amp;&amp; response.statusCode === 200) {
          console.log(body)
        }
      }
    });
  });
  
  module.exports = router;
  </code></pre>
  
  <p>I'm trying to make an API call to the Giant Bomb API to bring back whatever data it has about World of Warcraft.</p>
  
  <p>The problem is, the route just loads; it doesn't do anything or it doesn't time out, it's just continuous loading.</p>
  
  <p>I don't know what I'm doing wrong, but that being said... I don't know what's right either.  I'm trying to learn as I go along.</p>
  
  <p>Any help would be great.</p>
  
  <p>Thanks</p>