GameAPIs

Battlefield: Hardline 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. 25200

Single Server

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

Multiple Servers

GET https://use.gameapis.net/bfhl/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/bfhl/query/players/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "name": "Antitoxis",
                "guid": "",
                "teamId": "1",
                "squadId": "7",
                "kills": "0",
                "deaths": "0",
                "score": "0",
                "rank": "116",
                "ping": "20",
                "type": "0"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bfhl/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": [
                {
                    "name": "Antitoxis",
                    "guid": "",
                    "teamId": "1",
                    "squadId": "7",
                    "kills": "0",
                    "deaths": "0",
                    "score": "0",
                    "rank": "116",
                    "ping": "20",
                    "type": "0"
                }
            ]
        },
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/bfhl/query/info/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "name": "BFHL Server",
    "map": "mp_downtown",
    "version": "613064",
    "players": {
        "online": 1,
        "max": 100,
        "list": [
            {
                "name": "Antitoxis",
                "guid": "",
                "teamId": "1",
                "squadId": "7",
                "kills": "0",
                "deaths": "0",
                "score": "0",
                "rank": "116",
                "ping": "20",
                "type": "0"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/bfhl/query/info/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "name": "BFHL Server",
        "map": "mp_offshore",
        "version": "613064",
        "players": {
            "online": 0,
            "max": 100,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "name": "BFHL Server",
        "map": "mp_downtown",
        "version": "613064",
        "players": {
            "online": 1,
            "max": 100,
            "list": [
                {
                    "name": "Antitoxis",
                    "guid": "",
                    "teamId": "1",
                    "squadId": "7",
                    "kills": "0",
                    "deaths": "0",
                    "score": "0",
                    "rank": "116",
                    "ping": "20",
                    "type": "0"
                }
            ]
        },
        "cached": false
    }
}