Geocoding API logo

Geocoding API

|
Data
|
2 tokens / call

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.

Quick Start

Subscribe to get instant API access with your unique API key.

View Pricing Plans

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' }
});