Get Geographic $1.50 / 1,000 calls

Province by name (ES)

What this tool does

This tool helps you find Spanish provinces by typing their name or part of it. It is designed for people who need to quickly identify the correct province for a location in Spain. You can use it to confirm the full name of a province when you only have a short code or partial text.

When to use it

  • Finding the full name of a province in Spain when you only know the first few letters.
  • Verifying that a province name is correctly spelled and recognized by the system.
  • Converting a short province code (like 'B' for Barcelona) into its full official name.

What to expect

You will get back the full name of the province as plain text. If the name you typed is not found, you will receive an empty response.

Limitations

  • The tool only works for provinces located in Spain.
  • It matches the start of the province name, so partial names work best.
  • It only returns the first match found, not a list of all possible options.

When it fails

  • If you type a name that does not match any Spanish province.
  • If the input field is left completely empty.
  • If the name typed is so short that it matches many provinces but the system picks one arbitrarily.

Good to know

  • The tool is case-insensitive, so typing 'b' works the same as 'B'.
  • You can use a short code like 'M' for Madrid or 'V' for Valencia.

Input data

Parameter Required Example Description
province Yes B Type the beginning letters of the province name (e.g. 'B' for Barcelona). This field is required.

Output data

Field Description
result The name of the province found (e.g. 'Barcelona'). If no match is found, this will be empty.