{"_id":"564b84944f06ef2b006b08b2","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"},"editedParams":true,"editedParams2":true,"user":"546d17e2eb9cfd1400dd4529","project":"55773a5ba042551900b002cb","parentDoc":null,"__v":2,"category":{"_id":"55773acb07e7110d001043ee","pages":["55776c5f07e7110d00104499","564b840485e4e92b00fb4f9d","564b8422cc472d0d00da9453","564b8436cc472d0d00da9455","564b84471ed5c823003eb662","564b84591ed5c823003eb664","564b8468766d4923004e1fcd","564b84944f06ef2b006b08b2","564b84a0766d4923004e1fcf"],"__v":9,"project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:13:15.370Z","from_sync":false,"order":7,"slug":"federation-api","title":"Federation API"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:48:36.783Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":[\n      {\n         \"country_id\":103,\n         \"country_name\":\"Algeria\",\n         \"country_noc\":\"ALG\",\n         \"county_isoa2\":\"DZ\",\n         \"region_id\":12,\n         \"region_name\":\"Africa\",\n         \"federation_id\":103184\n      }\n   ]\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[]},"method":"get","auth":"required","params":[{"_id":"565ca600ea82b00d00f94a3b","ref":"","in":"query","required":false,"desc":"Pipe delimited list of region_ids to filter the results","default":"","type":"string","name":"region_id"},{"_id":"565ca610c23e2f0d00383d0e","ref":"","in":"query","required":false,"desc":"Pipe delimited list of country_ids to filter the results","default":"","type":"string","name":"country_id"}],"url":"/federations/countries"},"isReference":true,"order":6,"body":"The **Country Listings** method lists all country data for use with other API endpoints. Standard [ISO Alpha 2 codes](http://www.nationsonline.org/oneworld/country_code_list.htm) as well as [IOC country codes](https://en.wikipedia.org/wiki/List_of_IOC_country_codes) are returned.\n\nResults may be restricted by a pipe delimited list of country_ids or region_ids. A `federation_id` is returned for all countries with an affiliated Federation.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: [[app:key]]\\\" https://api.triathlon.org/v1/federations/countries\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"country-listings","type":"endpoint","title":"Country Listings"}

getCountry Listings


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

region_id:
string
Pipe delimited list of region_ids to filter the results
country_id:
string
Pipe delimited list of country_ids to filter the results

Result Format


Documentation

The **Country Listings** method lists all country data for use with other API endpoints. Standard [ISO Alpha 2 codes](http://www.nationsonline.org/oneworld/country_code_list.htm) as well as [IOC country codes](https://en.wikipedia.org/wiki/List_of_IOC_country_codes) are returned. Results may be restricted by a pipe delimited list of country_ids or region_ids. A `federation_id` is returned for all countries with an affiliated Federation. [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/federations/countries", "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 }}