Get race groups/teams.
An XML response will look similar to this example:
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE events PUBLIC "-//RunSignUp//API" "/rest/rsu.dtd"> <race_teams> <race_team> <team_id>11677</team_id> <team_name>Team 1</team_name> <team_type_id>1123</team_type_id> <team_age_restriction_id></team_age_restriction_id> <team_gender>M</team_gender> <team_bib_num>1</team_bib_num> <team_member_current_count>5</team_member_current_count> <last_modified_ts>123456789</last_modified_ts> </race_team> <race_team> <team_id>11678</team_id> <team_name>Team 2</team_name> <team_type_id>1123</team_type_id> <team_age_restriction_id></team_age_restriction_id> <team_gender>F</team_gender> <team_bib_num></team_bib_num> <team_member_current_count>3</team_member_current_count> <last_modified_ts>123456789</last_modified_ts> </race_team> <race_team> <team_id>11663</team_id> <team_name>Team 3</team_name> <team_type_id>1123</team_type_id> <team_age_restriction_id></team_age_restriction_id> <team_gender>C</team_gender> <team_bib_num>2</team_bib_num> <team_member_current_count>1</team_member_current_count> <last_modified_ts>123456789</last_modified_ts> </race_team> </race_teams>
In this response, "team_gender" can be empty, "M", "F", or "C" (for Co-ed).
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
api_key |
GET | API Key | string |
|
api_secret |
GET | API Secret | string |
|
tmp_key |
GET | Temporary API Key from login API call. This should NOT be used in combination with API Key. | string |
|
tmp_secret |
GET | Temporary API Secret from login API call. This should NOT be used in combination with API Secret. | string |
|
rsu_api_key |
GET | API v2 key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. | string |
|
sp_api_key |
GET | Super partner API key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. | string |
|
X-RSU-API-SECRET |
HTTP Header | API v2 or super partner secret. | string |
|
format |
GET | xml | Format of response. The default if not sent is `xml`, but `json` is preferred. | format |
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
race_id Required |
GET | ID of race. | uint |
|
event_id Required |
GET | Id of event or list of event ids separated by commas. | id_list |
|
modified_since |
GET | Get teams modified on or after a given time. If set, groups are returned in order of last modified date. Otherwise, by group name. | unix_timestamp |
|
page |
GET | 1 | Page number to get. | uint |
results_per_page |
GET | 50 | Number of results per page. | uint |
include_group_sizes |
GET | F | Include group sizes | bool |