def steamid_appid(steam_id=None, app_id=None):
    print("Connecting to Steam API server and populating friends...")
    me = MySteamFriends(
        api_key=API_KEY,
        steam_id=steam_id,
        debugging=DEBUG,
        concurrent_api=CONCURRENT_API)

    print("Connected, collecting friends in-game time...")
    all_game_stats = me.get_everyones_gamestats(app_id)

    print("Done, looking up steam usernames...")
    all_game_stats_detailed = me.get_game_stats_detailed(all_game_stats)

    return render_template('steamid_appid.html',
                           game_stats_detailed=all_game_stats_detailed,
                           appid=app_id,
                           steamuser=me.get_steam_user(me.my_steam_id),
                           total_gametime=me.total_gametime,
                           total_games=len(me.my_games_list),
                           game_title=me.get_game_name(app_id))