Live Rate Endpoint

Real-time exchange rates using the IpForensics API's live endpoint.

Code Snippet

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD',
  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;

Sample Response

Endpoint

Returns list of all live rate currencies based on the source currency.

GET https://ipforensics.net/api/v1/currency/liverate?apikey=...&source=USD

Returns response object and a metadata of the request

Query Parameters

Name
Type
Description

apikey*

String

Your API key

source*

String

Specify a Source Currency

Last updated

Was this helpful?