import requests


def get_gh_api(url):
    """
    get_gh_api Extract information using GET

    Collect Github data from their public API
    Current version does not support authentication

    Parameters
    ----------
    url : string
        Github API string to get.

    Returns
    -------
    json
        Response from GH.
    """
    response = requests.get(url)
    if response.status_code == requests.codes.ok:
        return response.json()
    return {}