import requests


def genderize(first_name):
    """ Use genderize.io to return a dictionary with the result of the
    probability of a first name being of a man or a woman.
    Example: {'count': 5856,
              'gender': 'male',
              'name': 'Alex',
              'probability': '0.87'}

    Parameters
    ----------
    first_name: str

    Returns
    -------
    query_result: dict
    """
    return requests.get("https://api.genderize.io/", params={"name": first_name}).json()