> For the complete documentation index, see [llms.txt](https://ipforensics.gitbook.io/ipforensics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ipforensics.gitbook.io/ipforensics/code-implantation/detecting-users-currency-or-currency-personalisation.md).

# Detecting Users Currency or Currency Personalisation

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, see code implementation below:

```javascript
// Getting the currency from the user's IP
$.get("https://ipforensics.net/api/v1/origin?apikey=APIKEY", function (response) {
  if (response.meta_data.currency.code == 'NGN' || response.meta_data.currency.symbol_native = "₦") {
    alert("Show price in naira");
    }
  else if(response.meta_data.currency.code == 'USD' || response.meta_data.currency.symbol_native = "$"){
    alert("Show price in dollar");
  }
}, "jsonp");
```

{% hint style="success" %}
**Always reference the** [**API endpoint**](/ipforensics/api/ip-and-threat-intelligence-api.md) **for complete response result**
{% endhint %}
