title: External API Call Using Express
body: <p>I'm trying to call a College Score Card API using Express and Request. When I search for a specific school, I receive results from several schools, but not the school I searched for. Here is part of my code:</p>
  
  <pre><code>var fields = '_fields=school.name,2013.aid.median_debt.completers.overall,2013.repayment.1_yr_repayment.completers,2013.earnings.10_yrs_after_entry.working_not_enrolled.mean_earnings&amp;page=100';
  
  var requestUrl = 'https://api.data.gov/ed/collegescorecard/v1/schools.json?api_key=' + apiKey + '&amp;' + fields;
  
  
  
  module.exports = function(app) {
      app.get('/school', function(req, res, next) {
          request(requestUrl, function (error, response, body) {
              if (!error &amp;&amp; response.statusCode == 200) {
                  var json = JSON.parse(body);
                  console.log(json); 
              } else {
                  console.log("There was an error: ") + response.statusCode;
                  console.log(body);
              }
          });
      })
  };
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form action="/school" method="GET"&gt; 
      &lt;input type="text" class="form-control" name="school_name" value="" id="enter_text"&gt; 
      &lt;button type="submit" class="btn btn-primary" id="text-enter- button"&gt;Submit&lt;/button&gt; 
  &lt;/form&gt;
  </code></pre>