title: How to get cid from market and symbol from google finance
body: <p>I would like to fetch the historical data from <a href="https://www.google.com/finance" rel="nofollow noreferrer">google finance</a>.</p>
  
  <p>Url should be like this, this is the link for Apple. </p>
  
  <p><a href="http://www.google.com/finance/historical?cid=22144&amp;startdate=Jan+1%2C+2000&amp;enddate=Jul+30%2C+2017&amp;num=30&amp;ei=bNl9WZC7MNCe0wSR8bw4&amp;output=csv" rel="nofollow noreferrer">http://www.google.com/finance/historical?cid=22144&amp;startdate=Jan+1%2C+2000&amp;enddate=Jul+30%2C+2017&amp;num=30&amp;ei=bNl9WZC7MNCe0wSR8bw4&amp;output=csv</a></p>
  
  <p>It requires <code>cid</code></p>
  
  <p>I have symbol name <code>AAAPL</code> and market name <code>NASDAQ</code> though, I couldn't find how to get the cid <code>22144</code> from symbol and market name.</p>
  
  <p>Google finance API is already closed.</p>
  
  <p>How can I get cid number ???</p>