Location by zipcode (ES)
What this tool does
This tool finds the city, province, and region for a Spanish postal code. It works only for locations in Spain. If you enter a valid code, it returns the specific place details. If the code is invalid or not in Spain, it returns empty results.
Common uses
- Filling in address forms to ensure correct city and province details.
- Validating a Spanish postal code during customer registration.
- Correcting or standardizing addresses using official location names.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
zipcode | Yes | 08012 | Enter the 5-digit Spanish postal code as text. For example, '08012'. Required. |
Output data
| Field | Description |
|---|---|
city | The name of the city or town associated with the postal code. For example, 'Barcelona'. |
community | The autonomous community name. For example, 'Catalonia'. |
province | The province name. For example, 'Barcelona'. |