import requests


def get_gbif_tax_from_sci_name(sci_name: str):
    """
    Obtaining basic taxonomic information from the gbif API, by running a fuzzy match of the name
    
    Parameters
    ----------
    name: str
        Scientific name (with authorship) of the taxon (note: fuzzy matching will be done in order to find the closest name)
    
    Returns
    ----------
    Dictionary containing basic information about the taxon (note: less precise than search through gbifkey
    """
    api = f"https://api.gbif.org/v1/species/match/?name={sci_name},nameType=SCIENTIFIC"
    response = requests.get(api)
    content = response.json()
    return content