Cities by phone (ES)
What this tool does
This tool finds city names based on the prefix of a Spanish phone number.
Results are approximate and depend on the phone prefix matching a known geographic district in the platform's data. Some prefixes may not return any cities.
Common uses
- Identifying the likely city or region for a Spanish phone number entered in a form.
- Checking if a provided Spanish phone prefix is valid and returns geographic data.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
phone | Yes | 938499145 | Enter a Spanish phone number as text, for example '938499145'. This field is required. |
Output data
| Field | Description |
|---|---|
name | A list of city or district names associated with the phone prefix, for example ['Barcelona'] or an empty list if none are found. |