Kansas State Data — United States (US)

Code: KS Country: US Capital: Topeka Pop: 2.9 million

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

Get Kansas cities and zip codes via API

Use the United States country code US and the state code KS to query Kansas-specific geographic data.

Cities in Kansas

All cities and localities in Kansas, United States

Get cities

Zip / Postal Codes in Kansas

Complete postal code dataset for Kansas

Get zip codes

All states of United States

List every state/province in United States

See all states

API Request Example

Fetch cities in Kansas (KS) via the REST API.

Cities by state

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

Authorization: Bearer YOUR_API_KEY

cURL example

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

Access Kansas cities & zip codes via API

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