Battlefield 1942
Battlefield 1942 endpoints are available at https://api.bflist.io/v2/bf1942/
.
Live stats#
Retrieve the current number of active players and servers.
GET /livestats HTTP/1.1
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"servers": 100,
"players": 226
}
List servers#
Get a paginated list of currently available servers.
Since servers for older Battlefield games do not have a guid, one is generated using the server's ip and port. The generated guid is bflist-specific and neither known to nor returned by the server.
If a server's current mod is supported by joinme.click, the joinLink
-property will contain a URL to directly join the server.
In environments which do not allow custom URL protocols (e.g. Discord, Twitch chat), use joinLinkWeb
instead.
Users will be directed to the joinme.click website and can join from there.
Note: Both properties will be null
for servers running mods not supported by joinme.click.
GET /servers HTTP/1.1
Parameters
param | Description |
---|---|
cursor | Pagination cursor (optional, required if after is set) |
after | Pagination marker (optional) |
perPage | Number of items per page (optional, default: 50) |
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"servers": [
{
"guid": "69545b0-16356cc-1f641a3-1ffb03",
"ip": "194.88.105.25",
"port": 14567,
"queryPort": 23000,
"name": "SiMPLE | BF1942",
"numPlayers": 63,
"maxPlayers": 72,
"mapName": "bocage",
"password": false,
"gameType": "conquest",
"gameVersion": "v1.61",
"gameMode": "openplaying",
"averageFps": 0,
"contentCheck": false,
"dedicated": 2,
"gameId": "bf1942",
"mapId": "BF1942",
"reservedSlots": 0,
"roundTime": 2520,
"roundTimeRemain": 898,
"status": 4,
"anticheat": false,
"tickets1": 234,
"tickets2": 485,
"unpureMods": "",
"joinLink": "bf1942://194.88.105.25:14567",
"joinLinkWeb": "https://joinme.click/g/bf1942/194.88.105.25:14567",
"teams": [
{
"index": 1,
"label": "Axis",
"tickets": 234
},
{
"index": 2,
"label": "Allied",
"tickets": 485
}
],
"players": [
{
"name": "Mr.Nice Guy.",
"score": 8,
"kills": 11,
"deaths": 5,
"ping": 18,
"team": 2,
"teamLabel": "Allied"
},
// more players
]
},
// more servers
],
"cursor": "4c379877-b1f0-4534-8a4c-627d9503de9e",
"hasMore": true
}
Get a server#
Retrieve a single server.
GET /servers/{ip}:{port} HTTP/1.1
Parameters
param | Description |
---|---|
ip | Server's (public) IP address |
port | Server's game port |
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"guid": "118c300-651300-7fec0c-25885e3",
"ip": "78.46.52.115",
"port": 14567,
"queryPort": 23000,
"name": "Badewiese [Public DC Server]",
"numPlayers": 2,
"maxPlayers": 48,
"mapName": "dc basrahs edge",
"password": false,
"gameType": "coop",
"gameVersion": "v1.612",
"gameMode": "pre",
"averageFps": 0,
"contentCheck": false,
"dedicated": 2,
"gameId": "desertcombat",
"mapId": "Desertcombat",
"reservedSlots": 0,
"roundTime": 2400,
"roundTimeRemain": 2400,
"status": 4,
"anticheat": false,
"tickets1": 900,
"tickets2": 900,
"unpureMods": "bf1918, dcfinal, desertcombat",
"joinLink": "bf1942://78.46.52.115:14567?mod=desertcombat",
"joinLinkWeb": "https://joinme.click/g/bf1942/78.46.52.115:14567?mod=desertcombat",
"teams": [
{
"index": 1,
"label": "Axis",
"tickets": 900
},
{
"index": 2,
"label": "Allied",
"tickets": 900
}
],
"players": [
{
"name": "POCTOB76",
"score": 0,
"kills": 0,
"deaths": 0,
"ping": 61,
"team": 1,
"teamLabel": "Axis"
},
// more players
]
}
Get a player#
Fetch a currently active player.
GET /players/{name} HTTP/1.1
Player Name Conflicts
In rare cases, two active players may have exactly the same name.
To avoid inconsistencies, the API responds with a 409 Conflict
error if a request refers to a player name that isn't unique.
Parameters
param | Description |
---|---|
name | Player's url-encoded name/nick (without any tag/prefix) |
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"name": "BLITZ",
"score": 0,
"kills": 0,
"deaths": 0,
"ping": 70,
"team": 1,
"teamLabel": "Axis"
}
Get a player's current server#
Get the server a player is currently playing on.
GET /players/{name}/server HTTP/1.1
Parameters
param | Description |
---|---|
name | Player's url-encoded name/nick (without any tag/prefix) |
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"guid": "1ece98c-447256c-976aaa3-1944c0",
"ip": "104.156.233.22",
"port": 14567,
"queryPort": 23000,
"name": "G3TSOME DC OZ",
"numPlayers": 6,
"maxPlayers": 20,
"mapName": "wake",
"password": false,
"gameType": "ctf",
"gameVersion": "v1.61",
"gameMode": "openplaying",
"averageFps": 0,
"contentCheck": false,
"dedicated": 2,
"gameId": "dc_final",
"mapId": "DC_Final",
"reservedSlots": 0,
"roundTime": 2160,
"roundTimeRemain": 1760,
"status": 4,
"anticheat": false,
"tickets1": 0,
"tickets2": 0,
"unpureMods": "dcfinal, desertcombat",
"joinLink": "bf1942://104.156.233.22:14567?mod=dc_final",
"joinLinkWeb": "https://joinme.click/g/bf1942/104.156.233.22:14567?mod=dc_final",
"teams": [
{
"index": 1,
"label": "Axis",
"tickets": 0
},
{
"index": 2,
"label": "Allied",
"tickets": 0
}
],
"players": [
{
"name": "Combat Wombat",
"score": 1,
"kills": 1,
"deaths": 3,
"ping": 8,
"team": 1,
"teamLabel": "Axis"
},
// more players
]
}