title: Request API data into Express view
body: <p>Newbie here. I'm trying to send data I received from making making an API call (when the user requests the zoopla page) into an <code>index.ejs</code> view. I'm trying to pass the <code>graph_url</code> by passing it in the <code>res.render</code>.</p>
  
  <p>The <code>graph_url</code> logs correctly, so the API call is coming back, however I get the following error in my terminal:</p>
  
  <pre><code>ReferenceError: graph_url is not defined
  </code></pre>
  
  <p>Here is my <code>index.js</code> request for the page:</p>
  
  <pre><code>app.get('/zoopla', function(req, res){
    request(zoopla, function(err, res, data){
      var data = JSON.parse(data);
      var graph_url = data.area_values_url
      console.log(graph_url);
    });
    res.render('index', { title : "zoopla", graph : graph_url});
  });
  </code></pre>