import requests


def get_page_url_by_title(title: str, base_url: str) -> str:
    """
    Gets the full URL of a page associated with a specific title from Wikipedia API
    :param title: Title heading
    :param base_url: Wikipedia base URL
    :return: Full URL
    """
    params = {
        "action": "query",
        "format": "json",
        "prop": "info",
        "inprop": "url",
        "titles": title
    }

    res = requests.get(url=base_url, params=params)
    data = res.json()

    (page_id, entry), = data['query']['pages'].items()
    return entry['fullurl']