
Geocoding API
City and place-level forward and reverse geocoding for 233,000+ populated places worldwide: turn a place name into coordinates (population-ranked) or coordinates into the nearest places with distances. Self-hosted GeoNames data — no third-party calls.
Available Endpoints
Request Parameters
API URL
Please subscribe to see the API URL
Headers
X-Api-Key
Query Parameters
country(Optional)
limit(Optional)
q(Required)
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' }
});