GameAPIs

Battlefield 1942 Documentation

Parameters

Required Parameter Type Description Default Value
True IP String Server's IP address or domain None
False Port Integer The port of which the game server is running on. 14567

Single Server

GET https://use.gameapis.net/bf1942/query/status/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bf1942/query/status/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/bf1942/query/players/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "deaths": "15",
                "keyhash": "2e0cf8cbf5356ec93838ad22e82b2c94",
                "kills": "19",
                "ping": "117",
                "playername": "Johnny C",
                "score": "23",
                "team": "1"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bf1942/query/players/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "players": {
            "online": 0,
            "max": 100,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "players": {
            "online": 1,
            "max": 100,
            "list": [
                {
                    "deaths": "15",
                    "keyhash": "2e0cf8cbf5356ec93838ad22e82b2c94",
                    "kills": "19",
                    "ping": "117",
                    "playername": "Johnny C",
                    "score": "23",
                    "team": "1"
                }
            ]
        },
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/bf1942/query/info/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "name": "BF1942 Server",
    "map": "wake",
    "version": "179563",
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "deaths": "15",
                "keyhash": "2e0cf8cbf5356ec93838ad22e82b2c94",
                "kills": "19",
                "ping": "117",
                "playername": "Johnny C",
                "score": "23",
                "team": "1"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bf1942/query/info/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "name": "BF1942 Server",
        "map": "stalingrad",
        "version": "179563",
        "players": {
            "online": 0,
            "max": 100,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "name": "BF1942 Server",
        "map": "wake",
        "version": "179563",
        "players": {
            "online": 1,
            "max": 100,
            "list": [
                {
                    "deaths": "15",
                    "keyhash": "2e0cf8cbf5356ec93838ad22e82b2c94",
                    "kills": "19",
                    "ping": "117",
                    "playername": "Johnny C",
                    "score": "23",
                    "team": "1"
                }
            ]
        },
        "cached": false
    }
}