title: How to correctly call data from Alpha Vantage using Python pandas-datareader 0.8
body: <p>noobs on python here.</p>
  
  <p>I am currently using python pandas-datareader 0.7 for some stock analysis.</p>
  
  <p>With the update of pandas-datareader 0.8.  It should be able to grab historical data from Alpha Vantage. </p>
  
  <p>But I don't really understand how to use the api key (currently using yahoo and no key is needed)</p>
  
  <p>From the <a href="https://pandas-datareader.readthedocs.io/en/latest/remote_data.html#historical-time-series-data" rel="nofollow noreferrer">documentation of pandas-datareader</a>, I tried the same code (with my api key say ABC123 registered in alpha vantage) by replacing the ALPHAVANTAGE_API_KEY with ABC123</p>
  
  <pre><code>    import os
  
      from datetime import datetime
  
      import pandas_datareader.data as web
  
      df = web.DataReader("AAPL", "av-daily", start=datetime(2017, 2, 9),end=datetime(2017, 5, 24),api_key=os.getenv('ABC123')) 
  
      print(df)
  </code></pre>
  
  <p>I expected it outputs the historical data.<br>
  But it said "DataReader() got an unexpected keyword argument 'api_key'"</p>
  
  <p>How do I correctly use the api key so that I can grab the data?</p>