City name → coordinates

Finds cities by name and returns their coordinates, country, population and time zone.

Request

GEThttps://geo-tools.p.apihiver.com/v1/geocode?city=Pune
*
String. City name, e.g. Pune.
String. ISO country code filter, e.g. IN.
Number. Maximum number of results (1–20, default 5).
Language
Client
1curl --request GET \
2  --url 'https://geo-tools.p.apihiver.com/v1/geocode?city=Pune&country=%7Bcountry%7D&limit=%7Blimit%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

City name → coordinates: Geocoding & Geo Tools API reference

Finds cities by name and returns their coordinates, country, population and time zone. This endpoint is part of the Geocoding & Geo Tools API: Geocode cities to coordinates, reverse-geocode coordinates, measure distances and find the time zone of any place.

Example response (200, application/json)

Success.

1{
2  "results": [
3    {
4      "lat": 18.51957,
5      "lon": 73.85535,
6      "name": "Pune",
7      "country": "India",
8      "timezone": "Asia/Kolkata",
9      "population": 3124458,
10      "country_code": "IN"
11    }
12  ]
13}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "city: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.