Detecting Users Currency

Ipregistry helps you personalize your e-commerce or pricing pages with your users home currency.

If you are looking at a concrete example about how to implement currency localization, have a look at our technical post entitled Currency Conversion using Geolocation and Open Exchange Rates.

Request Example

curl https://api.ipregistry.co/210.138.184.59?key=YOUR_API_KEY&fields=currency

Response Example

"currency": {
    "code": "JPY",
    "name": "Japanese Yen",
    "name_native": "日本円",
    "plural": "Japanese yen",
    "plural_native": "円",
    "symbol": "¥",
    "symbol_native": "¥",
    "format": {
        "negative": {
            "prefix": "-¥",
            "suffix": ""
        },
        "positive": {
            "prefix": "¥",
            "suffix": ""
        }
    }
}
FieldDescription
currency → codeThe ISO 4217 3-letter currency code.
currency → nameThe name of the currency in US locale.
currency → name_nativeThe name of the currency in native locale based on detected location and primary language.
currency → pluralThe plural name of the given currency in US locale.
currency → plural_nativeThe plural name of the given currency in native locale based on detected location and primary language.
currency → symbolThe symbol of the given currency. For instance, A$ for Australian dollars.
currency → symbol_nativeThe native (local) symbol of the given currency. For instance, $ for Australian dollars.
currency → format → negative → prefixThe currency prefix for negative amounts. For instance, - for -10 euros.
currency → format → negative → suffixThe currency suffix for negative amounts. For instance, for -10 euros.
currency → format → positive → prefixThe currency prefix for positive amounts. For instance, $ for 10 US dollars.
currency → format → positive → suffixThe currency suffix for positive amounts. For instance, the empty string for 10 US dollars.