How to Collect E-Commerce Data in France: Search and Prices

Published:

13 minute read

Enver Kaya
Written by: Enver Kaya
Accented letter keys scattered on a grid, with one blue, unaccented e key lifted off the ground

Collecting French e-commerce data means reading product, price and discount fields from French shops and marketplaces on a schedule and turning them into comparable records. Two parts of the job are specific to French: search terms change with accents, plural endings and gender, and prices use a space as the thousands separator. The trap is in that space. Two numbers sitting next to each other in the text can read as one price. This post covers official channels, French search terms, the price format, struck-through prices and mix-ups with neighbouring French-speaking markets.

Official channels first

Some of the large marketplaces in France offer their data through an official API. Check these channels before you read pages. In an API response the price arrives as a number. Most of the format problems in this post never appear there.

For Amazon.fr, product data comes through the affiliate program. Amazon retired the old Product Advertising API 5 and replaced it with the Creators API. According to its documentation, access requires an affiliate account on the target marketplace and at least 10 qualified sales in the last 30 days. France is on the documentation's marketplace list.

If you sell on Cdiscount, Octopia's seller API provides product, offer, stock and order data. This API covers your own listings, not competitor listings. If you track your own shop, a reseller or a business partner, start here.

On pages the API does not cover, two rules apply. Follow the site's terms and its robots.txt file. Send requests at a low rate and only as many as you need.

French search terms

In French, the same product is searched for in several spellings. The differences come from six places: accents, plural endings, adjective gender, hyphens, ligatures and apostrophes. The site's own search maps these forms with its own rules. Your database maps none of them.

DifferenceExampleNote
Accenttéléviseur / televiseurUsers may skip the accent
Pluralchaussure / chaussures, jeu / jeuxThe ending is -s or -x
Gendernoir / noire / noiresThe adjective agrees with the noun
Hyphenlave-linge / lave lingeBoth spellings are common
Ligaturecœur / coeurœ is a single character
Apostrophel’ordinateur / l'ordinateurCurly and straight are two different characters

Build the search list the way a French user would type it. The site's search suggestions and category names are a good starting point. Try the accented and unaccented, singular and plural forms of each term separately. If the result count changes noticeably, keep both forms on the list.

An accent-free matching key

For matching, generate an accent-free, lowercase key from every text. Store the original text separately for display. Python's unicodedata module does most of the work, but in French you have to expand two characters by hand.

python
import unicodedata


def make_key(text):
    """Builds an accent-free, lowercase key for search and matching."""
    s = text.replace("’", "'")  # curly apostrophe
    for ligature, plain in (("œ", "oe"), ("Œ", "Oe"), ("æ", "ae"), ("Æ", "Ae")):
        s = s.replace(ligature, plain)
    s = unicodedata.normalize("NFKD", s)
    s = "".join(c for c in s if not unicodedata.combining(c))
    s = s.replace("-", " ")
    return " ".join(s.casefold().split())

NFKD splits an accented letter into the base letter and a combining mark. The combining check drops those marks. That turns é into e and ç into c.

InputKeyMatched its pair
Écran 27 poucesecran 27 pouces✓
Crème brûléecreme brulee✓
Cœurcoeur✓
l’ordinateurl'ordinateur✓
Lave-lingelave linge✓
chaussure noirechaussure noire✗ (chaussures noires)

The trap is the letter œ. Unicode defines no decomposition for it. In our test, unicodedata.decomposition("œ") returned an empty string, and cœur with NFKD alone did not match coeur. That is why the function expands œ and æ by hand first.

The last row shows the limit. The key matches accents and spelling, not plural and gender endings. Do not try to solve this with rules: the plural of cheval is chevaux. For product matching, use the EAN or model code if there is one. If not, keep plural and feminine forms as a list you match by hand.

The French price format

In French, the thousands separator is a space, the decimal separator is a comma and the euro sign follows the number. In Node 24's Intl.NumberFormat("fr-FR") output, the thousands separator was a narrow no-break space (U+202F) and the space before the euro sign was a no-break space (U+00A0). The German format uses dots. We covered German parsing and the schema.org fallback in How to Monitor Prices in Germany. In France, the difference is the separator.

Some French sites also write the price as 12€99. Here the euro sign takes the place of the decimal comma. The function below reads both formats. It raises an error if the currency is not the euro or the format is not recognised.

python
import re
from decimal import Decimal

PRICE = re.compile(
    r"(?P<whole>\d{1,3}(?:[   ]\d{3})+|\d+)"
    r"(?:(?P<sep>,|\s*€\s*)(?P<cents>\d{2}))?"
    r"\s*(?P<unit>€|EUR|\$|CHF)?"
)


def price_fr(text):
    """'1 299,00 €' or '12€99' -> Decimal; raises an error if not euro."""
    m = PRICE.search(text)
    if not m:
        raise ValueError(f"No price: {text!r}")
    unit = m["unit"] or ("€" if m["sep"] and "€" in m["sep"] else None)
    if unit not in ("€", "EUR"):
        raise ValueError(f"Unrecognized format: {text!r}")
    whole = re.sub(r"\D", "", m["whole"])
    return Decimal(f"{whole}.{m['cents'] or '00'}")

Selected results from the ten inputs we tested:

InputResult
1 299,00 € (with U+202F)1299.00
1299,00 EUR1299.00
12€9912.99
1 299,00 $ (fr-CA)error ✓
1'299.00 CHF (fr-CH)error ✓
1.299,00 € (German)error ✓
Lot de 3 129,00 €3129.00 ✗

The last row is the real lesson. A space is both a thousands separator and a word gap. Text that says "pack of 3, 129 euros" became 3129.00 without an error. Read the price only from the price element, not from the page's plain text. Do not run the function over the whole page.

Struck-through prices and discounts

On a French product page, the price box often carries four pieces of information: the old price, the discount rate, the current price and an eco-fee included in the price. The old price is struck through and usually sits in a del or s tag in the HTML. A label such as Prix de référence may stand next to it.

Shown on the pageMeaningRecord field
1 499,00 € (struck through)Price before the discountold_price
-13 %Discount ratediscount_pct
1 299,00 €Current priceprice
dont éco-participation : 10,00 €Recycling fee included in the priceeco_fee
Livraison offerteFree deliveryshipping_note

Two details trip up parsers. A no-break space comes before the percent sign: when Node produced -20 % in the fr-FR format, the character in between was U+00A0. In Python, \s matches that character; an expression looking for a plain space does not. The word dont means "of which". The fee is not added to the price; it is already inside it.

The script below requests the page with a French language header and reads each field from its own element. price_fr is the function above. Change the selectors to match the target page's structure.

python
import json
import re
from decimal import Decimal

import requests
from bs4 import BeautifulSoup

PROXY = "http://user:pass@pr.proxynet.io:8000"
URL = "https://boutique.example/produit/lave-linge-9kg"

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

r = s.get(URL, timeout=30)
r.raise_for_status()
soup = BeautifulSoup(r.text, "html.parser")


def text_of(selector):
    el = soup.select_one(selector)
    return el.get_text(" ", strip=True) if el else None


record = {"price": price_fr(text_of(".prix-actuel"))}
if old := text_of(".prix del, .prix s"):
    record["old_price"] = price_fr(old)
if remise := re.search(r"-\s*(\d+)\s*%", text_of(".remise") or ""):
    record["discount_pct"] = int(remise[1])
if eco := text_of(".eco"):
    record["eco_fee"] = price_fr(eco)

for block in soup.find_all("script", type="application/ld+json"):
    data = json.loads(block.string or "{}")
    for item in data if isinstance(data, list) else [data]:
        if item.get("@type") == "Product":
            offer = item["offers"]
            record["jsonld"] = (Decimal(offer["price"]), offer["priceCurrency"])

print(record)

On our sample page, the output was:

text
{'price': Decimal('1299.00'), 'old_price': Decimal('1499.00'), 'discount_pct': 13, 'eco_fee': Decimal('10.00'), 'jsonld': (Decimal('1299.00'), 'EUR')}

If the visible price and the JSON-LD price differ, flag the record. Also compute the discount rate yourself from the old and current prices. The rate on the page may be rounded.

Belgium, Switzerland and Canada

French is spoken in four large markets, and the same retail chain may run separate versions for each. Because the language is the same, the wrong country's page is hard to spot at first glance. Node 24.22.2 (ICU 78.3) formatted the same amount in four locales like this:

LocaleFormatDifference
fr-FR1 299,00 €Thousands separator U+202F
fr-BE1 299,00 €Same as France
fr-CH1'299.00 CHFApostrophe and dot, franc
fr-CA1 299,00 $Thousands separator U+00A0, dollar

The currency gives away Swiss and Canadian prices, and the function above rejects both. A Belgian price, however, cannot be told apart by format or currency. You recognise the Belgian version only by the domain, the delivery country or the country selector on the page. Write the final URL's domain and the delivery country into every record.

The words change too. In Quebec, a mobile phone is often searched for as cellulaire; in France as portable or smartphone. A term list built for Canada can return few results in France. Keep a separate list per country.

A French IP and the language header

Accept-Language: fr-FR only states your preferred language; it does not choose the country. The shop usually sets the country version, currency and delivery eligibility from the IP address. A request from Türkiye may get a French page and still be routed to another country version or see a delivery warning.

Write fr-FR in the header, not fr. A request that says only fr gets the site's default French version. That version may be built for Belgium or Switzerland.

Residential Proxy, which carries home-connection IPs, fetches the page in the version a visitor in France sees. We explained how the location is chosen at the gateway in How Does Country and City Targeting Work in a Proxy?.

Country and city options are on the France proxy page. On the first request, verify the exit IP's country and add it to the record.

Debugging

Most errors on French pages show a few recognisable symptoms:

  • An extra digit at the start of the price. The function added a neighbouring number in the text to the price. Read only the price element.
  • The price is not read. The separator is U+202F or U+00A0. Check that your expression recognises these characters.
  • A discount on a product without one. The selector caught the struck-through price. Read the del and s elements separately.
  • The same product as two records. An accented name or the letter œ was not matched. Generate the key with the same function.
  • The currency is CHF or dollars. The request landed on the Swiss or Canadian version. Check the exit IP and the final URL.
  • 407 Proxy Authentication Required. The username or password is wrong.

curl is enough for a quick check:

bash
curl -x http://user:pass@pr.proxynet.io:8000 \
  -H "Accept-Language: fr-FR,fr;q=0.9" \
  -s https://boutique.example/produit/lave-linge-9kg \
  | grep -o 'dont éco-participation[^<]*'

If the command prints the fee line, the page comes from the French shop. If the output is empty, follow the redirect with -L and -i.

How we tested

We ran the tests on 3 December 2026 with Python 3.13.17, requests 2.34.2, Beautiful Soup 4.15.0, Node 24.22.2 (ICU 78.3) and curl 8.23.0. We did not use a real shop. We set up a small local server that served an HTML page laid out like a French product page. In front of it we put a Python forward proxy that asked for a password and logged every request. In the examples we replaced the proxy address and the target with these local addresses.

We tested the key function with eight pairs: seven matched, the singular and plural pair did not. The price function read six euro formats correctly, rejected three foreign formats and misread the text with an adjacent number. The proxy log showed the fr-FR language header and the authentication header. A wrong password returned 407. The target was plain HTTP; we did not test the HTTPS tunnel in this setup.

The bottom line

Check the official API first. Match search terms with an accent-free key, read the price only from the price element and write the old price, discount and eco-fee into separate fields. Above all, verify the currency and the delivery country, because a Belgian price looks the same as a French one. For ongoing tracking, see our price monitoring solution.

Sources

Frequently asked questions

What is the thousands separator in a French price?

A space. The French format is 1 299,00 €: thousands are separated by a space, cents by a comma, and the euro sign comes last. The space is often not a regular space but a narrow no-break space (U+202F). Your regular expression should also recognise this character and U+00A0. Do not expect the German dot here, and store the result as a Decimal.

Do I need to type accents when searching in French?

It depends on the site. Search for the term with and without accents and compare the result counts. In your own data, keep two copies: the original text for display and an accent-free key for matching. When you generate the key, expand œ and æ by hand, because Unicode normalisation does not split these two letters.

What does a price written as 12€99 mean?

It means twelve euros and ninety-nine cents. Some French sites put the euro sign in place of the decimal comma. It is the same amount as 12,99 €. Your parser needs to know the sign can also sit inside the number. Otherwise it records the amount as 12 or misses it entirely. Where possible, compare the price with the price field in the JSON-LD.

Is the éco-participation amount included in the price?

Yes. In the phrase dont éco-participation, the word dont means "of which". The amount shown is the recycling fee already included in the price and is not added on top. It is common on household appliances and furniture. Store it as a separate field and do not subtract it from the price, because the amount the customer pays is the price itself.

Does an Accept-Language: fr-FR header replace a French IP?

No. The language header only states your preferred language. The shop usually picks the country version, currency and delivery eligibility from the IP address. A request from Türkiye may get a French page and still be routed to another country version. To see the price a customer in France sees, use the header together with a French IP.

How do I tell a Belgian price from a French one?

Not by format. Both countries use the euro, and the fr-BE format is the same as fr-FR. The domain, the delivery country and the country selector on the page make the distinction. Write the final URL's domain, the exit IP's country and the delivery country into every record. Swiss and Canadian prices, on the other hand, are given away by the currency.

Ask ChatGPTAsk Claude