View State Province List
GET:{output}/state-province/list
Overview
Returns a list of states, provinces, and/or territories according to the supplied parameters.
URL Parameters (Required)
Name | Type | Description |
---|---|---|
output | string | The output format of the HTTP response; must be ‘json’, ‘xml’, or ‘csv.’ |
Query Parameters (Optional)
Name | Type | Description |
---|---|---|
parent |
| The id field of a place’s parent record. For instance, to return a list of Canadian provinces, run a query where parent=1001, the id for Canada. |
Return Format
XML (with RDFa-Lite)
Code Samples
cURL
curl “http://api.cecclimate.com/json/state-province/list?parent=1001”