title: How to use query paramaters for spotify api using node.js?
body: <pre><code>    var queryparam = "track:godsplan%20artist:drake&amp;type=track&amp;market=US&amp;limit=10";
  
      app.get('/get_track', function(req,res){
  
          var options = {
              url:"https://api.spotify.com/v1/search?"+queryparam,
              headers: { 'Authorization': 'Bearer ' + access_token },
              json: true
           }
  
      request.get(options, function(error, response, body) {
  
          if(!error &amp;&amp; response.statusCode === 200) {
            console.log(body);
          }
          else{
              console.log(error);
              console.log(response.statusCode);
          }
      res.redirect('/#'); 
   });  
  
  });
  </code></pre>
  
  <p>here is what I have and i am trying to get god's plan by drake to appear on my console when I run the server on local host and my access_token works but whenever i run the <code>"/get_track"</code> i get a bad request error, does anyone know why?</p>