title: Express.js render data from external API
body: <p>I have a function to get data from an external API:</p>
  
  <pre><code>app.get("/getdata", (req, res) =&gt; {
    request.get({
      url: 'http://externalurl',
      json: true
    })
    .pipe(res);
  });
  </code></pre>
  
  <p>It just shows the received JSON object in a browser. The question is, how could I render this data in a template like it's usually done with express methods like <code>res.render("template", {data:data})</code> so that I could format it?</p>