{"_id":"564b78cd1ed5c823003eb643","__v":2,"editedParams":true,"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"},"project":"55773a5ba042551900b002cb","editedParams2":true,"parentDoc":null,"user":"546d17e2eb9cfd1400dd4529","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:58:21.543Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"name":"","code":"{  \n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":{  \n      \"race_starts\":3,\n      \"race_finishes\":3,\n      \"finish_percentage\":1,\n      \"race_wins\":0,\n      \"race_podiums\":1,\n      \"race_podium_percentage\":0.33\n   }\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"56576da696d7ff0d009fc542","ref":"","in":"path","required":true,"desc":"The unique id of the athlete","default":"","type":"int","name":"athlete_id"},{"_id":"56576da696d7ff0d009fc541","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event categories","default":"","type":"string","name":"category_id"},{"_id":"56576da696d7ff0d009fc540","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event specifications","default":"","type":"string","name":"specification_id"},{"_id":"56576da696d7ff0d009fc53e","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event ids","default":"","type":"string","name":"event_id"}],"url":"/athletes/:athlete_id/team_stats"},"isReference":true,"order":11,"body":"The **Athlete Team Statistics** method retrieves quick pre-compiled team statistics for an athlete.\n\nBy default all team results in the Triathlon.org database are used (including multisport data). To restrict the analysed event specifications you may provide a pipe delimited list of event category_ids and specification_ids.\n\nThe following example returns the team statistics overview 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/team_stats\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Team API\",\n  \"body\": \"This method returns the data of an individual when in a team event. For the statistics of a Team itself e.g. Great Britain I the **Team API** [Team Statistics](https://developers.triathlon.org/docs/team-statistics) method should be consulted.\"\n}\n[/block]","excerpt":"","slug":"athlete-team-statistics","type":"endpoint","title":"Athlete Team Statistics"}

getAthlete Team Statistics


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

athlete_id:
required
integer
The unique id of the athlete

Query Params

category_id:
string
A pipe delimited list of event categories
specification_id:
string
A pipe delimited list of event specifications
event_id:
string
A pipe delimited list of event ids

Result Format


Documentation

The **Athlete Team Statistics** method retrieves quick pre-compiled team statistics for an athlete. By default all team results in the Triathlon.org database are used (including multisport data). To restrict the analysed event specifications you may provide a pipe delimited list of event category_ids and specification_ids. The following example returns the team statistics overview for athlete_id 5695. [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/athletes/5695/team_stats", "language": "curl" } ] } [/block] [block:callout] { "type": "warning", "title": "Team API", "body": "This method returns the data of an individual when in a team event. For the statistics of a Team itself e.g. Great Britain I the **Team API** [Team Statistics](https://developers.triathlon.org/docs/team-statistics) method should be consulted." } [/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 }}