import requests


def get_random_quote(quotes_api_url, quotes_api_key):
    """ Get a random quote from quotes api. """
    headers = {"Authorization": "Bearer {}".format(quotes_api_key)}
    res = requests.get(quotes_api_url + "/quotes/random", headers=headers)
    data = res.json()
    return data