<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

Ottawa, Canada — City Data API

Country: CA Ontario (ON) Pop: 1 million

Ottawa is a city in Canada (CA), Ontario (ON). Get Ottawa geographic data, postal codes and location info via the Country Data API REST endpoints. Query by country code 'CA' and state code 'ON' to retrieve Ottawa data. JSON, plans from €5/mo.

Ottawa location data via REST API

Use country code CA and state code ON to query cities and zip codes that include Ottawa.

All cities of Canada

List every city in Canada

Cities by country

Cities in Ontario

List every city in Ontario, Canada

Cities by state

Zip codes in Canada

Postal code dataset for Canada

Get zip codes

API Request Example

Fetch cities in Canada (CA) — your response will include Ottawa.

Cities by country

GET https://api.countrydataapi.com/v1/cities/country?country=Canada&limitToken=1000&apikey=YOUR_API_KEY

cURL example

curl "https://api.countrydataapi.com/v1/cities?city=Ottawa&apikey=YOUR_API_KEY"

Access Ottawa data via API

Integrate Ottawa (Canada) into your application. One API for all countries, states, cities and zip codes.