GeoNames Place Search
geonames.place.searchSearch 12M+ global geographical places by name, country, feature type, or code to retrieve coordinates, population, and location details.
Instructions
Search the GeoNames geographical database for places, populated areas, mountains, rivers, and 12M+ geographical features worldwide. Filter by country (ISO-3166 2-letter code), feature class (A=administrative, P=populated place, T=mountain, H=water body, S=building/spot), and feature code (e.g. PPLC=capital, MT=mountain, STM=stream). Results include geoname_id, lat/lng, country, admin1/admin2, population, and Wikipedia link. Order by relevance (default), population, elevation, or Wikipedia linkage. Supports multilingual name lookup via lang parameter. CC BY 4.0 open data, no upstream cost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Full-text search query across place names, alternate names, and feature codes (e.g. "Paris", "Mont Blanc") | |
| name | No | Search by exact or partial official place name (more precise than q; e.g. "New York") | |
| country | No | Filter results to this ISO-3166 2-letter country code (e.g. "US", "FR", "DE") | |
| language | No | ISO 639-1 language code for localized names in the response (e.g. "en", "fr", "de") | |
| max_rows | No | Maximum number of results to return (default 10, max 1000) | |
| order_by | No | Sort order: "relevance" (default, best name match), "population" (largest first), "elevation" (highest first), "wikipedia" (most linked) | |
| start_row | No | Zero-based offset for pagination (default 0) | |
| feature_code | No | GeoNames feature code for fine-grained filtering (e.g. "PPLC"=capital, "MT"=mountain, "STM"=stream) | |
| feature_class | No | GeoNames feature class: A=administrative, H=hydrographic, L=parks/area, P=populated place, R=road, S=spot/building, T=mountain/hill, U=undersea, V=vegetation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |