New York, United States — City Data API

Country: US New York (NY) Pop: 8.3 million

New York is a city in United States (US), New York (NY). Get New York geographic data, postal codes and location info via the Country Data API REST endpoints. Query by country code 'US' and state code 'NY' to retrieve New York data. Free to start, JSON, plans from $9.99/mo.

New York location data via REST API

Use country code US and state code NY to query cities and zip codes that include New York.

All cities of United States

List every city in United States

Cities by country

Cities in New York

List every city in New York, United States

Cities by state

Zip codes in United States

Postal code dataset for United States

Get zip codes

API Request Example

Fetch cities in United States (US) — your response will include New York.

Cities by country

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

Authorization: Bearer YOUR_API_KEY

cURL example

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

Access New York data via API

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