[TC] Gaming API
  • Introduction
  • Getting Started
    • Introduction
      • API Keys
      • Rate Limiting
      • Available APIs
      • Get Support
      • Contribute
  • APIs
    • CityDriving Statistics API
      • Server Status API
      • User Profile API
      • Statistics API
      • Vehicle API
      • AutoMarket API
    • Public Server Status JSON API
    • Discord API
  • Guides
    • Basic Requests
    • Converting LFS Colours
Powered by GitBook
On this page
  • API Index
  • Server Status Overview
  • Mandatory Parameters
  • Example

Was this helpful?

  1. APIs
  2. CityDriving Statistics API

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"
  }
}
PreviousCityDriving Statistics APINextUser Profile API

Last updated 6 years ago

Was this helpful?

View Docs