Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[GET] /community/advertisement/findAdvertisements

Example request

Returns a list of currently advertised (open/waiting) matches for the specified title, along with avatar information for the players in those matches.

Request

ParameterTypeValueComments
titlestr/enumage1, age2, age3, age4

Response

AoE2:DE

The response contains a matches array with active lobbies and an avatars array with player profile information for all participants.

{
    "result": {
        "code": 0,
        "message": "SUCCESS"
    },
    "matches": [
        {
            "id": 186581479,
            "steamlobbyid": 109775243596890080,
            "xboxsessionid": "0",
            "host_profile_id": 8863869,
            "state": 0,
            "description": "[Rematch] ",
            "visible": 1,
            "mapname": "my map",
            "options": "eNo9Us1ugzAMfpc+AYESaYce...",
            "passwordprotected": 0,
            "maxplayers": 8,
            "slotinfo": "eNrVkF1PwjAUhv0tvR6GMjYn...",
            "matchtype_id": 0,
            "matchmembers": [
                {
                    "match_id": 186581479,
                    "profile_id": 8863869,
                    "ranking": -1,
                    "statgroup_id": 5331726,
                    "race_id": -1,
                    "teamid": -1
                }
            ],
            "observernum": 0,
            "observermax": 512,
            "isobservable": 1,
            "observerdelay": 120,
            "hasobserverpassword": 1,
            "servicetype": 0,
            "relayserver_region": "westeurope"
        }
    ],
    "avatars": [
        {
            "profile_id": 8863869,
            "name": "/steam/76561198025231211",
            "alias": "PlayerName",
            "personal_statgroup_id": 5331726,
            "xp": 483,
            "level": 1,
            "leaderboardregion_id": 0,
            "country": "gb"
        }
    ]
}

Match fields

FieldTypeDescription
idintUnique match/lobby identifier
steamlobbyidintSteam lobby ID for the match
xboxsessionidstringXbox session ID ("0" when not applicable)
host_profile_idintProfile ID of the lobby host
stateintMatch state (0 = waiting/open)
descriptionstringLobby name set by the host
visibleintWhether the lobby is publicly visible
mapnamestringMap name for the match
optionsstringEncoded match options (see note below)
passwordprotectedintWhether a password is required to join (0 = no, 1 = yes)
maxplayersintMaximum number of player slots
slotinfostringEncoded slot configuration (see note below)
matchtype_idintMatch type identifier
matchmembersarrayList of players currently in the lobby
observernumintCurrent number of observers
observermaxintMaximum number of observers allowed
isobservableintWhether observers can join (0 = no, 1 = yes)
observerdelayintObserver delay in seconds
hasobserverpasswordintWhether observers need a password (0 = no, 1 = yes)
servicetypeintService type identifier
relayserver_regionstringAzure region of the relay server (e.g. westeurope, eastus)

Matchmember fields

FieldTypeDescription
match_idintID of the match this member belongs to
profile_idintPlayer’s profile ID
rankingintPlayer’s ranking (-1 if unranked)
statgroup_idintPlayer’s stat group ID
race_idintChosen civilization/race (-1 if random or not set)
teamidintTeam assignment (-1 if not assigned)

Avatar fields

FieldTypeDescription
profile_idintPlayer’s profile ID
namestringPlatform identifier (e.g. /steam/<steam_id>)
aliasstringPlayer’s display name
personal_statgroup_idintPlayer’s personal stat group ID
xpintExperience points
levelintPlayer level
leaderboardregion_idintLeaderboard region identifier
countrystringTwo-letter country code

Note: The options and slotinfo fields may be zlib-compressed. Also check if there is a Base64 encoding on it – sometimes it is even two times Base64 encoded.