---
title: "City lookup guide"
description: "Use this API to convert a city name to latitude and longitude."
url: "https://devportal.jilson.dev/apis/nominatim-city-geocoding/docs/city-lookup"
image: "https://devportal.jilson.dev/_og/d/c_Ocean.takumi,title_City+lookup+guide,description_Use+this+API+to+convert+a+city+name+to+latitude+and+longitude.,props_eyJ0aGVtZSI6eyJtb2RlIjoiZGFyayIsImNvbG9ycyI6eyJwcmltYXJ5IjoiI0NERkYwMCJ9fX0,p_Ii9hcGlzL25vbWluYXRpbS1jaXR5LWdlb2NvZGluZy9kb2NzL2NpdHktbG9va3VwIg,s_rXPKdQQ-0hlUHl_O.png"
---

# City lookup

Use this API to convert a city name to latitude and longitude.

## [Request](#request)

GET [https://86ff79c5ed.us.serverless.gateways.konggateway.tech/v1/geocode/city?city=Toronto](https://86ff79c5ed.us.serverless.gateways.konggateway.tech/v1/geocode/city?city=Toronto)

The gateway adds Nominatim's JSON output format and limits the response to the highest-ranked result. You can optionally pass `countrycodes`, for example `countrycodes=ca`, to narrow results.

Requests require an API key from your Developer Portal application. Nominatim data is provided by OpenStreetMap contributors.