Use Case

Currency Localisation

Detect every visitor's local currency automatically and display prices they recognise — without asking them to choose.

The challenge

Most e-commerce sites default to a single currency — usually USD — regardless of where the visitor is browsing from. A visitor in Australia or Japan sees a price that feels unfamiliar, has to do mental arithmetic, and is more likely to abandon before checkout. Adding a manual currency selector adds friction and most visitors simply ignore it.

What you can achieve

  • Prices displayed in the visitor’s local currency on first page load
  • No country selector or manual currency toggle needed
  • Works on any frontend stack — static sites, React, Vue, or plain HTML
  • Covers 150+ countries with accurate primary currency data

How it works

VisitorAPI resolves the visitor’s country from their IP address and returns a currencies array — the first entry is the primary currency for that country. The whole call resolves in ~25ms on average, so the currency is available before the user finishes reading the headline.

  1. Call the API on page load with your project ID
  2. Read data.currencies[0] — the primary currency code, e.g. "AUD" or "JPY"
  3. Update your price display using the returned currency code

Personalize user experience based on location and device

Start using VisitorAPI today and enhance your website with intelligent visitor detection.