GeoNames Postal Code Lookup
geonames.postal.lookupLook up postal or ZIP codes and place names across 100+ countries by code or city, with optional country filter; returns coordinates, admin areas, and subdivision codes.
Instructions
Look up postal / ZIP codes and their place names across 100+ countries using the GeoNames database. Search by postal code (e.g. "10001" for NYC, "SW1A 1AA" for London, "75001" for Paris) or by place name. Returns matching postal codes with lat/lng, admin area names, and ISO-3166-2 subdivision codes. Use the country filter (ISO-3166 2-letter) to narrow results. Covers US, UK, Germany, France, Australia, Canada, Japan, India, Brazil, and 90+ more. CC BY 4.0 open data, no upstream cost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ISO-3166 2-letter country code to restrict the postal code search (e.g. "US", "GB", "DE") | |
| max_rows | No | Maximum number of results to return (default 10, max 1000) | |
| place_name | No | Place or city name to search postal codes for (e.g. "Berlin", "Sydney"). Use with country for best results. | |
| postal_code | No | Postal / ZIP code to look up (e.g. "10001" for New York, "SW1A 1AA" for London) |
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. |