IpForensics
HomeGoto Dashboard
  • 📖Introduction
  • Protocols
    • HTTP Json Protocol
    • Response headers
    • Error Codes
  • Features
    • Pay-As-You-Go
    • API Security
    • HTTPS
  • Api Response Data
    • 📶Mobile Carrier
    • 🏥ASN
    • 📊General
    • ⏲️Timezone
    • 💵Currency
    • 👨‍💻Threat Detector
    • 🌐Company
    • 🌏Geolocation
    • 🌍Advance Geolocation
    • 💻Device Information
    • ✈️IATA/ICAO
  • API
    • 🚀Intro
    • 📊IP & Threat Intelligence API
      • Single Lookup
      • Origin Lookup
    • 💹Exchange Rate API
      • Currency Endpoint
      • Live Rate Endpoint
      • Historical Rate Endpoint
      • Currency Conversion Endpoint
      • Currency Swap Endpoint
  • Code Implantation
    • Block Automated Visits From Hosting Providers
    • Block VPN/Proxy and Tor users
    • Redirect by Country and Location Offers
    • Content Personalisation
    • Get the location from an IP Address in Javascript
    • How to get a client's IP address using JavaScript
    • HTML5 Geolocation with IpForensics fallback
    • Blocking Users by Country
    • Detecting Users Currency or Currency Personalisation
    • Preventing Free Trial Abuse
    • Device-Based Ads and App Binary
    • Detect Users Device/Computer and Operating System
    • Detect visitors from EU countries
    • How to detect and prevent credit card fraud
    • How to convert amounts to website visitor currency
  • MISC
    • Changelog
    • FAQs
    • Troubleshooting
    • API Status
    • Rate Limits
Powered by GitBook
On this page
  • Code Snippet
  • Sample Response
  • Endpoint
  • Returns list of all supported currencies

Was this helpful?

  1. API
  2. Exchange Rate API

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).

Each request to the currency endpoint consumes 1 token.

Code Snippet

<?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;
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));
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);
});
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)
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);

Sample Response

{
    "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

GET https://ipforensics.net/api/v1/currencies?apikey=

Returns response object and a metadata of the request

Query Parameters

Name
Type
Description

apikey*

String

Your public key

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

Last updated 2 years ago

Was this helpful?

💹