import requests


def get_av_dji_data(api_key):
    """
    Get the DJI data provided by AlphaVantage.
    """
    params = {'apikey': api_key,
              'function': 'TIME_SERIES_DAILY',
              'symbol': "DJI"}
    url = 'https://www.alphavantage.co/query?'

    response = requests.get(url, params)
    dji_data_json = response.json()['Time Series (Daily)']

    return dji_data_json