Server Status API

The endpoint for the server status API is: /citydriving/live

API Index

We currently offer the following server status APIs:

API

Documentation

Server Status Overview

Server Status Overview

The server status overview gives details such as online status, track code, track name and the number of allowed and connected guests.

ENDPOINT: /citydriving/live/status

Mandatory Parameters

Name

Expected Value

key

{string} : API Key

server

{string} : all | one | two | three | events | training

Example

REQUEST: ?key=YOUR_KEY&server=all

This example request will return the status of all servers.

RESPONSE:

GET https://api.tc-gaming.co.uk/citydriving/live/status?key=YOUR_KEY&server=all
HTTP/1.1 200 OK
{
  "one": {
    "online": true,
    "track": "KY3X",
    "guests": 40,
    "maxGuests": 40,
    "trackName": "Kyoto"
  },
  "two": {
    "online": true,
    "track": "KY3X",
    "guests": 38,
    "maxGuests": 40,
    "trackName": "Kyoto"
  },
  "three": {
    "online": true,
    "track": "BL1X",
    "guests": 7,
    "maxGuests": 40,
    "trackName": "Blackwood"
  },
  "events": {
    "online": true,
    "track": "RO1X",
    "guests": 0,
    "maxGuests": 47,
    "trackName": "Corby"
  },
  "training": {
    "online": true,
    "track": "AS5X",
    "guests": 0,
    "maxGuests": 32,
    "trackName": "Montana"
  }
}

Last updated

Was this helpful?