How to Collect Data with a Dutch IP: Language, Euros and VAT

Published:

12 minute read

Enver Kaya
Written by: Enver Kaya
An nl-NL language pill over faint page lines links to two keys: a dot for thousands, a blue comma for decimals

A local data setup for the Netherlands means configuring the client's language header, exit IP, postcode and cookie session to match a visitor in the Netherlands. Dutch sites put the euro sign before the amount and use a comma for decimals. The same shop often sells to Belgium as well. The trap is silent: €1,299.50 from an English interface, read with a Dutch assumption, becomes 1.29950 without an error. This post covers the language header, the euro and VAT format, the postcode, the Belgian split and the cookie page that arrives on the first request.

Language header and page language

A site usually picks the page language from three signals: the country of the IP address, a language cookie it set earlier and the Accept-Language header. The header is a hint. The site uses it only when it has nothing else. So the header has to be right, but it is not enough.

For the Netherlands, the header is nl-NL,nl;q=0.9. nl-NL means Dutch as used in the Netherlands, nl means the language itself. The q value is the weight of the second choice. Do not add en to the header. Many Dutch sites have an English version, and an en in the header can send you there.

The page itself tells you which version arrived. Write the HTML lang attribute (<html lang="nl-NL">) to every record. The price parser should work from this value too. The next section shows why.

The Dutch euro format

On a Dutch page the euro sign stands before the amount, followed by a space: € 1.299,00. The thousands separator is a dot, the decimal separator a comma. In the German format the sign comes last (1.299,00 €). We covered the German format in detail in How to Monitor Prices in Germany. Here we look only at what is specific to the Netherlands.

Three more formats show up on Dutch pages. A whole amount is written € 12,-, or with a long dash instead of the hyphen. A discount line puts the minus sign after the euro sign: € -5,00. An English interface uses English separators and puts the minus first: €1,299.50, -€5.00. The built-in Intl.NumberFormat output of Node 24 confirms the difference:

Language tag1,299.50 euros-5 euros
nl-NL€ 1.299,50€ -5,00
nl-BE€ 1.299,50€ -5,00
en-NL€1,299.50-€5.00
fr-BE1 299,50 €-5,00 €

Give the parser the page language instead of letting it guess the separator. The function below turns the amount into a Decimal. It also reads the postcode and the VAT note.

python
import re
from decimal import Decimal

BEDRAG = re.compile(r"-?\d{1,3}(?:[.,\s]\d{3})*(?:[.,](?:\d{2}|-))?|-?\d+")
POSTCODE = re.compile(r"\b([1-9]\d{3})\s?([A-Za-z]{2})\b")

def prijs(text, lang="nl-NL"):
    """Turns a displayed euro amount into a Decimal. lang: the page language."""
    s = re.sub(r"[  ]", " ", text)
    s = re.sub(r",[-–—]", ",00", s)   # "€ 12,-" -> "€ 12,00"
    s = s.replace("€", "").replace("EUR", "")
    m = BEDRAG.search(s.strip())
    if not m:
        raise ValueError(f"No amount: {text!r}")
    number = m.group(0).replace(" ", "")
    if lang.lower().startswith("en"):          # en-NL: "€1,299.50"
        number = number.replace(",", "")
    else:                                      # nl-NL, nl-BE: "€ 1.299,50"
        number = number.replace(".", "").replace(",", ".")
    return Decimal(number)

def postcode(text):
    """'1234ab' -> '1234 AB'. A four-digit Belgian code alone returns None."""
    m = POSTCODE.search(text)
    if not m or m.group(2).upper() in ("SA", "SD", "SS"):
        return None
    return f"{m.group(1)} {m.group(2).upper()}"

def btw(text):
    t = text.lower()
    if "btw" not in t:
        return None
    if "incl" in t:
        return True
    if "excl" in t:
        return False
    return None

In our test the function read eleven of twelve inputs correctly:

InputlangResult
€ 1.299,00 (with a non-breaking space)nl-NL1299.00
€ 12,-nl-NL12.00
€ -5,00nl-NL-5.00
1 299,00 € (with a narrow space)fr-BE1299.00
€1,299.50en-NL1299.50
-€5.00en-NL-5.00
€1,299.50nl-NL1.29950 ✗

The last row is the real trap. Given the wrong language, the function raised no error and returned a number a thousand times too small. Use the displayed text only as a fallback. If the page carries schema.org Offer data, its price field is in machine format ("1299.00"). Compare the two values and flag any difference.

VAT and price notes

In the Netherlands VAT is called btw, and sites selling to consumers usually show prices including VAT. The price carries an incl. btw note. Sites selling to resellers may show a net amount with an excl. btw note. Read this note from the text and write it to its own field.

According to the Dutch tax authority, the standard rate is 21 percent and the reduced rate 9 percent. Some transactions, such as deliveries abroad, have a zero rate. This matters when you compare categories. Two products in the same basket may have VAT-inclusive prices calculated at different rates.

If you keep dated series, record rate changes too. Hotel accommodation (logies), for example, has been taxed at 21 percent since 1 January 2026. A jump in a hotel price series spanning that date may come from tax rather than pricing policy.

Shown on the pageMeaningField in the record
incl. btwVAT included in the pricevat_included = true
excl. btwVAT added on topvat_included = false
verzendkostenShipping costshipping_note
gratis verzending vanafFree shipping above a set amountfree_shipping_threshold
van … voorPrevious price and sale priceprevious_price, price

The trap is in the last row. In a phrase like van € 49,99 voor € 39,99 two amounts stand side by side, and a loose selector takes the first. Read the sale price from after voor.

Postcode and delivery area

A Dutch postcode has four digits and two letters: 1052 MA. According to the UPU addressing document, a space separates the digits from the letters and the letters are upper case. Sites often accept the code without the space and in lower case as well. Use one format in your records.

Two rules are enough for validation. The first digit is never zero. The letter pairs SA, SD and SS are not used. The open-source python-stdnum library validates postcodes with the same two rules. The postcode() function above runs the same checks and turns 1234ab into 1234 AB.

The postcode usually decides delivery time, stock status and shipping options. Many Dutch sites also ask for the house number (huisnummer) for the delivery check. The site writes the choice to a cookie or a server session. Use the same code throughout a measurement series and add it to the record. If delivery details change, keep the two codes as separate series.

Mixing up Belgium

Dutch is also spoken in Flanders, the Flemish region of Belgium, where the language tag is nl-BE. Many shops sell to both countries from the same domain. They pick the country from the IP address, the language cookie or the delivery address. A request that is seen as coming from the wrong country records the Belgian price instead of the Dutch one.

The currency format does not make the split. In our Intl.NumberFormat test, nl-NL and nl-BE gave the same output. Use these signals instead:

  • Language tag. If the page's lang value is nl-BE, you got the Belgian version.
  • Postcode. A Belgian code has only four digits (1000) and no letter pair. The postcode() function rejects such a code.
  • VAT rate. Belgium's rates are 21, 12 and 6 percent. If you see 6 or 12 percent on the page, you are most likely looking at a Belgian price.
  • Delivery note. If the delivery text mentions Belgium, the shop counts you as being in Belgium.

Send the request from an IP that exits in the Netherlands. The location options in the country are on the Netherlands proxy page.

A Residential Proxy, which carries home connection IPs, opens the page from a home connection in the Netherlands. The shop then picks the country from that address.

Some Dutch sites return a separate cookie consent page instead of content on the first visit. The request is usually sent there with a 302. Requests follows the redirect on its own and the result is 200. Your code sees no error, but the HTML it holds is not the product page.

In our test the first check fell into this trap. The consent page URL carried the return path in a query parameter (ret=/product/xy-3000). A check that looked for product in the URL took it for the product page. The right check looks for product data on the page:

python
import json
import re

import requests

PROXY = "http://user:pass@pr.proxynet.io:8000"
URL = "https://shop.example/product/xy-3000"

s = requests.Session()
s.proxies = {"http": PROXY, "https": PROXY}
s.headers["Accept-Language"] = "nl-NL,nl;q=0.9"

r = s.get(URL, timeout=30)
r.raise_for_status()

m = re.search(r'<html lang="([^"]+)"', r.text)
lang = m.group(1) if m else ""
product = None
for block in re.findall(
    r'<script type="application/ld\+json">(.*?)</script>', r.text, re.S
):
    data = json.loads(block)
    for item in data if isinstance(data, list) else [data]:
        if item.get("@type") == "Product":
            product = item

if product is None:
    chain = [h.status_code for h in r.history]
    print("No product data:", chain, r.url)
else:
    offer = product["offers"]
    print(lang, offer["price"], offer["priceCurrency"])

When the consent page arrives, the output is No product data: [302] …/cookie-toestemming?ret=…. On the product page it prints nl-NL 1299.00 EUR. Do not count the consent page as a price record: skip that URL and flag it. If you track with a browser, use the banner option that allows only necessary cookies (usually Alleen noodzakelijke or Weigeren). Keep the same session for the whole measurement series. Do not send hundreds of requests a minute to a site, and follow its terms and robots.txt rules.

Troubleshooting

Most data errors on Dutch pages show one of a few symptoms:

  • Price a thousand times too small. The page came in English and the parser expected the Dutch format. Check the lang value in the record.
  • Page arrives in English. The Accept-Language header contains en, or a language cookie is left over.
  • Price differs from the Dutch one. The page is the nl-BE version, or the exit IP is in Belgium.
  • Price field empty, status code 200. The request was redirected to the consent page. Check the r.history list.
  • Discount on a product with no discount. The selector took the previous price after van.
  • 407 Proxy Authentication Required. The username or password is wrong.

For a quick check, curl is enough:

bash
curl -x http://user:pass@pr.proxynet.io:8000 \
  -H "Accept-Language: nl-NL,nl;q=0.9" \
  -s -i https://shop.example/product/xy-3000 | head -5

If you see 302 on the first line and a consent URL in the Location header, the problem is the cookie page.

How we tested

We ran the tests on 3 December 2026 with Python 3.13.17, requests 2.34.2, Node 24.22.2 and curl 8.23.0. We did not use a real shop. Locally, we set up a small HTTP server that serves HTML laid out like a Dutch product page. The server redirected the first request without a consent cookie to a consent page with a 302. For an nl-BE header it returned a page with lang="nl-BE". In front of it we put a Node forward proxy that required a password and logged every request. In the examples we replaced these local addresses.

We took the currency format table from Node's Intl.NumberFormat output. The prijs() function read eleven of twelve inputs correctly; the €1,299.50 input given the wrong language became 1.29950. We tried postcode() with seven inputs: it rejected the code starting with zero, the code with SS and the Belgian-format code. A wrong password returned 407. The target was plain HTTP; we did not test the HTTPS tunnel in this setup.

The bottom line

Build the request with an nl-NL language header, a Dutch IP and a fixed postcode. Write the page language to every record and parse the amount by that language. To keep a session with an entered postcode on the same IP, a Sticky Proxy holds the same exit for 1-60 minutes. Above all, keep the consent page and the Belgian version out of your price records.

Sources

Frequently asked questions

What should Accept-Language be for Dutch sites?

nl-NL,nl;q=0.9 is enough. The first value means Dutch as used in the Netherlands, the second the language itself. Do not add en, because many Dutch sites have an English version and may send you there. The header alone is not enough. The site also picks the language from the IP country and a language cookie. Read the version you got from the page's lang attribute and write it to the record.

How are euro prices written in the Netherlands?

Euro sign first, then a space: € 1.299,00. The thousands separator is a dot, the decimal separator a comma. A whole amount can also be written € 12,-. On a discount line the minus sign comes after the euro sign. An English interface uses €1,299.50 instead. So always give the parser the page language.

Do Dutch prices include VAT?

On sites selling to consumers, usually yes. The price shows an incl. btw note. Sites selling to resellers may show a net amount with an excl. btw note. According to the Dutch tax authority, the standard rate is 21 percent and the reduced rate 9 percent. Read the note from the text, write it to its own field and never compare two different kinds of price in the same column.

How do you validate a Dutch postcode?

By four digits and two letters. The first digit is never zero, and the letter pairs SA, SD and SS are not used. In your records, put a space between the digits and the letters and write the letters in upper case: 1052 MA. A Belgian postcode has only four digits. If you see a code without a letter pair, the page was most likely prepared for delivery to Belgium.

How do you tell Dutch and Belgian prices apart?

By the language tag, the postcode and the VAT rate. The currency format does not help, because nl-NL and nl-BE use the same format. If the page carries lang="nl-BE", the postcode has no letters, or the page shows 6 or 12 percent VAT, you are most likely looking at a Belgian price. Send the request with a Dutch IP and check these three signals on every record.

Silently. Some sites redirect the first request to a consent page. Requests follows the redirect and the result is 200, but the HTML it gets is not the product page. A URL check can mislead too, because the consent URL can carry the product path in a query parameter. Look for product data on the page and never count the consent page as a price record.

Ask ChatGPTAsk Claude