title: Alpha Vantage passing multiple queries - Global Quote
body: <p>I am trying to pass values from an Alpha Vantage query into a pandas df so that I can extract certain values.</p>
  
  <p>When I run a simple, 1 symbol query, I can easily pass the information into a df. After that, I can transpose the df and extract the data using the columns.</p>
  
  <p>An example is:</p>
  
  <pre class="lang-py prettyprint-override"><code>import requests
  import alpha_vantage
  import pandas as pd
  
  API_URL = "https://www.alphavantage.co/query"
  data = {
      "function": "GLOBAL_QUOTE",
      "symbol": "MSFT",
      "apikey": "XXX",
      }
  
  response = requests.get(API_URL, params=data)
  print(response.json())
  
  df = pd.DataFrame(response.json())
  df = df.T
  print()
  print()
  print(df)
  </code></pre>
  
  <p>This returns:</p>
  
  <p><a href="https://i.stack.imgur.com/bpjJC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bpjJC.jpg" alt="enter image description here"></a></p>
  
  <p>However, I am looking to pass multiple symbols, I keep getting an error saying:</p>
  
  <blockquote>
    <p>{'Error Message': 'Invalid API call. Please retry or visit the documentation (<a href="https://www.alphavantage.co/documentation/" rel="nofollow noreferrer">https://www.alphavantage.co/documentation/</a>) for GLOBAL_QUOTE.'}</p>
  </blockquote>
  
  <p>The code being used is:</p>
  
  <pre class="lang-py prettyprint-override"><code>import requests
  import alpha_vantage
  import pandas as pd
  
  df = pd.DataFrame()
  API_URL = "https://www.alphavantage.co/query"
  
  symbols= ["IBM", "MSFT", "APPL"]
  for symbol in symbols:
      data = {
          "function": "GLOBAL_QUOTE",
          "symbol": symbols,
          "apikey": "XXX",
          }
  
      response = requests.get(API_URL, params=data)
  
      print(response.json())
  </code></pre>
  
  <p>I believe that corresponds to the format that is expected from the website:</p>
  
  <blockquote>
    <p><a href="https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=MSFT&amp;apikey=demo" rel="nofollow noreferrer">https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=MSFT&amp;apikey=demo</a></p>
  </blockquote>
  
  <p>My question is: How can I pass multiple requests to the Alpha Vantage API using a list of symbols?</p>