Public Server Status JSON API

The Public Server Status JSON API gives you access to live server statuses. This API is public and does not require a key as this data is cached every second.

API Index

We currently offer the following public JSON APIs:

API

Description

Documentation

/status_one.json

CityDriving One Server Status

/status_two.json

CityDriving Two Server Status

/status_three.json

CityDriving Three Server Status

/status_four.json

CityDriving Four Server Status

Server Status: CityDriving One

REQUEST: /json/status_one.json

This request indexes players by InSim PLID (inside the players object) and returns all currently connected clients. It is designed for use with local InSim applications. This example only returns one client for brevity.

RESPONSE:

GET https://api.tc-gaming.co.uk/json/status_one.json
HTTP/1.1 200 OK
{
    "server": "One",
    "time": 1490493497160,
    "players": {
        "17": {
            "siren": false,
            "med": false,
            "caution": false,
            "tow": false,
            "cop": false,
            "isChased": false,
            "isJoining": false,
            "hazard": false
        },
        ...
    }
}

Server Status: CityDriving Two

REQUEST: /json/status_two.json

This request indexes players by InSim PLID (inside the players object) and returns all currently connected clients. It is designed for use with local InSim applications. This example only returns one client for brevity.

RESPONSE:

GET https://api.tc-gaming.co.uk/json/status_two.json
HTTP/1.1 200 OK
{
    "server": "Two",
    "time": 1490493497160,
    "players": {
        "17": {
            "siren": false,
            "med": false,
            "caution": false,
            "tow": false,
            "cop": false,
            "isChased": false,
            "isJoining": false,
            "hazard": false
        },
        ...
    }
}

Server Status: CityDriving Three

REQUEST: /json/status_three.json

This request indexes players by InSim PLID (inside the players object) and returns all currently connected clients. It is designed for use with local InSim applications. This example only returns one client for brevity.

RESPONSE:

GET https://api.tc-gaming.co.uk/json/status_three.json
HTTP/1.1 200 OK
{
    "server": "Three",
    "time": 1490493497160,
    "players": {
        "17": {
            "siren": false,
            "med": false,
            "caution": false,
            "tow": false,
            "cop": false,
            "isChased": false,
            "isJoining": false,
            "hazard": false
        },
        ...
    }
}

Server Status: CityDriving Four

REQUEST: /json/status_four.json

This request indexes players by InSim PLID (inside the players object) and returns all currently connected clients. It is designed for use with local InSim applications. This example only returns one client for brevity.

RESPONSE:

GET https://api.tc-gaming.co.uk/json/status_four.json
HTTP/1.1 200 OK
{
    "server": "Four",
    "time": 1490493497160,
    "players": {
        "17": {
            "siren": false,
            "med": false,
            "caution": false,
            "tow": false,
            "cop": false,
            "isChased": false,
            "isJoining": false,
            "hazard": false
        },
        ...
    }
}

Last updated