{"_id":"564b85cc4f06ef2b006b08b6","user":"546d17e2eb9cfd1400dd4529","__v":1,"project":"55773a5ba042551900b002cb","editedParams":true,"editedParams2":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"},"category":{"_id":"564b797bcc472d0d00da9435","pages":["564b85b7cc472d0d00da945d","564b85cc4f06ef2b006b08b6","564b85dcdda79a19000f2673","564b85e8cc472d0d00da945f","564b85f9dda79a19000f2675","564b8608e6c67c2f0038366c","564b861bcc472d0d00da9461","564b862bcc472d0d00da9463","56e06a635fc52e320024d8ea","56e06a6d40ba87220064161a","56e06a755fc52e320024d8ec"],"project":"55773a5ba042551900b002cb","__v":11,"version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T19:01:15.286Z","from_sync":false,"order":5,"slug":"team-api","title":"Team API"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:53:48.349Z","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   \"total\":1,\n   \"per_page\":10,\n   \"current_page\":1,\n   \"last_page\":1,\n   \"next_page_url\":null,\n   \"prev_page_url\":null,\n   \"from\":1,\n   \"to\":1,\n   \"data\":[\n      {\n         \"team_id\":11448,\n         \"team_title\":\"Team I Great Britain\",\n         \"team_slug\":\"team_i_great_britain\",\n         \"team_country_id\":292,\n         \"team_profile_image\":null,\n         \"team_noc\":\"GBR\",\n         \"team_country_name\":\"Great Britain\",\n         \"team_country_isoa2\":\"GB\",\n         \"team_listing\":\"http:\\/\\/www.triathlon.org\\/athletes\\/profile\\/11448\\/team_i_great_britain\",\n         \"team_flag\":\"https:\\/\\/f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com\\/images\\/icons\\/gb.png\",\n         \"team_api_listing\":\"https:\\/\\/api.triathlon.org\\/v1\\/v1\\/athletes\\/11448\"\n      }\n   ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"56df498592bdc23200836c2f","ref":"","in":"query","required":false,"desc":"How many teams to be returned per page","default":"10","type":"int","name":"per_page"},{"_id":"56df498592bdc23200836c2e","ref":"","in":"query","required":false,"desc":"The page number to be returned","default":"","type":"int","name":"page"},{"_id":"56df498592bdc23200836c2d","ref":"","in":"query","required":false,"desc":"Restrict returned teams by name","default":"","type":"string","name":"name"},{"_id":"56df498592bdc23200836c2c","ref":"","in":"query","required":false,"desc":"A pipe delimited list of country ids","default":"","type":"string","name":"country_id"},{"_id":"56df498592bdc23200836c2b","ref":"","in":"query","required":false,"desc":"A pipe delimited list of team ids","default":"","type":"string","name":"team_id"}],"url":"/teams"},"isReference":true,"order":1,"body":"The **Team Listings** method returns a paginated, filterable list of basic team objects matching the search criteria.\n\nThe `name` parameter allows a fuzzy search by team name. The following example returns all teams matching `Great Britain` (note could also specify the country id of 292 to achieve the same result).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: [[app:key]]\\\" https://api.triathlon.org/v1/teams?name=Great%20Britain\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"team-listings","type":"endpoint","title":"Team Listings"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

per_page:
integer10
How many teams to be returned per page
page:
integer
The page number to be returned
name:
string
Restrict returned teams by name
country_id:
string
A pipe delimited list of country ids
team_id:
string
A pipe delimited list of team ids

Result Format


Documentation

The **Team Listings** method returns a paginated, filterable list of basic team objects matching the search criteria. The `name` parameter allows a fuzzy search by team name. The following example returns all teams matching `Great Britain` (note could also specify the country id of 292 to achieve the same result). [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/teams?name=Great%20Britain", "language": "json" } ] } [/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 }}