def _get_ending(lookup_url: str, api_base: str):
    """
    Returns the short url ending from a short url or an short url ending.
    """
    if lookup_url.startswith(api_base):
        return lookup_url[len(api_base) + 1:]
    return lookup_url