List supported cities in a state

GET {{urlExternalAPI}}v2/cities?state={{STATE_NAME}}&country={{COUNTRY_NAME}}&key={{YOUR_API_KEY}}

Return an array of all supported cities*, inside a specified state.

* cities with no active stations will not be returned

Each city object contains its English name city (requested by other endpoints)

Parameters

  • state : state's English name, can be found using the respective listing endpoint.
  • country : country's English name, can be found using the respective listing endpoint.

Request Params

| Key | Datatype | Required | Description | | state | string | | | | country | string | | | | key | string | | |

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

{"status":"success","data":[{"city":"Addison"},{"city":"Albany"},{"city":"Buffalo"},{"city":"Carmel"},{"city":"Dunkirk"},{"city":"East Syracuse"},{"city":"Farmingdale"},{"city":"Holtsville"},{"city":"Ithaca"},{"city":"La Fargeville"},{"city":"Malone"},{"city":"Middleport"},{"city":"Millbrook"},{"city":"Montgomery"},{"city":"New York"},{"city":"New York-northern New Jersey-long Island"},{"city":"Newburgh"},{"city":"Newcomb"},{"city":"Old Forge"},{"city":"Piseco"},{"city":"Pomona"},{"city":"Ps 314"},{"city":"Riverhead"},{"city":"Rochester"},{"city":"Stillwater"},{"city":"Tonawanda"},{"city":"Utica"},{"city":"White Plains"},{"city":"Williamson"},{"city":"Williston"},{"city":"Wilmington"}]}