How to Check Regional Content in Spain: Language and IGIC

Published:

12 minute read

Acar Diveroli
Written by: Acar Diveroli
Postcode tiles on the floor carry language chips; the 35001 tile is blue, lifted and holds an IGIC chip in place of VAT

A regional content check is a method for measuring which language, price and delivery terms a site shows to visitors in different parts of Spain. In Spain, that difference mostly comes from the language version and the delivery postcode, not the IP address. The language comes from the URL path or the Accept-Language header, while tax depends on the postcode. The trap is the Canary Islands: VAT does not apply there, IGIC does. In this article we cover language versions, tax zones, postcode logic and the test matrix.

Signals that set the region

A Spanish site sorts visitors on three layers: country, language and delivery address. The IP address only resolves the first layer reliably. The language and address layers are read from other signals.

SignalWhat it changesHow to set it in a test
IP addressSpain store or international storeA Spain exit IP
URL pathThe language version of the pagePaths like /ca/, /eu/, /gl/
Accept-LanguageLanguage redirect on the first visitca-ES, eu-ES, gl-ES
Delivery postcodeTax, shipping fee, delivery timeThe code in the cart or delivery box
Account addressCan override all of the aboveStay logged out

Order matters. If you are logged in, the site takes the postcode from the account address. We covered the clean-profile setup in our UK listing visibility article. Here we add region rows on top of that setup.

Co-official languages

Article 3 of the Spanish Constitution makes Castilian Spanish the official language of the State. The other Spanish languages are also official in their own autonomous communities, according to each region's statute. That is why one site can offer the same product in four languages.

  • Catalan (ca): official in Catalonia and the Balearic Islands. In the Valencian Community it is used under the name valencià. Some sites give it a separate ca-ES-valencia tag.
  • Basque (eu): official in the Basque Country and in the Basque-speaking part of Navarre.
  • Galician (gl): official in Galicia.

Sites pick the language version in three ways: URL path, subdomain or cookie. The Accept-Language header often only matters on the first visit, at the root address. The site redirects you to the /ca/ path, and from then on the path decides. So test two things separately: the root address redirect and the content of the language path.

The <html lang> attribute and hreflang tags tell you which language the page is really in. If you see lang="es" on the Catalan path, the translation is missing or the template is in the wrong language.

Tax zones: IGIC and IPSI

Most of Spain applies VAT (IVA). According to the tax agency, the standard rate is 21% and the reduced rates are 10% and 4%. The mainland and the Balearic Islands follow this regime. Two exceptions change price and delivery directly.

Canary Islands. VAT does not apply on the islands; the Canary-specific IGIC takes its place. The standard IGIC rate is 7%. There are also 0%, 3% and higher rates. The Canaries are inside the EU customs territory but outside the VAT area. Goods sent from the mainland to the islands are treated like exports for tax and need customs clearance.

Stores reflect this in different ways. Some show the price without VAT in the cart and add IGIC, others leave the price marked IVA incluido as it is. Some ask for a customs fee, others do not ship to the islands at all. So in a test, check the Canary row's tax label, order total and shipping line one by one.

Ceuta and Melilla. According to the tax agency, the two cities are not part of the EU customs territory and VAT does not apply. A local tax called IPSI takes its place. The practical effect is in shipping: many stores do not ship to these two cities or add an extra condition at checkout. Seeing an empty tax field and a message like No enviamos a esta zona on the Ceuta row is therefore normal.

Canary rates change often, and some products get a temporary zero rate. Do not check the figure against this article's date; confirm it on the official page on the day of the check.

Postcodes and province codes

A Spanish postcode has five digits, and the first two show the province. Province codes run from 01 to 52. Sites mostly derive the shipping zone and tax rule from these two digits.

First two digitsProvinceWhy it matters in a test
28MadridBaseline row for the mainland
08BarcelonaTogether with the Catalan version
07Balearic IslandsSame VAT, different delivery time
35, 38Las Palmas, Santa Cruz de TenerifeIGIC and customs
51, 52Ceuta, MelillaIPSI, delivery exception

The rule is not always exact. A few towns near a provincial border start with the neighbouring province's code. If you know the store's delivery table, pick test codes from that table. If you do not, use the provincial capital's code: 28001 for Madrid, 35001 for Las Palmas.

The Balearic Islands hide a separate trap. Tax is the same as on the mainland, but many stores show a longer delivery time or an extra shipping fee for the islands. Do not treat this row as identical to the Madrid row.

Limits of IP targeting

A Spain exit IP gets the site to put you in its Spain store. The currency becomes the euro and the country restriction goes away. Differences inside the country, however, rarely come from the IP. A Barcelona IP does not open the page in Catalan, and a Las Palmas IP does not add IGIC to the price.

There are two reasons. First, the store calculates tax and shipping from the delivery address. Guessing the address from the IP would lead to wrong invoices. Second, an IP's city label is approximate, and the target site's database may show a neighbouring city. We explained where the city label comes from in How Country and City Targeting Works in a Proxy.

The practical rule: choosing the country is enough for the IP; set the region with the postcode and the language. City selection helps if you measure local ads or city-level search results. Residential Proxy, which exits from home connections, offers country and city selection.

The IP should not change after you enter the postcode. Some sites reset the cart or the delivery choice when the IP changes mid-session. With Sticky Proxy you can keep the same exit for 1-60 minutes. Ten minutes is enough for one region row.

Test matrix

A test matrix is a checklist where each row is a region and each column is a signal. You reopen the same product page on every row and put the results side by side.

RowLanguage and pathPostcodeExpected
Madrides-ES, /es/28001Spanish, price with VAT
Barcelonaca-ES, /ca/08001Catalan page, price with VAT
Valenciaca-ES-valencia46001Catalan or Valencian version
Bilbaoeu-ES, /eu/48001Basque page
Santiagogl-ES, /gl/15701Galician page
Palmaca-ES07001Island delivery time
Las Palmases-ES35001IGIC or price without VAT
Ceutaes-ES51001No shipping or extra condition

You can see the language redirect with a single curl command. The command does not follow the redirect; it only prints the address it would go to:

bash
curl -x http://user:pass@pr.proxynet.io:8000 \
  -s -o /dev/null -w "%{http_code} %{redirect_url}\n" \
  -H "Accept-Language: ca-ES,ca;q=0.9,es;q=0.8" \
  https://yourstore.example/

On a site with a Catalan language path, the output is 302 and an address ending in /ca/. If you get 200, the site does not pick the language from the header.

For the full matrix, the Python script below opens each row. It sends the postcode in the cookie where your site stores the delivery code. Look up the cookie name in your own site's developer tools and write it on the COOKIE line:

python
import re

import requests

PROXY = "http://user:pass@pr.proxynet.io:8000"
proxies = {"http": PROXY, "https": PROXY}
SITE = "https://yourstore.example"
COOKIE = "cp"  # name of the cookie where your site stores the postcode

# (row, path, Accept-Language, postcode)
MATRIX = [
    ("Madrid", "/", "es-ES,es;q=0.9", "28001"),
    ("Barcelona", "/", "ca-ES,ca;q=0.9,es;q=0.8", "08001"),
    ("Bilbao", "/eu/", "eu-ES,eu;q=0.9,es;q=0.8", "48001"),
    ("Las Palmas", "/es/", "es-ES,es;q=0.9", "35001"),
    ("Ceuta", "/es/", "es-ES,es;q=0.9", "51001"),
]


def tax_zone(postcode):
    # The first two digits give the province
    province = postcode[:2]
    if province in ("35", "38"):
        return "Canary / IGIC"
    if province in ("51", "52"):
        return "Ceuta-Melilla / IPSI"
    return "IVA"


for row, path, language, code in MATRIX:
    r = requests.get(SITE + path, headers={"Accept-Language": language},
                     cookies={COOKIE: code}, proxies=proxies, timeout=20)
    lang = re.search(r'<html[^>]*\blang="([^"]+)"', r.text)
    tax = re.search(r"IVA|IGIC|IPSI", r.text)
    print(f"{row:<11} {r.url.removeprefix(SITE):<5} "
          f"lang={lang.group(1) if lang else '-':<3} "
          f"expected={tax_zone(code):<20} "
          f"on_page={tax.group(0) if tax else 'none'}")

In our local test setup the output was:

text
Madrid      /es/  lang=es  expected=IVA                  on_page=IVA
Barcelona   /ca/  lang=ca  expected=IVA                  on_page=IVA
Bilbao      /eu/  lang=eu  expected=IVA                  on_page=IVA
Las Palmas  /es/  lang=es  expected=Canary / IGIC        on_page=IGIC
Ceuta       /es/  lang=es  expected=Ceuta-Melilla / IPSI on_page=none

A row where expected and on_page do not match is a row to investigate. The none on the Ceuta row is not an error: the page shows a no-delivery message instead of a tax. The script is only for occasional checks of your own site or sites you have permission to test. On other sites, follow the site's terms and its robots.txt file.

Troubleshooting

The symptom usually points to the wrong signal.

SymptomLikely causeWhat to do
lang="es" on the Catalan pathMissing translation or faulty templateCheck the page template
Root always redirects to /es/Site does not read Accept-LanguageOpen the language path directly
IVA incluido in Las PalmasTax rule not tied to postcodeCheck the cart total
Postcode drops when the page changesIP changed mid-sessionUse a sticky session
Price not in eurosIP outside SpainVerify the exit country
Shipping option shown in CeutaDelivery exception not setCheck the delivery table

Seeing IVA incluido on the Las Palmas row is not always an error. Some stores only show the tax difference at checkout. Base the decision on the cart total, not the product page.

How we tested

We tested on 3 December 2026 on Windows 11 with Python 3.13.17, requests 2.34.2 and curl 8.23.0. We set up a mock Spanish store locally. At the root address, the store redirected to /ca/, /eu/, /gl/ or /es/ based on the Accept-Language header and wrote the price based on the postcode in the cp cookie. In front of it we put a local HTTP proxy that required a password and logged every request.

The proxy log showed that requests carried the cookie and the Accept-Language header after the 302 redirect as well. With the Catalan header, the curl command printed 302 and the /ca/ address. We defined the store's behaviour ourselves. We did not test on a real Spanish site, and results vary with each site's own setup.

The bottom line

For a regional check in Spain, a country-level IP is enough. The region comes from the language path, Accept-Language and the delivery postcode. Above all, add the Canary and Ceuta rows to the matrix: while the mainland rows come out clean, the costliest invoice and shipping errors show up in these two rows. City coverage for Spain exits is on our Spain location page.

Sources

Frequently asked questions

Does a Barcelona IP open the page in Catalan?

No. Sites mostly pick the language from the URL path, a cookie or the Accept-Language header, not from the IP. Even with a Barcelona exit IP you may get the Spanish page. To see the Catalan version, start the header with ca-ES or open a language path like /ca/ directly. Confirm the page language from the <html lang> attribute.

Why do prices look different in the Canary Islands?

Because of tax. VAT does not apply on the islands; IGIC, with a standard rate of 7%, takes its place. Goods coming from the mainland also need customs clearance. A store may show this difference on the product page, in the cart or at checkout. Some stores do not ship to the islands at all. Run the check on the cart total, not the product page.

Why do most stores not ship to Ceuta and Melilla?

Because of customs. The two cities are outside the EU customs territory and apply IPSI instead of VAT. Every shipment needs customs clearance, which raises cost and delivery time. Many stores therefore exclude both cities from delivery. The Ceuta row in the test matrix is there to confirm this message appears in the right language and at the right step.

How do you tell the province from a postcode?

From the first two digits. A Spanish postcode has five digits, and the first two are the province code. Examples: 28 Madrid, 08 Barcelona, 35 Las Palmas, 38 Santa Cruz de Tenerife, 51 Ceuta, 52 Melilla. A few towns near a border may start with the neighbouring province's code. For testing, the provincial capital's code is the safest choice.

Which wins, the URL path or Accept-Language?

Usually the URL path. The Accept-Language header is generally read only at the root address, to pick a language on the first visit. Once the visitor enters a language path like /ca/, the site shows that path's language. So run two tests separately: the root address redirect and the content of each language path.

Is tax different in the Balearic Islands?

No. The Balearic Islands follow the same VAT regime as the mainland, and prices show IVA. The difference is in shipping: many stores show a longer delivery time or an extra shipping fee for the islands. Use a postcode starting with 07 in the matrix and compare its delivery time with the Madrid row.

Ask ChatGPTAsk Claude