Get Geographic $1.50 / 1,000 calls

Zipcode by prefix (ES)

What this tool does

This tool helps you find valid postal codes that match the start of a code you type in. It is useful when you know the beginning of a code but need the full version. It checks available records to find matches.

When to use it

  • Completing a form where you only recall the first few digits of a postal code.
  • Verifying if a partial postal code corresponds to a real location.
  • Finding the correct full code for a specific area when you have only a prefix.

What to expect

You will get a text value containing the first matching full postal code. If no match is found, you will receive a message indicating no results.

Limitations

  • It only returns the very first matching code it finds, not a list of all options.
  • It primarily relies on a specific reference table for Spain, with limited worldwide data.
  • It may not find matches for prefixes that are not recognized as valid starts of any postal code.

When it fails

  • The input text is empty.
  • The input text does not look like a valid partial code (e.g. too short or invalid characters).
  • No postal codes in the system start with the text you provided.

Good to know

  • For Spain, this tool uses a specific local reference table which may be more accurate.
  • For other countries, it uses a different general dataset which might be less detailed.

Input data

Parameter Required Example Description
zipcode Yes 080 Enter the first few digits of the postal code (for example, '080' for a code starting with 080). This field is required.

Output data

Field Description
result The first matching postal code found for the prefix (for example, '08015'). If no match is found, this will be empty.