Get Geographic $2.00 / 1,000 calls

Cities by zipcode (ES)

What this tool does

This tool finds Spanish cities based on a zip code prefix. You enter the first few digits of a zip code, and the platform returns a list of city names that match those starting digits. This is useful for verifying or completing addresses within Spain.

The results are limited to locations in Spain and are based on a predefined reference list. The list is capped at the first 100 matches found, so it may not include every possible city if many share the same prefix.

Common uses

  • Verifying the city name for a partially entered Spanish zip code.
  • Filling in the city field when only the zip code prefix is known.

Note on cost

A small fee is charged for every lookup, even if the system does not find a matching city.

Input data

Parameter Required Example Description
zipcode Yes 234 The first few digits of a Spanish zip code. Required. Example: '234' or '280'.

Output data

Field Description
name A list of city names that start with the zip code you entered. Example: ['Madrid', 'Barcelona'].