{"_id":"564b78801ed5c823003eb640","user":"546d17e2eb9cfd1400dd4529","category":{"_id":"55773abaa042551900b002d5","version":"55773a5ba042551900b002ce","__v":18,"pages":["55776c06a042551900b0034f","564a6fdf4cd0521700523edc","564b6753cc472d0d00da940e","564b78801ed5c823003eb640","564b788fcc472d0d00da942e","564b7898dda79a19000f2641","564b78bfdda79a19000f2643","564b78cd1ed5c823003eb643","564b78ebdda79a19000f2646","564b791d766d4923004e1fb3","564b7929e323d01700a5132f","564b7935766d4923004e1fb5","564b793fe323d01700a51331","564b7957cc472d0d00da9431","564b7962dda79a19000f2648","564b79b31ed5c823003eb645","564b79c31ed5c823003eb647","564b79fee323d01700a51336"],"project":"55773a5ba042551900b002cb","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:12:58.040Z","from_sync":false,"order":2,"slug":"athletes-api","title":"Athletes API"},"editedParams":true,"parentDoc":null,"project":"55773a5ba042551900b002cb","__v":1,"editedParams2":true,"version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":18,"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","59cd4b81935249001c77c48e"],"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-17T18:57:04.069Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"status":200,"name":"","code":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"total\": 55,\n    \"per_page\": 10,\n    \"current_page\": 1,\n    \"last_page\": 6,\n    \"next_page_url\": \"https://api.triathlon.org/v1/athletes/11378/results?page=2\",\n    \"prev_page_url\": null,\n    \"from\": 1,\n    \"to\": 10,\n    \"data\": [\n        {\n            \"event_id\": 97637,\n            \"event_title\": \"2016 ITU World Triathlon Gold Coast\",\n            \"event_slug\": \"2016_itu_world_triathlon_gold_coast\",\n            \"event_edit_date\": \"2016-04-11T18:47:28+00:00\",\n            \"event_venue\": \"Gold Coast\",\n            \"event_country\": \"Australia\",\n            \"event_latitude\": -28.01726,\n            \"event_longitude\": 153.4257,\n            \"event_date\": \"2016-04-09\",\n            \"event_finish_date\": \"2016-04-10\",\n            \"event_country_isoa2\": \"AU\",\n            \"event_country_noc\": \"AUS\",\n            \"event_region_id\": 14,\n            \"event_country_id\": 111,\n            \"event_region_name\": \"Oceania\",\n            \"event_categories\": [\n                {\n                    \"cat_name\": \"World Triathlon Series\",\n                    \"cat_id\": 351,\n                    \"cat_parent_id\": 0\n                }\n            ],\n            \"event_specifications\": [\n                {\n                    \"cat_name\": \"Triathlon\",\n                    \"cat_id\": 357,\n                    \"cat_parent_id\": 0\n                },\n                {\n                    \"cat_name\": \"Standard\",\n                    \"cat_id\": 377,\n                    \"cat_parent_id\": 357\n                }\n            ],\n            \"event_flag\": \"https://f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com/images/icons/au.png\",\n            \"event_listing\": \"http://www.triathlon.org/events/event/2016_itu_world_triathlon_gold_coast\",\n            \"event_api_listing\": \"https://api.triathlon.org/v1/v1/events/97637\",\n            \"prog_id\": 280765,\n            \"prog_name\": \"Elite Men\",\n            \"result_id\": 526904,\n            \"position\": 3,\n            \"total_time\": \"01:47:09\",\n            \"result_listing\": \"http://www.triathlon.org/results/result/2016_itu_world_triathlon_gold_coast/280765\",\n            \"result_api_listing\": \"https://api.triathlon.org/v1/events/97637/programs/280765/results\",\n            \"headers\": [\n                {\n                    \"segment\": \"leg1\",\n                    \"name\": \"Swim\"\n                },\n                {\n                    \"segment\": \"t1\",\n                    \"name\": \"T1\"\n                },\n                {\n                    \"segment\": \"leg2\",\n                    \"name\": \"Bike\"\n                },\n                {\n                    \"segment\": \"t2\",\n                    \"name\": \"T2\"\n                },\n                {\n                    \"segment\": \"leg3\",\n                    \"name\": \"Run\"\n                }\n            ],\n            \"headers_count\": 5,\n            \"splits\": [\n                \"00:16:12\",\n                \"00:00:27\",\n                \"00:58:43\",\n                \"00:00:21\",\n                \"00:31:28\"\n            ]\n        }\n    ]\n}","language":"json"}]},"settings":"","auth":"required","params":[{"_id":"56576827a795770d00a2af90","ref":"","in":"path","required":true,"desc":"The unique id of the athlete","default":"","type":"int","name":"athlete_id"},{"_id":"56576827a795770d00a2af8f","ref":"","in":"query","required":false,"desc":"How many results to be returned per page","default":"10","type":"int","name":"per_page"},{"_id":"56576827a795770d00a2af8e","ref":"","in":"query","required":false,"desc":"The page number to be returned","default":"","type":"int","name":"page"},{"_id":"56576827a795770d00a2af8d","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event categories","default":"","type":"string","name":"category_id"},{"_id":"56576827a795770d00a2af8c","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event specifications","default":"","type":"string","name":"specification_id"},{"_id":"56576827a795770d00a2af8b","ref":"","in":"query","required":false,"desc":"Restrict to elite only results","default":"false","type":"boolean","name":"elite"},{"_id":"56576827a795770d00a2af8a","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event ids","default":"","type":"string","name":"event_id"}],"url":"/athletes/:athlete_id/results"},"isReference":true,"order":6,"body":"The *Athlete Results* method provides a filterable paginated list of athlete results.\n\nAdditional filters may be used by specify one or all of `category_id`, `specification_id` or `event_id` which all take a pipe delimited list such that multiple options may be specified.\n\nThe `elite` boolean may be used to restrict results to only elite programs and as such excluding other programs such as Junior and U23 results.\n\nThe following example returns all World Triathlon Series elite results for athlete_id 5695:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: [[app:key]]\\\" https://api.triathlon.org/v1/athletes/5695/results?category_id=351&elite=true\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"athlete-results","type":"endpoint","title":"Athlete Results"}

getAthlete Results


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

athlete_id:
required
integer
The unique id of the athlete

Query Params

per_page:
integer10
How many results to be returned per page
page:
integer
The page number to be returned
category_id:
string
A pipe delimited list of event categories
specification_id:
string
A pipe delimited list of event specifications
elite:
booleanfalse
Restrict to elite only results
event_id:
string
A pipe delimited list of event ids

Result Format


Documentation

The *Athlete Results* method provides a filterable paginated list of athlete results. Additional filters may be used by specify one or all of `category_id`, `specification_id` or `event_id` which all take a pipe delimited list such that multiple options may be specified. The `elite` boolean may be used to restrict results to only elite programs and as such excluding other programs such as Junior and U23 results. The following example returns all World Triathlon Series elite results for athlete_id 5695: [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/athletes/5695/results?category_id=351&elite=true", "language": "curl" } ] } [/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 }}