<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" />

Edinburgh, United Kingdom — City Data API

Country: GB Pop: 525,000

Edinburgh is a city in United Kingdom (GB). Get Edinburgh geographic data, postal codes and location info via the Country Data API REST endpoints. Query by country code 'GB' to retrieve Edinburgh data. JSON, plans from €5/mo.

Edinburgh location data via REST API

Use country code GB to query cities and zip codes that include Edinburgh.

All cities of United Kingdom

List every city in United Kingdom

Cities by country

Zip codes in United Kingdom

Postal code dataset for United Kingdom

Get zip codes

API Request Example

Fetch cities in United Kingdom (GB) — your response will include Edinburgh.

Cities by country

GET https://api.countrydataapi.com/v1/cities/country?country=United%20Kingdom&limitToken=1000&apikey=YOUR_API_KEY

cURL example

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

Access Edinburgh data via API

Integrate Edinburgh (United Kingdom) into your application. One API for all countries, states, cities and zip codes.