import requests


def get_gbif_parsed_from_sci_name(sci_name: str):
    """
    Perform an analysis of a scientific name through the gbif API and gives all the information it can from a scientific name (note: this also works with taxa which are not in the gbif backbone
    
    Parameters
    ----------
    sci_name: str
        scientific name (with authorship) or canonical name of a taxon
        
    Returns
    ----------
    Dictionary with supplementary fields concerning the name of the taxon
    """
    api= f"https://api.gbif.org/v1/parser/name?name={sci_name}"
    response = requests.get(api)
    content = response.json()[0]
    return content