New York State Data — United States (US)

Code: NY Country: US Capital: Albany Pop: 19.7 million

New York (NY) is a state of United States (US) with capital Albany. Get New York cities, zip codes and geographic data via the Country Data API REST endpoints. Query by country code 'US' and state code 'NY'. Free to start, JSON, plans from $9.99/mo.

Get New York cities and zip codes via API

Use the United States country code US and the state code NY to query New York-specific geographic data.

Cities in New York

All cities and localities in New York, United States

Get cities

Zip / Postal Codes in New York

Complete postal code dataset for New York

Get zip codes

All states of United States

List every state/province in United States

See all states

API Request Example

Fetch cities in New York (NY) via the REST API.

Cities by state

GET https://api.countrydataapi.com/v1/cities/by-state?country=US&state=NY

Authorization: Bearer YOUR_API_KEY

cURL example

curl "https://api.countrydataapi.com/v1/zipcode/by-state?country=US&state=NY"   -H "Authorization: Bearer YOUR_KEY"

Cities in New York

Access New York cities & zip codes via API

Integrate New York (United States) geographic data into your application. One API for all countries, states, cities and zip codes.