Cities by zipcode (ES)
What this tool does
This tool helps you find the names of cities or towns in Spain that correspond to a specific postal code. It is designed for users who need to verify geographic information by entering a postcode and receiving a list of associated locations. This simplifies the process of mapping postal codes to place names without requiring detailed technical knowledge.
When to use it
- Verifying that a entered postal code is valid for a specific area in Spain.
- Finding all city names associated with a shared or overlapping postal code.
- Cleaning and standardizing address data by confirming the correct town name.
- Checking if a postal code belongs to a specific city for delivery or logistics planning.
What to expect
You will receive a simple yes or no answer indicating if the postal code exists in the system. If it does, you will also get a list of the city or town names linked to that code, limited to the first 100 matches.
Limitations
- The tool only searches for postal codes in Spain (ES); codes from other countries will not return results.
- The list of cities is limited to the first 100 matches; if more than 100 cities share the code, only the first ones are shown.
- Results are based on a static reference list and may not reflect very recent administrative changes.
- Partial postal codes are supported, but more specific codes generally yield more accurate and smaller lists.
When it fails
- The entered postal code is empty or contains invalid characters.
- The postal code entered is not found in the Spanish postal code database.
- The system encounters a temporary issue connecting to the data source.
Good to know
- You can enter just the first few digits of a postal code to see all cities that start with those numbers.
- The list of cities is sorted alphabetically to make it easier to scan.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
zipcode | Yes | 234 | Enter the first few digits of a Spanish zip code as text (e.g. '280'). This field is required. |
Output data
| Field | Description |
|---|---|
name | A list of city names that start with the zip code you entered. Example: ['Madrid', 'Barcelona']. |