title: YouTube data API list video by ID
body: <p>I am using the <a href="https://github.com/youtube/api-samples" rel="nofollow noreferrer">youtube api-samples</a> java code to list video by ID. I used the Topics.java file but it gives more than 1 result which includes the correct one. Also it does not apply the video ID (when I printed it gives the video ID as 0) and so I gave the video ID for the search term as well. Below is the screenshot of the inputs and output.</p>
  
  <p><a href="https://i.stack.imgur.com/MxdEn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MxdEn.png" alt="enter image description here"></a></p>
  
  <p>What I am trying to achieve is getting exact one result for the given video ID like how it works on the <a href="https://developers.google.com/youtube/v3/code_samples/code_snippets" rel="nofollow noreferrer">YouTube Data API code snippet</a>.</p>
  
  <p>Am I running the wrong code or am I giving wrong inputs? Please advise.</p>
  
  <p><strong>Update:</strong> File VideoLocalizations.java throws null pointer exception for "language"
  <a href="https://i.stack.imgur.com/nHhSl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nHhSl.png" alt="enter image description here"></a></p>