Your Company

FREE Currency Exchange API

Seamless Historic Currency Conversion
From Dollar($) to 10+ currencies for FREE!
*Exchange Data is from chatGPT

Everything you need

Supported List of Countries

List of Data From 1 Jan 2010 to 30 June 2023.
Data is updated at the end of month.

AUD
INR
BRL
EUR
SGD
PKR
IDR
TRY
GBP
CAD
VND

Implementation


 /**
 * Get currency exchange rates within a specific date range.
 * @param {string} start - The start date in "YYYY-MM-DD" format.
 * @param {string} end - The end date in "YYYY-MM-DD" format.
 */
async function getCurrencyExchangeRates(start, end) {
  try {
    const response = await fetch(`https://currencyexchange.host20.uk/api/?start=${start}&end=${end}`);
    const data = await response.json();
    return data;
  } catch (error) {
    console.error('Error fetching currency exchange rates:', error);
    throw error;
  }
}   

getCurrencyExchangeRates("2020-01-02", "2020-01-05") // pass your dates here

          

            
use reqwest::Error;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let start = "2020-01-02";
    let end = "2020-01-05";
    let url = format!("https://currencyexchange.host20.uk/api/?start={}&end={}", start, end);

    let response = reqwest::get(&url).await?;
    let data: serde_json::Value = response.json().await?;

    println!("{:?}", data);

    Ok(())
}

            
Buy Me A Coffee

Want FREE product news and updates?

Sign up for our newsletter.

We care about your data.