> 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/api/exchange-rate-api/currency-endpoint.md).

# Currency Endpoint

A full list of supported currencies can be accessed both in JSON Format and on this website. We support crypto currencies. We support over 200+ currencies

In order to access a JSON file containing all currently supported currencies (3-4-letter currency code and full currency name).

{% hint style="success" %}
Each request to the currency endpoint consumes 1 token.
{% endhint %}

### Code Snippet

{% tabs %}
{% tab title="PHP Curl" %}

```javascript
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ipforensics.net/api/v1/currencies?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}

{% tab title="Javascript" %}

```javascript
var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};

fetch("https://ipforensics.net/api/v1/currencies?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

{% endtab %}

{% tab title="Node Js" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://ipforensics.net/api/v1/currencies?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X',
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="Python" %}

```python
import requests

url = "https://ipforensics.net/api/v1/currencies?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X"

payload={}

response = requests.request("GET", url, data=payload)

print(response.text)

```

{% endtab %}

{% tab title="C#" %}

```csharp
var client = new RestClient("https://ipforensics.net/api/v1/currencies?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
```

{% endtab %}
{% endtabs %}

### Sample Response

```javascript
{
    "status": true,
    "code": 200,
    "message": "Successful",
    "meta_data": {
        "currencies": {
            "1inch": "1inch Network",
            "aave": "Aave",
            "ada": "Cardano",
            "aed": "United Arab Emirates Dirham",
            ....
        }
    }
}
```

### Endpoint

## Returns list of all supported currencies

<mark style="color:blue;">`GET`</mark> `https://ipforensics.net/api/v1/currencies?apikey=`

Returns response object and a metadata of the request

#### Query Parameters

| Name                                     | Type   | Description     |
| ---------------------------------------- | ------ | --------------- |
| apikey<mark style="color:red;">\*</mark> | String | Your public key |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "status": true,
    "code": 200,
    "message": "Successful",
    "meta_data": {
        "currencies": {
            "1inch": "1inch Network",
            "aave": "Aave",
            "ada": "Cardano",
            "aed": "United Arab Emirates Dirham",
            ....
        }
    }
}
```

{% endtab %}
{% endtabs %}
