cURL
curl --request GET \ --url https://api.sandbox.iron.xyz/api/country_subdivisions/{country_code} \ --header 'X-API-Key: <api-key>'
[ { "code": "<string>", "name": "<string>" } ]
Utility endpoint to get a list of all accepted subdivisions (states, provinces, regions, etc.) for a given country
API Key
The ISO 3166-1 Alpha-2 country code ISO 3166-1 Alpha-2 country code (e.g. "DE", "US")
2
"DE"
GET Subdivisions Succeeded
Was this page helpful?