import requests


def get_gbif_tax_from_id(gbifid: int):
    """
    Obtaining extensive taxonomic information from the gbif API, when we have the taxonKey of the gbif backbone
    
    Parameters
    ----------
    gbifid: int
        taxonKey (speciesKey, parentKey etc.) of the taxon
    
    Returns
    ----------
    Dictionary containing all the information of the taxon available in the API. Note: the information here is more complete than when we search the taxon through its name
    """
    api = f"https://api.gbif.org/v1/species/{gbifid}"
    response = requests.get(api)
    content = response.json()
    return content