Web API

From Teverse

About

All of our API endpoints begin with https://teverse.com/api All timestamps are formatted to comply with ISO 8601 (e.g. 2019-04-03T20:21:59+00:00)

Unauthenticated requests to our API may be rate limited.

GET /users/userId/

Gets information about the user specified.
Parameters
NameTypeDescription
userIdstringThe user’s identifier string.
Sample Response
{
"id":"zME5M",
"username":"Jay",
"beta":true,
"joinTimestamp":"2017-11-23T17:55:06+00:00",
"games":5
}

GET /users/userId/games

Gets the games that the user specified has created.
Parameters
NameTypeDescription
userIdstringThe user’s identifier string.
Sample Response
[
{
"id":"AJz4x",
"ownerId":"zME5M",
"ownerName":"Jay",
"name":"Testing Grounds",
"createdTimestamp":"2018-07-04T20:39:33+00:00",
"serverCount":0,
"thumbnail":"img\/newThumb2.jpg"
},
{
"id":"MJ9Dg",
"ownerId":"zME5M",
"ownerName":"Jay",
"name":"Stolen from Henri",
"createdTimestamp":"2018-11-16T17:04:43+00:00",
"serverCount":0,
"thumbnail":"img\/newThumb2.jpg"
},
...
]

GET /games/

Returns a list of recommended games.
Sample Response
[
{
"id":"AJz4x",
"ownerId":"zME5M",
"ownerName":"Jay",
"name":"Testing Grounds",
"createdTimestamp":"2018-07-04T20:39:33+00:00",
"serverCount":0,
"thumbnail":"img\/newThumb2.jpg"
},
{
"id":"MJ9Dg",
"ownerId":"zME5M",
"ownerName":"Jay",
"name":"Stolen from Henri",
"createdTimestamp":"2018-11-16T17:04:43+00:00",
"serverCount":0,
"thumbnail":"img\/newThumb2.jpg"
},
...
]

GET /games/gameId

Returns information about a game.
Parameters
NameTypeDescription
gameIdstringThe game’s identifier
Sample Response
{
"id":"AJz4x",
"ownerId":"zME5M",
"ownerName":"Jay",
"name":"Testing Grounds",
"createdTimestamp":"2018-07-04T20:39:33+00:00",
"serverCount":0,
"thumbnail":"img\/newThumb2.jpg"
}