title: Error 400 : Required parameter part
body: <p>Iam trying to use youtube api for finding the information about a particular video using youtube api.I have used the https module for sending and receiving data</p>
  
  <p>This is the code I have used</p>
  
  <pre><code> var youtube_query=querystring.stringify({
  
   q:'bangarang',
   key:'api_key',
   part:'snippet'
  
  });
  
  
  var options_you = {                     
  
    host:'www.googleapis.com',
  
    method:'GET',
  
    path:'/youtube/v3/search'
  
  };
  
  
  function getvid_id(vid_result){  
                                                //callback function for finding the information on the video 
        vid_result.setEncoding('utf8');
        console.log("STATUS :"+vid_result.statusCode);//to show the status code
  
        vid_result.on('data', function (body) {
  
      console.log(body);
      });      
  }
  
  var youtube_request = https.request(options_you,getvid_id);
  
  youtube_request.on('error', function(e) {
  
  
  console.log('problem with request: ' + e.message);
      });
  
      youtube_request.write(youtube_query);
          youtube_request.end();
  </code></pre>
  
  <p>However I get the following response</p>
  
  <pre><code>STATUS :400
  {
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "required",
      "message": "Required parameter: part",
      "locationType": "parameter",
      "location": "part"
     }
    ],
    "code": 400,
    "message": "Required parameter: part"
   }
  }
  </code></pre>
  
  <p>As you can see ,I have already provided the part parameter.But I cannot find the reason why it is not working . </p>