PDA

View Full Version : Dedicated Server - HTTP API Request



Ph0eNiX
08-05-2015, 10:59
Are there queries that can be send to the API to retrieve parameters, such as the name of the online participant, their time, the server's infos etc.

Is there the possibility of recovering the API data as xml or json object?

like localhost:9000/drivers-online.json
or localhost:9000/drivers-online?refId=****.json // And to be sure is the good driver we want, the best way is to use the Steam public ID
or localhost:9000/server-info.json

I will want to do a livetiming with NodeJs and i don't want to parse Html or log file

Blackvault
08-05-2015, 11:01
Are there queries that can be send to the API to retrieve parameters, such as the name of the online participant, their time, the server's infos etc.

Is there the possibility of recovering the API data as xml or json object?

Its currently in development. But yes there are plans to retrieve the server data from the API via JSON.

Edit - you should have a stats page that displays the information, so you could screen scrape it until the JSON information is available.

Pete

Ph0eNiX
08-05-2015, 11:11
Thx to reply so fast, i will try.

Keep pushing Pcars Devs, we believe on you!!

Blackvault
08-05-2015, 11:18
Thx to reply so fast, i will try.

Keep pushing Pcars Devs, we believe on you!!

Trust me, I am waiting for the same feature to become available for my own app

Pete