Türkiye e-commerce data is the set of price, stock, seller and delivery fields taken from marketplace and store pages. A single product page shows a list price, a sale price, a basket price and an installment total side by side. If you don't record which one you stored, two tables won't agree. If the on-screen text 1.299,90 TL is converted to a number as is, the amount shrinks a thousandfold. This post covers the field schema, the price layers, parsing the TL format and matching Turkish product names.
The field schema
A good schema keeps every value twice: the raw text shown on the page and the clean value derived from it. The raw text is the record you can go back to when the parser gets it wrong. The clean value is for queries and charts. Also write the collection time and the country the request came from into every record. Without these two fields you can't compare two prices for the same product.
{
"source_url": "https://shop.example/product/12345",
"collected_at": "2026-12-03T10:15:00+03:00",
"exit_country": "TR",
"product_name": "Işıklı Çaydanlık 1,7 L",
"match_key": "isikli caydanlik 1 7 l",
"gtin": "8690000000005",
"seller_name": "Örnek Ev Gereçleri",
"seller_rating": 9.4,
"seller_rating_scale": 10,
"list_price": "1499.90",
"sale_price": "1299.90",
"basket_price": "1199.90",
"price_raw": "1.299,90 TL",
"currency": "TRY",
"vat_included": true,
"installments": [{ "months": 9, "monthly": "152.21", "total": "1369.89" }],
"shipping_fee": "0.00",
"free_shipping_threshold": "400.00",
"stock_status": "InStock",
"stock_raw": "Son 3 ürün",
"delivery_min_days": 1,
"delivery_max_days": 3
}The amounts are stored as strings. A floating-point number (float) can't hold 1299.90 exactly, and totals drift by cents. Store amounts as strings, as Decimal or as an integer number of cents.
Price layers and VAT
A Türkiye product page carries at least three prices, and each one is a separate field. If the struck-through list price, the large sale price and the discounted price shown with a "sepette" (in basket) label go into the same field, the series loses its meaning. Coupons and card campaigns are another layer. Not everyone sees them, so they stay out of the product price.
| Layer | How it looks on the page | Field |
|---|---|---|
| List price | Struck-through amount | list_price |
| Sale price | Amount in large type | sale_price |
| Basket price | Amount labelled "sepette" | basket_price |
| Coupon, card campaign | Separate badge or condition text | campaign_raw |
| Unit price | TL/kg, TL/lt | unit_price |
The sale price shown to consumers includes all taxes. The VAT (KDV) rate depends on the product group, so don't calculate the net price yourself. Record the gross amount on screen and the vat_included field. If a wholesale site says KDV hariç (VAT excluded), set the field to false. Which layer to use when comparing the same product on two sites is covered in our post on comparing prices on Trendyol and Hepsiburada.
Installments are a separate table. A "9 x 152,21 TL" line doesn't replace the cash price. The installment markup is the difference between the installment total and the cash price. In an offer like Peşin fiyatına 3 taksit (3 installments at the cash price) that difference is zero. Keep each installment option as its own row with the number of months, the monthly amount and the total.
Parsing the TL format
In the Turkish number format, the dot is the thousands separator and the comma is the decimal separator. Any function that assumes English conventions misreads this text. In JavaScript, parseFloat("1.299,90") returns 1.299. In Python, float("1.299") returns the same value. Neither raises an error. That silence is the trap.
There is a trap in the other direction too. The price field in the page's JSON-LD data uses the dot as the decimal separator: "1299.90". Run this value through the TL parser and delete the dot, and you get 129990. Pick the parser by source: the function below for on-screen text, plain Decimal for JSON-LD.
import re
import unicodedata
from decimal import Decimal
TL_PATTERN = re.compile(r"(\d{1,3}(?:\.\d{3})+|\d+)(?:,(\d{1,2}))?")
def parse_tl(text):
"""Converts on-screen TL text to Decimal: '1.299,90 TL' -> 1299.90"""
s = unicodedata.normalize("NFKC", text or "")
s = s.replace("TL", "").replace("₺", "").strip()
m = TL_PATTERN.fullmatch(s)
if not m:
return None # unexpected format: don't guess, log it and review
whole = m.group(1).replace(".", "")
cents = (m.group(2) or "0").ljust(2, "0")
return Decimal(f"{whole}.{cents}")
def parse_installment(text):
"""'9 x 152,21 TL' -> (9, Decimal('152.21'))"""
s = unicodedata.normalize("NFKC", text or "")
m = re.search(r"(\d+)\s*[x×]\s*([\d.,]+)", s)
if not m:
return None
return int(m.group(1)), parse_tl(m.group(2))
def installment_markup(cash_price, months, monthly):
diff = months * monthly - cash_price
# the monthly amount is rounded to the cent: one cent of drift per installment is normal
return Decimal("0.00") if abs(diff) <= months * Decimal("0.01") else diffNFKC normalization turns the non-breaking space between the amount and "TL" (U+00A0 or U+202F) into a regular space. fullmatch requires the whole text to be an amount. Texts such as 1.299,90 TL'den başlayan (starting from 1.299,90 TL) or Tükendi (sold out) return None and go to review. Use a parser that rejects, not one that guesses.
The installment line needs its own pattern. The general amount pattern catches the first number in "9 x 152,21 TL", which is 9. In our test, a 9 x 152,21 TL installment plan against a cash price of 1.299,90 TL gave a markup of 69,99 TL. 3 x 433,30 TL equals the cash price, so it returned zero.
Seller, shipping and stock fields
On a marketplace, several sellers offer the same product and the page promotes one of them. If a price record has no seller, a change between two days may come from a different featured seller, not from the product price. Write the seller name, and the seller ID if there is one, into every price row.
Seller ratings use different scales from site to site. One site may rate out of 10, another out of 5. Store the rating together with its scale (seller_rating_scale). If you need to compare, convert to a 0-1 range afterwards.
The free shipping threshold is a rule of the seller or the site, not of the product. A 400 TL ve üzeri kargo bedava (free shipping from 400 TL) text looks at the basket total. So write the threshold into the seller record and the shipping fee paid for that product into the price record. The threshold changes with campaigns, so keep the collection time too.
Stock and delivery time usually arrive as text: Son 3 ürün (last 3 items), Yarın kargoda (ships tomorrow), 3-5 iş günü (3-5 business days). Keep the raw text and derive two numbers next to it: the shortest and the longest number of days. Reading stock status on a schedule and alerting on changes is covered in our post on product stock monitoring.
Turkish letters and product matching
Product matching links the same product on two sites to a single record. The most reliable key is the barcode (GTIN). Most product pages expose it in JSON-LD as the gtin13 field. Without a barcode you build a key from the product name, and this is where Turkish letters cause trouble.
Python's lower() function is language-independent. "IŞIK".lower() returns "işik", where you would expect "ı". "İ".lower() returns two characters: i plus a combining dot above (U+0307). This is Unicode's default rule. The Turkish-specific rule is defined separately and has to be applied by hand. In JavaScript, toLocaleLowerCase("tr") applies it.
The second problem is Unicode normalization. The letter Ç can arrive as a single character (NFC) or as "C" plus a combining cedilla (NFD). The two look the same on screen but don't compare equal. In our test, Çaydanlık took 10 characters in NFD and 9 in NFC.
TR_UPPER = str.maketrans({"I": "ı", "İ": "i"})
ASCII = str.maketrans("çğıöşü", "cgiosu")
def match_key(name):
s = unicodedata.normalize("NFC", name).translate(TR_UPPER).lower()
s = s.translate(ASCII)
s = re.sub(r"(\d)([a-z])", r"\1 \2", s) # "1,7l" -> "1,7 l"
s = re.sub(r"[^a-z0-9]+", " ", s)
return " ".join(s.split())The function first maps I and İ to their Turkish lowercase forms, then lowercases. IŞIKLI Çaydanlık 1,7 L, Işıklı ÇAYDANLIK 1,7L and the NFD spelling all produced the same key: isikli caydanlik 1 7 l. This key is for matching only. When you display the product name, use the original spelling.
When you need a Türkiye IP
You need a Türkiye IP when the page shows different content depending on the visitor's location. Some sites redirect foreign visitors to another store, show the price in another currency or hide delivery information. A record collected from a server abroad may not be the price a customer in Türkiye sees.
Check the official channel first. If you are a seller, the marketplace's seller API returns your own products and orders without opening pages. If you read pages, follow the site's terms and robots.txt and keep requests sparse. For an exit located in Türkiye you can use Residential Proxy. Country and city coverage is on the Türkiye location page.
Use a sticky session to keep the same IP across session-bound steps such as basket and coupon. The duration is set between 1 and 60 minutes. Write the exit_country field into every record. When values differ, it is the first place to look.
Debugging
A broken record is usually recognizable by its symptom:
- The price shows as
1.299. The on-screen text was read withfloatorparseFloat. Use a parser built for the Turkish format, such asparse_tl. - The price is a hundred times too large. The JSON-LD value
"1299.90"was read with its dot deleted. Convert the JSON-LD price directly withDecimal. - The product price comes out as
9. The installment line was read with the general amount pattern. Write a separate pattern for installments. - The same product became two records. The name was lowercased with
lower(), or an NFC/NFD difference remained. Regenerate the match key. - The basket price is empty. The value may load via JavaScript after the page loads. Search the raw HTML; if it isn't there, leave the field empty and add a note.
- The price differs from what your browser shows. Compare
exit_country, the collection time and the session state. Coupon and membership prices may depend on the session.
How we tested
We ran the parsing and matching code on 3 December 2026 with Python 3.13.17. We tried parseFloat and Intl.NumberFormat with Node.js 24.22.2. The output of Intl.NumberFormat("tr-TR", { style: "currency", currency: "TRY" }) was ₺1.299,90. The inputs were hand-written sample texts; we sent no requests to a live site.
The bottom line
Write each price layer to its own field, keep the raw text and hold amounts as Decimal. For matching, put the barcode first and lowercase names with the Turkish rule. Above all, don't run the on-screen text and the JSON-LD value through the same parser. If you are building a regular price monitoring pipeline, see our price monitoring page.
Sources
- The price property, usage notes: schema.org
- SpecialCasing.txt, Turkish and Azeri rules: unicode.org
- String.prototype.toLocaleLowerCase(): developer.mozilla.org
- unicodedata.normalize: docs.python.org
Frequently asked questions
Why is it wrong to store e-commerce prices as floats?
A float holds decimal amounts as approximate binary values. A number like 1299.90 isn't stored exactly, and when you sum thousands of rows the cent differences add up. The bigger risk is in parsing: float("1.299") returns 1.299 without an error. Store amounts as Decimal, as strings or as an integer number of cents. Do the arithmetic in the same type.
Do the basket price and the sale price go in the same field?
No. The basket price is the discounted amount applied when the product is added to the basket, and it isn't always visible. If it shares a field with the sale price, the price series jumps between two layers from day to day. Keep them in separate fields. State in your report which one the analysis uses. Open a third field for coupons and card campaigns as well.
Why can the on-screen price differ from the JSON-LD price?
They are produced at different times for different purposes. JSON-LD is written for search engines and usually shows the sale price. The screen may show a basket discount, a seller change or a session-bound campaign. Store the two values in separate fields. Mark the difference between them as information, not as an error.
Is lower() enough to match Turkish product names?
No. Python's lower() doesn't know the Turkish rule. It turns I into i instead of ı and splits İ into two characters. First bring the text to NFC, map I and İ to their Turkish lowercase forms, then lowercase. Reducing Turkish letters to their ASCII equivalents also helps for the match key.
Are prices collected from outside Türkiye reliable?
Not always. Some sites show foreign visitors a different currency, a different store or incomplete delivery information. If you want the price a customer in Türkiye sees, send the request from an IP located in Türkiye. Write the exit country into every record. That way you can separate values that came from different locations.
Which record does the free shipping threshold go in?
The seller or site record. A "free shipping from 400 TL" rule looks at the basket total, not at a single product. In the product record, write only the shipping fee paid for that product. The threshold can change with campaigns, so keep the collection time with every reading. That way you see which threshold applied on which date.




