Official Content > News

Unleashing a HTTP-based API for the Soldat Lobby

(1/8) > >>

Update docs here:

For almost a decade, the only way of querying the Soldat Lobby to see what servers are online has been to use an aging, proprietary, protocol over sockets which is inconvenient if you want to build an app to make use of lobby data.

To make building 3rd party apps or other tools for Soldat easier, I just implemented support for getting and filtering the currently online Soldat servers over JSON+HTTP, slightly similar to the API for KAG.

List of all servers:

Example of some queries with the currently-supported filters:

Info on one specific server:
Players for that one server:

Note: the json returned is compacted for speed reasons. To view it easier, install a browser extension for pretty printing json (there are many) or from the command line, run a command like this:

curl -s '' | python -m json.tool

I look forward to seeing people build cool things using this new API. Please provide any suggestions or feature requests in this thread.  :D

Sounds like the lobby website could possibly use this with clientside javascript.

Great job  8)


I suggest to rename some fields:
"OsType"    "OSType"
"Ip"        "IP"
"Wm"        "WM"
"Be"        "AC" (as it's called Anti-Cheat in Soldat client)

Nice. thanks for working on this! :)

Cool! :D

How about serving in-game players' nicknames? It was possible over TCPbut it worked pretty randomly (what actually discouraged me to implement anything with this thing).


[0] Message Index

[#] Next page

Go to full version