Races
Race actions
Get list of finished races.
GET
https://api.derace.com/api/v2/races/results
Retrieves a list of latest finished races. Returns 10 results
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | App's API key |
content-type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
tier | Number | Tier ID of requested races. Defaults to 5 (Omega) |
start_time_from | Number | Start time to look for races from. Results will not include race if it starts at this exact time. Defaults to time of search |
Get list of open races.
GET
https://api.derace.com/api/v1/races/open
Retrieves a list of all currently open races.
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | App's API key |
content-type* | application/json |
Get information about a specific race
GET
https://api.derace.com/api/v1/races/:raceId
Pass race id and retrieve information about that race
Query Parameters
Name | Type | Description |
---|---|---|
raceId* | Number |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | App's API key |
content-type* | application/json |
Register horse to a race
POST
https://api.derace.com/api/v1/races/register
Attempts to register a selected horse into the selected race
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | App's API key |
content-type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
horse_number* | Number | Number of horse asset |
user_key* | String | API Key of the user (horse owner) |
main_race_id* | Number | Main race id of the designated race |
Last updated