import requests


def get_xid(company_ticker: str) -> str:
    """Returns the XID of a company according to its ticker."""
    r = requests.get(
        f"https://asx.api.markitdigital.com/asx-research/1.0/search/predictive?searchText={company_ticker}").json()
    return r['data']['items'][0]['xidEntity']