title: How to get IEX cloud API Key and make it available to my python code?
body: <pre><code># Import DataReader
  from pandas_datareader.data import DataReader
  
  # Import date
  from datetime import date
  
  # Set start and end dates
  start = date(2016,1,1)
  end = date(2016,12,31)
  
  # Set the ticker
  ticker = &quot;AAPL&quot;
  
  # Set the data source
  data_source = &quot;iex&quot;
  
  # Import the stock prices
  stock_prices = DataReader(ticker, data_source, start, end)
  
  # Display and inspect the result
  print(stock_prices.head())
  stock_prices.info()
  </code></pre>
  <p>I can import DataReader and use 'iex' in a virtual environment easily but when I'm trying to do the same in my python interpreter I got a ValueError Exception also it asks for the IEX cloud API key. I haven't heard the term before even from my instructor. Please explain me what it is, also how to implement so that I can get rid of this error.</p>
  <p><a href="https://i.stack.imgur.com/zhkmH.png" rel="nofollow noreferrer">Error I have got!</a></p>