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
x-api-key*
String
App's API key
content-type*
String
application/json
Request Body
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
[
{
"main_race_id": 129864,
"start_time": 1669047660000,
"registration_deadline": 1669047360000,
"type": "best_time", /* alternatively "worst_time" */
"length": 6,
"v2": true,
"no_equipment": false,
"entry_fee": 2000000000000000000,
"prizes": [
50,
30,
15
],
"tier": "Omega",
"info": {
"name": "Omega Race #129864",
"hippodrome_type": "sakura",
"hippodrome_name": "Sakura Path",
"turf": "Turf"
},
"places": 12,
"min_level": 1,
"max_level": 80,
"participants": [
{
"number": 821,
"total": 72646,
"lane": 1
},
{
"number": 831,
"total": 73699,
"lane": 2
},
{
"number": 817,
"total": 73919,
"lane": 3
},
{
"number": 839,
"total": 76073,
"lane": 4
},
{
"number": 844,
"total": 74200,
"lane": 5
},
{
"number": 840,
"total": 75379,
"lane": 6
}
],
"status": "",
"final_order": [
0,
1,
2,
4,
5,
3
],
"winners": [
0,
1,
2
]
}
]
Get list of open races.
GET
https://api.derace.com/api/v1/races/open
Retrieves a list of all currently open races.
Headers
x-api-key*
String
App's API key
content-type*
application/json
[
{
"_id": "pAbgW33LsoqL9sFQu",
"main_race_id": 131624,
"start_time": 1669737900000,
"registration_deadline": 1669737600000,
"type": "best_time", /* alternatively "worst_time" */
"length": 6,
"v2": true,
"no_equipment": false,
"entry_fee": 30000000000000000000,
"prizes": [
50,
30,
15
],
"tier": "Omega",
"info": {
"name": "High Roller Race #131624",
"hippodrome_type": "sakura",
"hippodrome_name": "Sakura Path",
"turf": "Turf"
},
"places": 12,
"participants": [],
"status": "In progress",
"min_level": 1,
"max_level": 80,
}
]
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
raceId*
Number
Headers
x-api-key*
String
App's API key
content-type*
application/json
[
{
"_id": "pAbgW33LsoqL9sFQu",
"main_race_id": 131624,
"start_time": 1669737900000,
"registration_deadline": 1669737600000,
"type": "best_time", /* alternatively "worst_time" */
"length": 6,
"v2": true,
"no_equipment": false,
"entry_fee": 30000000000000000000,
"prizes": [
50,
30,
15
],
"tier": "Omega",
"info": {
"name": "High Roller Race #131624",
"hippodrome_type": "sakura",
"hippodrome_name": "Sakura Path",
"turf": "Turf"
},
"places": 12,
"participants": [],
"status": "In progress",
"min_level": 1,
"max_level": 80,
}
]
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
x-api-key*
String
App's API key
content-type*
String
application/json
Request Body
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