Pages by country
Currency and tax display: one pricing URL, US and EU reads
See why one pricing URL can show a dollar price without tax in the US and a tax-inclusive price in the EU, and how to pass price, currency and tax basis to a model.
By Curtis Mccann, Live Web Data team · Published
This article was drafted with AI assistance from the sources listed below and edited and published by the Live Web Data team. Disclosure: the Live Web Data API, which this article mentions, is this site's own product.
- The country the page was read from
- The amount as written on the page
- The ISO 4217 currency code, such as USD
- Whether tax is included or added at checkout
- The fetch time
A user in Germany asks your assistant what a product costs. The assistant reads the public product page, quotes a dollar figure without tax, and is wrong twice: wrong currency and wrong tax basis. The page was not wrong. It was read from the US, and the US version of that URL shows a different number than the German version does.
The country guide lists currency and tax display among the things that change with the read country. This post takes that one case apart: what changes between a US read and an EU read of one pricing URL, and what to store so the model quotes the right number.
Tax included, or added at checkout
The biggest difference is often not the currency but the tax. The EU's Your Europe portal states the consumer rule: shoppers have to be "clearly informed about the total price, including all taxes and additional charges." A US store page, by contrast, can show a price before tax and add the tax at checkout.
Store platforms build this into their pages. Shopify documents a setting called dynamic tax-inclusive pricing that includes or excludes taxes in product prices automatically, based on the customer's region. Its help page works through one example, and it is worth reading closely because the URL does not change:
| Read from | Price shown on the store | What happens at checkout |
|---|---|---|
| The store's home region (10% tax, tax-inclusive) | $100 ($90.91 product, $9.09 tax) | $100 |
| California, USA | $90.91 | California taxes are added |
| A region where the store collects no tax | $90.91 | $90.91 |
| United Kingdom (20% VAT) | $109.09 | Tax already in the price |
The UK figure is the $90.91 product portion with 20% added: 90.91 × 1.2 = 109.09. Shopify lists the countries and regions where it includes local tax in storefront prices, once the feature is on and tax collection there is set up. Austria, France, Germany, Japan, the United Kingdom and many more are on that list. The United States is not, and every country not on the list shows prices without tax.
So a single product page can show $90.91 to a reader in California and $109.09 to a reader in the UK, and both are correct for their market. An LLM that sees one of them and answers a user in the other market is off by the whole tax amount.
The page you fetch may not match what a shopper sees
The same help page names a limit that matters for any fetcher. Prices display correctly at checkout, but product pages and the cart may not show them correctly unless the store sells in local currencies with Shopify Payments, or the customer has cookies enabled and has visited the store from an eligible region before. A fresh fetch carries no cookies from an earlier visit. On such a store, your read of the product page can differ from what a returning shopper sees, even from the right country.
Two more limits from that page: shipping rates are not adjusted, and fixed prices set per region are not adjusted either. Treat a product-page price as the shelf price, not as the amount a user will pay.
The same amount, written differently
Even when the amount is right, the way it is written changes by locale. MDN's Intl.NumberFormat examples format 123456.789 as 123.456,79 € for de-DE with euros, and as ¥123,457 for ja-JP with yen, because the yen has no minor unit. In the German format the period groups thousands and the comma marks the decimals, the reverse of US usage.
That breaks naive parsing:
amount = "123.456,79"
try:
print(float(amount))
except ValueError as err:
print("not a US-style number:", err)
Where the page offers a machine-readable price, prefer it. Schema.org's price property asks for a period (U+002E) as the decimal point and advises against using separators for readability, and priceCurrency takes an ISO 4217 code such as USD. Schema.org also advises against ambiguous symbols like $ in the price value.
What to store and pass to the model
Decide once, then apply it to every price you read:
- Read from the user's market. If the question is "what will I pay," the read country is the user's country. The default country only covers the case where you do not know it.
- Store five fields per price. The read country, the amount as written, the ISO 4217 currency code, whether tax is included or added at checkout, and the fetch time.
- Label the source in the prompt. Put the country and tax basis next to the content, the same way you pass the URL and fetch time:
<source url="https://example.com/pricing" country="de" currency="EUR" tax="included" fetched="2026-11-25T09:00:00Z">
...page markdown...
</source>
Quote prices only in the currency and tax basis shown on the source. If the user's country differs from the source country, say so instead of converting.
- Do not convert in the model. If a user asks about a market you did not read, read that market's page. Currency conversion and tax math belong in code, if anywhere.
- Compare markets on purpose. For a US-versus-EU question, read the page from both countries and label each source. The post on locale-adaptive pages explains why one read country only ever shows one version.
Public pages, read by the rules
A pricing page is public, but robots.txt and the site's terms of service still apply to every read, and logins or paywalls are out of scope. Price display rules differ by country, and nothing here is legal advice.
On Live Web Data API, countryCode sets the country the page is fetched from, with us as the default. Every request fetches the page live; there is no cache. To see how your own pricing page reads in two markets, open it with two country codes in the playground and compare the prices.
Frequently asked questions
Why does the same product page show a different price in the US and in the EU?
Some stores add or remove tax by the shopper's region. Shopify's dynamic tax-inclusive pricing, for example, can include local tax in storefront prices in countries such as Germany or the United Kingdom, while a shopper in California sees the price without tax and California taxes are added at checkout.
Are EU prices shown with VAT included?
The EU's Your Europe portal says consumers have to be clearly informed about the total price, including all taxes and additional charges. Store platforms such as Shopify include local tax in storefront prices for EU countries when tax collection there is set up and dynamic tax-inclusive pricing is on. This is general information, not legal advice.
How do I stop an LLM from quoting the wrong currency?
Read the page from the user's country, store the ISO 4217 currency code and the tax basis next to the amount, and tell the model to state prices only in the currency and tax basis shown for that country.
Can I parse a price string from a fetched page with float()?
Not safely. In German formatting the period groups thousands and the comma marks decimals, so a parser that expects a period as the decimal point will misread or reject an amount like 123.456,79. Prefer a machine-readable price where the page offers one.
Sources
- Dynamic tax-inclusive pricing (Shopify Help Center) (Documentation)
- Pricing and payments (Your Europe) (Documentation)
- Intl.NumberFormat (MDN) (Documentation)
- price (Schema.org) (Documentation)