Page 1 of 1

Server list and players ranking

Posted: 10 Apr 2016, 16:35
by Dommy
Hello :)
As I'm not so much familiar with ManiaPlanet WS and I don't know the search function, I leave a question: are there simple URLs, that will return the list of the servers and complete (or parts of) players ladder rankings for zones?
Returns must be in XML.

Re: Server list and players ranking

Posted: 10 Apr 2016, 20:34
by zocka
You can determine the api's format by calling the api at /endpoint/index.{format} with {format} being json, txt (= php var_dump) or html (default, styling of the variable dump in lists. Well that's technically XML but there is quite some stuff you don't want and when in doubt XML parsers don't like html.

I figure you want to get this data in ManiaScript (from the XML clause) and for that you would need some way to set the autentification header in the request (+ provide API credentials in the script).

"Mirroring" the API one a server of yours returning the xml encoded requests fetched internally with some credentials is probably not in Nadeo's interest. At least if you don't have some other authentification mechanism, maybe some sort of session management...

As for the URLs you asked about, you can have a look at the WS-SDK implementation:
rankings and servers[1]
e.g. http://ws.maniaplanet.com/servers/index ... s=TMCanyon

[1] viewtopic.php?f=282&t=26043&p=204976&hi ... st#p204989

Re: Server list and players ranking

Posted: 10 Apr 2016, 21:07
by Dommy
I have found this:
http://stations.maniaplanet.com/applica ... n=domino54

It returns XML document containing servers data, but it can be accessed only ingame with maniascript.