title: Get IMDB info using JavaScript
body: <p>I am trying to get IMDB info using JavaScript. The following code is working for Title, Year, IMDB link but when I am trying to get &quot;Runtime&quot;, &quot;Director&quot;, &quot;Released&quot; etc I am getting as undefined. Please help!</p>
  <p>This is the data formate: <a href="https://www.omdbapi.com/?i=tt4779682&amp;apikey=ba1f4581" rel="nofollow noreferrer">https://www.omdbapi.com/?i=tt4779682&amp;apikey=ba1f4581</a></p>
  <p><strong>Code:</strong></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var data;
  function getanswer(q){
  $.get("https://www.omdbapi.com/?s="+q+"&amp;apikey=ba1f4581", function(rawdata){
  var rawstring =JSON.stringify(rawdata);
  data =JSON.parse(rawstring);
  var title = data.Search[0].Title;
  var year = data.Search[0].Year; 
  var director = data.Search[0].Director; 
  var imdburl="https://www.imdb.com/title/"+data.Search[0].imdbID+"/";
  
  var posterurl =data.Search[0].Poster;
  document.getElementById('answer').innerHTML="&lt;h1&gt;"+title+"&lt;/h1&gt;&lt;br&gt; &lt;img src= '"+posterurl+"'&gt;&lt;br&gt;&lt;p&gt; Year Released:"+year+"&lt;/p&gt; &lt;br&gt;&lt;p&gt; Year Released:"+director+"&lt;/p&gt; &lt;br&gt; &lt;p&gt; IMDB page: &lt;a href='"+imdburl+"'target='_blank'&gt;"+imdburl+"&lt;/a&gt;&lt;/p&gt;"; }); }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body onload="getanswer(document.getElementById('querybox').value)"&gt;
  &lt;!doctype html&gt; &lt;input value="The Meg" onkeyup="getanswer(document.getElementById('querybox').value)" id="querybox"&gt; &lt;div id="answer"&gt;&lt;/div&gt; 
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>