# GeoNames

Category: [Location Information](https://free-web-services.com/web-services/geo/location-info/)  
Page: https://free-web-services.com/web-services/geo/location-info/geonames.html  
Documentation: https://www.geonames.org/export/ws-overview.html

GeoNames offers web services for its geographical database of more than 11 million place names in many languages. Search places by name, find nearby places, postal codes, streets and Wikipedia articles for a coordinate, look up time zones, elevation and country information, and get the administrative hierarchy of a place. Responses are JSON or XML. Free with a free GeoNames account (username) and a daily credit limit; paid premium service for heavy use.

- API key: Needed, free
- Pricing: Free with a free GeoNames account (username) and a daily credit limit; paid premium service for heavy use.
- From the browser: Yes (CORS)
- Formats: JSON, XML
- Interface: REST, HTTP-GET
- Provider: geonames.org
- Last checked: Working on November 15th, 2026

Example request:

```sh
curl 'http://api.geonames.org/searchJSON?q=London&maxRows=1&username=YOUR_API_KEY'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

