Server list and players ranking

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

Moderator: NADEO

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

Server list and players ranking

Post 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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
zocka
Posts: 205
Joined: 15 Jun 2010, 17:56

Re: Server list and players ranking

Post 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
manialink minigame shatter
my manialink: zockaml
my maniaflash: maniaflash?zocka
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Server list and players ranking

Post 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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 0 guests