Server list and players ranking

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
domino54
Translator
Translator
Posts: 1668
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Server list and players ranking

Post by domino54 » 10 Apr 2016, 16:35

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.
SHOOTMANIA GALAXY • PURSUIT • INVASION • HUNGER GAMES • EVIDENCE CHAT • FINDME
YouTube channel - Facebook page - GitHub repository

zocka
Posts: 190
Joined: 15 Jun 2010, 17:56

Re: Server list and players ranking

Post by zocka » 10 Apr 2016, 20:34

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
manialink minigame shatter
my manialink: zockaml
my maniaflash: maniaflash?zocka

User avatar
domino54
Translator
Translator
Posts: 1668
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Server list and players ranking

Post by domino54 » 10 Apr 2016, 21:07

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.
SHOOTMANIA GALAXY • PURSUIT • INVASION • HUNGER GAMES • EVIDENCE CHAT • FINDME
YouTube channel - Facebook page - GitHub repository

Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 3 guests