Universal API description
This interface synchronises individual racers, relays and their members from an external registration website to the RaceMeter device. Existing implementations for individual races do not need to change to support the new relay functionality.
API communication
The API URL and API token are configured in the race synchronisation settings. RaceMeter sends a GET request with the following HTTP headers:
Authorization: Bearer {API_TOKEN}
Accept: application/json
Content-Type: application/json
The service should validate the Authorization header and return HTTP 401 (Unauthorized) for a missing or incorrect token. On success, it must return HTTP 200 and a JSON array of objects containing the racers for the race. RaceMeter uses a request timeout of 5 seconds and verifies SSL certificates by default; verification can be disabled in synchronisation settings (not recommended).
Individual races
Unless otherwise specified, fields are strings.
- start_number – An entry containing the racer’s start number. It is of type integer and is a mandatory entry. A racer without a start number does not exist for RaceMeter.
- If “Auto divide names” is not set in the race, the name of the racer is expected in first_name and last_name. Otherwise the racer’s name is imported from the full_name entry.
- team – The entry containing the team is optional.
- phone – The entry containing the telephone number is optional.
- email – The entry containing email is optional.
- year_of_birth – The year of birth item is of type integer and will only be used if the race is set to “Use year of birth”.
- date_of_birth – The date of birth entry is text and should contain the date in ISO format. So for 24.7.1999 it is
1999-07-24. It will only be used if “Use date of birth” is set in the race. - category – The category entry will only be used if the race is set to “Use categories”.
- country – The country entry will only be used if the race is set to “Use countries”.
- gender – The gender entry will only be used if the race is set to “Use gender”.
- reg_number – The entry containing the racer’s registration number will only be used if the race is set to “Use registration numbers”.
- description – The entry containing the racer’s additional description will only be used if the race is set to “Use description”.
- size – The entry containing the racer’s size will only be used if the race is set to “Use size”.
- coefficient – The entry containing the conversion factor for a given racer will only be used if “Use coefficient” is set for that race. The item is of type float.
- additional_duration – An entry containing an additional duration for a given racer will only be used if “Use additional duration” is set for that race. The entry may be of type float or integer and contain the additional duration in seconds, or it may be of type text and in the format
hh:mm:ss.xxormm:ss.xxor justss.xx. - additional_distance – An entry containing an additional distance for a given racer will only be used if the race is set to “Use additional distance”. The item can be of type float or integer and contain the additional distance in meters.
- start_time – The entry containing the start time of the racer will only be used if the race has the start type set to “Individual starts” or “Scheduled chip start”. The entry can be of type integer and must then contain the number of milliseconds since the start of the day, or it can be of type text and be in the format
hh:mm:ss. - start_delay – The entry containing the time delay of the racer from the start is only used if the race has the start type set to “Interval start”.The entry can be of type integer and then must contain the number of seconds, or it can be of type text and is in the format
hh:mm:ssormm:ssor justss. - chip_number – An entry containing the 1st chip number of the racer. The entry is used if the synchronization is set to take the chip number from the chip number field.
- chip2_number – An entry containing the 2nd chip number of the racer. The entry is used if the race is set to use a second chip and the synchronization is set to take the 2nd chip number from the chip number field.
- chip3_number – An entry containing the 3rd chip number of the racer. The entry is used if the race is set to use a third chip and the synchronization is set to take the 3rd chip number from the chip number field.
- chip4_number – An entry containing the 4th chip number of the racer. The entry is used if the race is set to use fourth chip and the synchronization is set to take the 4th chip number from the chip number field.
- end_time – Individual race end date and time; used only when individual racer end times are enabled. The value can be an integer containing a Unix timestamp (seconds since 1970-01-01 UTC), or a text value in ISO 8601 format
YYYY-MM-DDTHH:mm:ss, for example2026-06-14T15:30:00. Text values are interpreted as local date and time without time zone conversion. For relay races, this field belongs to the relay header only.
Individual race example
[
{
"start_number": 101,
"first_name": "Jan",
"last_name": "Novák",
"chip_number": "101"
}
]
Relay races
The response uses the same flat JSON array as an individual race. Each relay has one header record and a separate record for each member. All these records share the same start number.
- start_number – relay start number (integer).
- ordnumber – member ordinal (integer, starting at 1). Omit on the header, or supply null, an empty string or 0. Positive integers identify members; decimal digit strings are also accepted. Negative and invalid values are rejected.
- relay_name – relay name, supplied on the header.
The start_number field must be present in every record. The ordnumber field is required only for members. Do not send records without a valid start number. Each start number should have exactly one header, and member ordinals should be unique within the relay. Members must have a corresponding header. Member counts should match the race settings. If members are not yet known, a header alone can be supplied; this does not constitute a complete member list.
Field ownership
| Fields | Relay header | Member |
|---|---|---|
start_number |
Yes | Yes |
ordnumber |
Optional | Required |
relay_name, team, phone, email, category, country, description |
Yes | – |
start_time, start_delay, end_time, coefficient, additional_duration, additional_distance |
Yes | – |
first_name, last_name, full_name, gender, year_of_birth, date_of_birth, reg_number, size |
– | Yes |
chip_number, chip2_number, chip3_number, chip4_number |
By mode | By mode |
Optional field conditions remain the same as for individual races. Fields belonging to the other record type are ignored. Relay gender is derived from members’ genders; when gender tracking is enabled, supply the gender of every member.
Chips
For shared chips, supply chip numbers only on headers; for individual member chips, only on members. If direct chip number import is configured, the corresponding field must exist on every record that owns chips. If deriving chip numbers from start numbers is configured, RaceMeter generates e.g. 10 for a shared chip or 10-1, 10-2 for member chips. Chip numbers can also be generated using an expression. Chips must be unique within the race.
Example – shared chip
[
{
"start_number": 10,
"relay_name": "Fast Arrows",
"category": "OPEN",
"chip_number": "10"
},
{
"start_number": 10,
"ordnumber": 1,
"first_name": "Jan",
"last_name": "Novák"
},
{
"start_number": 10,
"ordnumber": 2,
"first_name": "Petr",
"last_name": "Svoboda"
},
{
"start_number": 10,
"ordnumber": 3,
"first_name": "Jana",
"last_name": "Nováková"
}
]
Example – individual member chips
[
{
"start_number": 10,
"relay_name": "Fast Arrows",
"category": "OPEN"
},
{
"start_number": 10,
"ordnumber": 1,
"first_name": "Jan",
"last_name": "Novák",
"chip_number": "10-1"
},
{
"start_number": 10,
"ordnumber": 2,
"first_name": "Petr",
"last_name": "Svoboda",
"chip_number": "10-2"
},
{
"start_number": 10,
"ordnumber": 3,
"first_name": "Jana",
"last_name": "Nováková",
"chip_number": "10-3"
}
]
Examples assume automatic name splitting and gender tracking are disabled, one chip is used, and its number is imported from the API. The 10-1 format is not mandatory for chip numbers imported from the API.
Test service
The RaceMeter web interface includes a test service that listens at:
https://racemeter.xyz/api/v2/racers/test_get_racers
and requires an API token abrakadabrasupertoken
This service is used to test the synchronization or get more detailed information about the data and returns test (generated) data with 60 racers.