import requests


def get_raideriopage(name,realm="sargeras"):
    """Query the raider.io server for a link to the character and return as a string."""
    url = f"https://raider.io/api/v1/characters/profile?region=us&realm={realm}&name={name}"
    response = requests.get(url).json()
    link = response['profile_url']
    return link