{"_id":"564a631a4721851900a675dc","parentDoc":null,"project":"55773a5ba042551900b002cb","__v":0,"editedParams2":true,"user":"546d17e2eb9cfd1400dd4529","category":{"_id":"55773a6ce6063e0d00481380","pages":["55773a9fe6063e0d00481381","5638e57daaddb90d00c75fd1","564a61684cd0521700523ebf","564a629ceed7de0d003671d3","564a631a4721851900a675dc","564a63974721851900a675e4","564a63e8eed7de0d003671d7","564a9eb4e5d9d61700d57fe7","566731f5d784a70d00397cd4"],"project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","__v":9,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:11:40.967Z","from_sync":false,"order":9,"slug":"statistics-api","title":"Statistics API"},"editedParams":true,"version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":17,"createdAt":"2015-06-09T19:11:23.764Z","releaseDate":"2015-06-09T19:11:23.764Z","categories":["55773a5ca042551900b002cf","55773a6ce6063e0d00481380","55773ab007e7110d001043ec","55773abaa042551900b002d5","55773ac207e7110d001043ed","55773acb07e7110d001043ee","55773ad3a042551900b002d6","55773adce6063e0d00481383","55773ae4a042551900b002d7","55773af307e7110d001043ef","55773af907e7110d001043f0","55773b0407e7110d001043f1","563a4f7ad25e8919005f3f39","563a4fcaa19edf0d00972321","564a70dc4cd0521700523edf","564b797bcc472d0d00da9435","564b855b766d4923004e1fd1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Motherboard","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-16T23:13:30.234Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"code":"{\n  \"code\": 200,\n  \"status\": \"success\",\n  \"data\": {\n    \"result\": 7\n  }\n}","language":"json","status":200,"name":""}]},"settings":"","auth":"required","params":[{"_id":"564a631a4721851900a675e2","ref":"","in":"query","required":true,"desc":"What type of analysis to perform","default":"","type":"string","name":"analysis"},{"_id":"564a631a4721851900a675e1","ref":"","in":"query","required":false,"desc":"The name of the property you are analysing","default":"","type":"string","name":"target_property"},{"_id":"564a631a4721851900a675e0","ref":"","in":"query","required":false,"desc":"The name of a property by which you would like to group the results","default":"","type":"string","name":"group_by"},{"_id":"564a631a4721851900a675df","ref":"","in":"query","required":false,"desc":"A list of filters to narrow down the events used in an analysis request based on event property values","default":"","type":"string","name":"filters"},{"_id":"564a631a4721851900a675de","ref":"","in":"query","required":false,"desc":"A timeframe to narrow down the events used in an analysis request based on the time that the event occurred","default":"","type":"string","name":"timeframe"},{"_id":"564a631a4721851900a675dd","ref":"","in":"query","required":false,"desc":"The length of time block to break a response into","default":"","type":"string","name":"interval"}],"url":"/statistics/results"},"isReference":true,"order":2,"body":"The following properties are available for use in your analysis. If the property does not have a value e.g. a non-finisher who did not complete the swim the property does not exist. You may check for existence using the **exists** filter. It is possible some athlete split times are not recorded due to timing failures.\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"body\": \"In certain instances data is affected by specific race details e.g. unexpected course distances based on event format or shortened discliplines. While distance information is not available via the program properties you will need to sense-check any results and confirm by visiting the corresponding results page on [wts.triathlon.org/results](http://wts.triathlon.org/results)\",\n  \"title\": \"Unexpected Results\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"result_id\",\n    \"1-0\": \"position\",\n    \"4-0\": \"date\",\n    \"5-0\": \"year\",\n    \"6-0\": \"month\",\n    \"7-0\": \"finish_time\",\n    \"9-0\": \"athlete.name\",\n    \"10-0\": \"athlete.first\",\n    \"11-0\": \"athlete.last\",\n    \"12-0\": \"athlete.country\",\n    \"13-0\": \"athlete.gender\",\n    \"14-0\": \"athlete.age\",\n    \"15-0\": \"athlete.age_days\",\n    \"16-0\": \"event.id\",\n    \"17-0\": \"event.name\",\n    \"18-0\": \"event.country\",\n    \"19-0\": \"event.venue\",\n    \"20-0\": \"event.region\",\n    \"21-0\": \"event.categories\",\n    \"22-0\": \"event.specifications\",\n    \"23-0\": \"program.id\",\n    \"24-0\": \"program.name\",\n    \"25-0\": \"program.start_time\",\n    \"27-0\": \"splits.swim\",\n    \"29-0\": \"splits.bike\",\n    \"31-0\": \"splits.run\",\n    \"33-0\": \"splits.t1\",\n    \"34-0\": \"splits.t2\",\n    \"2-0\": \"type\",\n    \"2-2\": \"The type of program (e.g. Triathlon)\",\n    \"2-1\": \"string\",\n    \"3-0\": \"format\",\n    \"3-1\": \"string\",\n    \"3-2\": \"The format of the program (e.g. Sprint, Standard)\",\n    \"0-1\": \"num\",\n    \"1-1\": \"num\",\n    \"29-1\": \"num\",\n    \"31-1\": \"num\",\n    \"33-1\": \"num\",\n    \"34-1\": \"num\",\n    \"27-1\": \"num\",\n    \"25-1\": \"num\",\n    \"24-1\": \"string\",\n    \"23-1\": \"num\",\n    \"22-1\": \"list\",\n    \"21-1\": \"list\",\n    \"20-1\": \"string\",\n    \"19-1\": \"string\",\n    \"18-1\": \"string\",\n    \"17-1\": \"string\",\n    \"16-1\": \"num\",\n    \"15-1\": \"num\",\n    \"14-1\": \"num\",\n    \"13-1\": \"string\",\n    \"12-1\": \"string\",\n    \"11-1\": \"string\",\n    \"10-1\": \"string\",\n    \"9-1\": \"string\",\n    \"7-1\": \"num\",\n    \"6-1\": \"num\",\n    \"5-1\": \"num\",\n    \"4-1\": \"string\",\n    \"0-2\": \"The unique id associated with the result\",\n    \"1-2\": \"The finishing position of the athlete (non finishes are stored as strings and are ignored in most analysis types)\",\n    \"4-2\": \"The date that the race occurred\",\n    \"5-2\": \"The numeric year that the result occured\",\n    \"6-2\": \"The numeric month that the result occurred\",\n    \"7-2\": \"The finish time of the athlete in seconds\",\n    \"9-2\": \"The full name of the athlete\",\n    \"10-2\": \"The first name of the athlete\",\n    \"11-2\": \"The last name of the athlete\",\n    \"12-2\": \"The[ three letter NOC country code](http://en.wikipedia.org/wiki/List_of_IOC_country_codes) of the athlete\",\n    \"13-2\": \"The gender of the athlete (male or female)\",\n    \"14-2\": \"The age of the athlete in years at the time of the race\",\n    \"15-2\": \"The age of the athlete in days at the time of the race\",\n    \"16-2\": \"The unique id of the event\",\n    \"8-0\": \"athlete_id\",\n    \"8-1\": \"num\",\n    \"8-2\": \"The unique id of the athlete\",\n    \"17-2\": \"The name of the event\",\n    \"18-2\": \"The [three letter NOC country code](http://en.wikipedia.org/wiki/List_of_IOC_country_codes) of the event\",\n    \"19-2\": \"The city of the event\",\n    \"20-2\": \"The region of the event\",\n    \"21-2\": \"A list of categories for the event\",\n    \"22-2\": \"A list of specifications for the event\",\n    \"23-2\": \"The unique id of the race\",\n    \"24-2\": \"The name of the race within the event\",\n    \"25-2\": \"The start time of the race (in seconds past midnight local time)\",\n    \"27-2\": \"The swim time in seconds\",\n    \"29-2\": \"The bike time in seconds\",\n    \"31-2\": \"The run time in seconds\",\n    \"33-2\": \"The t1 time in seconds\",\n    \"34-2\": \"The t2 time in seconds\",\n    \"35-0\": \"temperature.air\",\n    \"35-2\": \"The air temperature in degrees Celsius\",\n    \"35-1\": \"num\",\n    \"36-0\": \"temperature.water\",\n    \"36-1\": \"num\",\n    \"36-2\": \"The water temperature in degrees Celsius\",\n    \"28-0\": \"splits.swim_distance\",\n    \"28-1\": \"num\",\n    \"28-2\": \"Swim distance in meters\",\n    \"30-0\": \"splits.bike_distance\",\n    \"30-1\": \"num\",\n    \"30-2\": \"The bike distance in km\",\n    \"32-0\": \"splits.run_distance\",\n    \"32-1\": \"num\",\n    \"32-2\": \"The run distance in meters\",\n    \"26-0\": \"program.wetsuit\",\n    \"26-1\": \"boolean\",\n    \"26-2\": \"True or false whether wetsuits were permitted\"\n  },\n  \"cols\": 3,\n  \"rows\": 37\n}\n[/block]","excerpt":"","slug":"results","type":"endpoint","title":"Results"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

analysis:
required
string
What type of analysis to perform
target_property:
string
The name of the property you are analysing
group_by:
string
The name of a property by which you would like to group the results
filters:
string
A list of filters to narrow down the events used in an analysis request based on event property values
timeframe:
string
A timeframe to narrow down the events used in an analysis request based on the time that the event occurred
interval:
string
The length of time block to break a response into

Result Format


Documentation

The following properties are available for use in your analysis. If the property does not have a value e.g. a non-finisher who did not complete the swim the property does not exist. You may check for existence using the **exists** filter. It is possible some athlete split times are not recorded due to timing failures. [block:callout] { "type": "danger", "body": "In certain instances data is affected by specific race details e.g. unexpected course distances based on event format or shortened discliplines. While distance information is not available via the program properties you will need to sense-check any results and confirm by visiting the corresponding results page on [wts.triathlon.org/results](http://wts.triathlon.org/results)", "title": "Unexpected Results" } [/block] [block:parameters] { "data": { "h-0": "Property Name", "h-1": "Type", "h-2": "Description", "0-0": "result_id", "1-0": "position", "4-0": "date", "5-0": "year", "6-0": "month", "7-0": "finish_time", "9-0": "athlete.name", "10-0": "athlete.first", "11-0": "athlete.last", "12-0": "athlete.country", "13-0": "athlete.gender", "14-0": "athlete.age", "15-0": "athlete.age_days", "16-0": "event.id", "17-0": "event.name", "18-0": "event.country", "19-0": "event.venue", "20-0": "event.region", "21-0": "event.categories", "22-0": "event.specifications", "23-0": "program.id", "24-0": "program.name", "25-0": "program.start_time", "27-0": "splits.swim", "29-0": "splits.bike", "31-0": "splits.run", "33-0": "splits.t1", "34-0": "splits.t2", "2-0": "type", "2-2": "The type of program (e.g. Triathlon)", "2-1": "string", "3-0": "format", "3-1": "string", "3-2": "The format of the program (e.g. Sprint, Standard)", "0-1": "num", "1-1": "num", "29-1": "num", "31-1": "num", "33-1": "num", "34-1": "num", "27-1": "num", "25-1": "num", "24-1": "string", "23-1": "num", "22-1": "list", "21-1": "list", "20-1": "string", "19-1": "string", "18-1": "string", "17-1": "string", "16-1": "num", "15-1": "num", "14-1": "num", "13-1": "string", "12-1": "string", "11-1": "string", "10-1": "string", "9-1": "string", "7-1": "num", "6-1": "num", "5-1": "num", "4-1": "string", "0-2": "The unique id associated with the result", "1-2": "The finishing position of the athlete (non finishes are stored as strings and are ignored in most analysis types)", "4-2": "The date that the race occurred", "5-2": "The numeric year that the result occured", "6-2": "The numeric month that the result occurred", "7-2": "The finish time of the athlete in seconds", "9-2": "The full name of the athlete", "10-2": "The first name of the athlete", "11-2": "The last name of the athlete", "12-2": "The[ three letter NOC country code](http://en.wikipedia.org/wiki/List_of_IOC_country_codes) of the athlete", "13-2": "The gender of the athlete (male or female)", "14-2": "The age of the athlete in years at the time of the race", "15-2": "The age of the athlete in days at the time of the race", "16-2": "The unique id of the event", "8-0": "athlete_id", "8-1": "num", "8-2": "The unique id of the athlete", "17-2": "The name of the event", "18-2": "The [three letter NOC country code](http://en.wikipedia.org/wiki/List_of_IOC_country_codes) of the event", "19-2": "The city of the event", "20-2": "The region of the event", "21-2": "A list of categories for the event", "22-2": "A list of specifications for the event", "23-2": "The unique id of the race", "24-2": "The name of the race within the event", "25-2": "The start time of the race (in seconds past midnight local time)", "27-2": "The swim time in seconds", "29-2": "The bike time in seconds", "31-2": "The run time in seconds", "33-2": "The t1 time in seconds", "34-2": "The t2 time in seconds", "35-0": "temperature.air", "35-2": "The air temperature in degrees Celsius", "35-1": "num", "36-0": "temperature.water", "36-1": "num", "36-2": "The water temperature in degrees Celsius", "28-0": "splits.swim_distance", "28-1": "num", "28-2": "Swim distance in meters", "30-0": "splits.bike_distance", "30-1": "num", "30-2": "The bike distance in km", "32-0": "splits.run_distance", "32-1": "num", "32-2": "The run distance in meters", "26-0": "program.wetsuit", "26-1": "boolean", "26-2": "True or false whether wetsuits were permitted" }, "cols": 3, "rows": 37 } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}