title: NodeJS: Good way to write Multiple API Calls in serial
body: <p>Is there a better/more beautiful way to call multiple APIs after another (in serial) as in my example?</p>
  
  <pre><code>  var request = require('request');
  
    request('http://www.test.com/api1', function (error, response, body) {
      if (!error &amp;&amp; response.statusCode == 200) {
  
        request('http://www.test.com/api1', function (error, response, body) {
          if (!error &amp;&amp; response.statusCode == 200) {
  
            request('http://www.test.com/api1', function (error, response, body) {
              if (!error &amp;&amp; response.statusCode == 200) {
  
                //And so on...
  
              }
            })
  
          }
        })
  
      }
    })
  </code></pre>