Get Geographic $2.00 / 1,000 calls

Provinces by zipcode (ES)

What this tool does

This tool helps you find the Spanish provinces associated with a specific postal code. It is designed for users who need to organize or verify geographic data for addresses in Spain by identifying which provinces correspond to a given zipcode.

When to use it

  • Validating customer address data to ensure it matches a known Spanish province.
  • Cleaning up a list of addresses by filling in missing province information.
  • Checking if a postal code belongs to one or more specific administrative regions.

What to expect

You will receive a yes/no indicator showing if the postcode is valid in Spain, followed by a list of the matching province names. If no provinces are found, the list will be empty.

Limitations

  • This tool only works for postal codes in Spain (country code ES).
  • It may not return results for very rare or newly created postal codes.
  • Results are limited to the first 100 matches found.

When it fails

  • The input is empty or malformed.
  • The service is temporarily unavailable.

Good to know

  • A single postal code can sometimes correspond to multiple provinces in border areas.
  • Ensure the postcode is entered exactly as it appears on the mail label.

Input data

Parameter Required Example Description
zipcode Yes 0 Enter the first 1 to 3 digits of the Spanish postal code you want to check (for example, enter 2 for codes starting with 20000). This is required.

Output data

Field Description
name The name of a province (for example, 'Madrid') that matches the postal code prefix you entered.