- The /all endpoint returns all the data attribute values for all ISO 3166 countries. The list of countries supported is according to the
- ISO 3166-1 standard. This endpoint can take a little time to load
- and return a response due to the large amount of data.
+ The /all endpoint returns all the subdivision data attribute values for all ISO 3166-2 countries. The list of countries supported is according to the
+ ISO 3166-1 standard.
https://iso3166-2-api.vercel.app/api/all
-
+
- The /alpha2 endpoint returns all the data attribute values for the country with the matching 2 letter alpha-2 country code. A comma seperated
+ The /alpha2 endpoint returns all the subdivision data attribute values for the country with the matching 2 letter alpha-2 country code. A comma seperated
list of country codes can also be input. For redundancy the 3 letter alpha-3 code can also be accepted as input.
https://iso3166-2-api.vercel.app/api/alpha2/{alpha2}
-
+
https://iso3166-2-api.vercel.app/api/alpha2/AD
https://iso3166-2-api.vercel.app/api/alpha2/DE
https://iso3166-2-api.vercel.app/api/alpha2/ZA
@@ -157,37 +153,21 @@
- The /name endpoint returns all the data attribute values for a country according to its name as it is commonly known in English. A comma
+ The /name endpoint returns all the subdivision data attribute values for a country according to its name as it is commonly known in English. A comma
seperated list of country names can also be input.
https://iso3166-2-api.vercel.app/api/name/{name}
-
+
https://iso3166-2-api.vercel.app/api/name/Ireland
https://iso3166-2-api.vercel.app/api/name/Jamaica
https://iso3166-2-api.vercel.app/api/name/Panama,Rwanda,Zambia
- The output of an API request can be filtered to include only the sought attributes for the input country/countries. To do this, append the 'filter'
- query string parameter to the API URL at any of the above endpoints and pass in a list of one or more attribute names. The full list of attributes
- available in the API can be viewed on the ATTRIBUTES.md file on
- the repository.
- https://iso3166-2-api.vercel.app/api/alpha2/{alpha2}?filter={attribute},{attribute},{attribute}
-
- https://iso3166-2-api.vercel.app/api/alpha2/FR?filter=name,languages,region
- https://iso3166-2-api.vercel.app/api/name/Namibia?filter=continents,fifa,timezones
- https://iso3166-2-api.vercel.app/api/all?filter=gini,landlocked,startOfWeek
-
- The Python software and accompanying API were solely developed by me : ). + The Python software and accompanying API were solely developed by me : ).
- Contributions, enhancements or feedback to the software and or API are more than welcome! You can raise an Issue or make a pull request on the GitHub Repo or + Contributions, enhancements or feedback to the software and or API are more than welcome! You can raise an Issue or make a pull request on the GitHub Repo or email amckenna41@qub.ac.uk.