The endpoint for the user profile API is: /citydriving/profile
API Index
We currently offer the following user profile APIs:
Get a User Profile
Access all of a CityDriving user's profile details and statistics.
ENDPOINT:/citydriving/profile/get
Mandatory Parameters
Optional Parameters
This API can optionally return a stats object, an array of cars (with or without their upgrades), an array of licences and/or and array of properties. Any combination can be requested.
This request usually returns all cars, licenses, properties and upgrades owned by a user. This example only shows one of each type for brevity.
RESPONSE:
GET https://api.tc-gaming.co.uk/citydriving/profile/get?key=YOUR_KEY&username=chucknorris&stats=1&cars=1&licenses=1&upgrades=1&properties=1
HTTP/1.1 200 OK
Access a CityDriving user's !setopt InSim UI options.
ENDPOINT:/citydriving/profile/getopts
Mandatory Parameters
Example
REQUEST:?key=YOUR_KEY&username=mbutcher
This API only returns the options which have been changed from the default setting using the !setopt command. Numbers refer to the LFS colour code of the chat message. This example shows the default values which would not normally be returned.
RESPONSE:
GET https://api.tc-gaming.co.uk/citydriving/profile/getopts?key=YOUR_KEY&username=mbutcher
HTTP/1.1 200 OK