GameAPIs

Battlefield 2142 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. 16567

Single Server

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

Multiple Servers

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

Single Server

GET https://use.gameapis.net/bf2142/query/players/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "player": "OldWolf",
                "score": "38",
                "ping": "78",
                "team": "1",
                "deaths": "3",
                "pid": "2395483",
                "skill": "11"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bf2142/query/players/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "protocol": "udp",
        "players": {
            "online": 0,
            "max": 100,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "protocol": "udp",
        "players": {
            "online": 1,
            "max": 100,
            "list": [
                {
                    "player": "OldWolf",
                    "score": "38",
                    "ping": "78",
                    "team": "1",
                    "deaths": "3",
                    "pid": "2395483",
                    "skill": "11"
                }
            ]
        },
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/bf2142/query/info/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "name": "BF2142 Server",
    "map": "Minsk",
    "version": "1.10.112.0",
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "player": "OldWolf",
                "score": "38",
                "ping": "78",
                "team": "1",
                "deaths": "3",
                "pid": "2395483",
                "skill": "11"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bf2142/query/info/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "protocol": "udp",
        "name": "BF2142 Server",
        "map": "Belgrade",
        "version": "1.10.112.0",
        "players": {
            "online": 0,
            "max": 100,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "protocol": "udp",
        "name": "BF2142 Server",
        "map": "Minsk",
        "version": "1.10.112.0",
        "players": {
            "online": 1,
            "max": 100,
            "list": [
                {
                    "player": "OldWolf",
                    "score": "38",
                    "ping": "78",
                    "team": "1",
                    "deaths": "3",
                    "pid": "2395483",
                    "skill": "11"
                }
            ]
        },
        "cached": false
    }
}