
Geocoding API
City and place-level forward and reverse geocoding for 235,640 populated places worldwide, self-hosted from GeoNames and refreshed daily: turn a place name into coordinates (population-ranked, with exact, prefix and alternate-name matching for local and historical names like Firenze or Bombay) or coordinates into the nearest places with distances. Every result carries the GeoNames id, region, population, timezone and place type (capital, admin seat, neighbourhood). No third-party calls at request time.
Available Endpoints
Request Parameters
API URL
Please subscribe to see the API URL
Headers
X-Api-Key
Please subscribe to see the actual API URL
import axios from 'axios';
const url = '{API_URL}';
const { data } = await axios.get(url, {
headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});