{"_id":"564b78bfdda79a19000f2643","__v":3,"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"},"parentDoc":null,"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"},"user":"546d17e2eb9cfd1400dd4529","editedParams":true,"editedParams2":true,"project":"55773a5ba042551900b002cb","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T18:58:07.561Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{  \n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":{  \n      \"race_starts\":\"99\",\n      \"race_finishes\":\"93\",\n      \"finish_percentage\":0.94,\n      \"race_wins\":\"37\",\n      \"race_podiums\":\"66\",\n      \"race_podium_percentage\":0.67\n   }\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"56576b64a795770d00a2af93","ref":"","in":"path","required":true,"desc":"The unique id of the athlete","default":"","type":"int","name":"athlete_id"},{"_id":"56576c71a795770d00a2af96","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event categories","default":"","type":"string","name":"category_id"},{"_id":"56576c71a795770d00a2af95","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event specifications","default":"","type":"string","name":"specification_id"},{"_id":"56576d181edfb90d005c2416","ref":"","in":"query","required":false,"desc":"Restrict to elite only results","default":"false","type":"boolean","name":"elite"},{"_id":"56576d181edfb90d005c2415","ref":"","in":"query","required":false,"desc":"A pipe delimited list of event ids","default":"","type":"string","name":"event_id"}],"url":"/athletes/:athlete_id/stats"},"isReference":true,"order":9,"body":"The **Athlete Statistics** method retrieves quick pre-compiled individual statistics for an athlete.\n\nBy default all individual results in the Triathlon.org database are used (including multisport data but not team). To restrict the analysed event specifications you may provide a pipe delimited list of event category or event specifications.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Statistics API\",\n  \"body\": \"This method provides the most basic summary statistical information. For in-depth analysis of results please consult the Statistics API documentation.\"\n}\n[/block]\nThe following example returns the 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/stats\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"athlete-statistics","type":"endpoint","title":"Athlete Statistics"}

getAthlete 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
elite:
booleanfalse
Restrict to elite only results
event_id:
string
A pipe delimited list of event ids

Result Format


Documentation

The **Athlete Statistics** method retrieves quick pre-compiled individual statistics for an athlete. By default all individual results in the Triathlon.org database are used (including multisport data but not team). To restrict the analysed event specifications you may provide a pipe delimited list of event category or event specifications. [block:callout] { "type": "info", "title": "Statistics API", "body": "This method provides the most basic summary statistical information. For in-depth analysis of results please consult the Statistics API documentation." } [/block] The following example returns the statistics overview for athlete_id 5695. [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/athletes/5695/stats", "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 }}