Exchangerate API

Exchangerate API

Currency Exchange

JSON API for foreign exchange rates and currency conversion

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with Exchangerate API

🚀 Quick Start Examples

Exchangerate API Javascript Examplejavascript
// Exchangerate API API Example
const response = await fetch('https://exchangerate.host/?utm_source=publicapis&utm_medium=homepage&utm_campaign=PAPIS', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Exchangerate.host Overview

Exchangerate.host is a straightforward and lightweight service offering up-to-date information on current and historical foreign exchange rates, as well as crypto exchange rates. Providing reliable forex rates, Exchangerate.host is designed to be easily integrated into various applications and services. Whether you need real-time data or historical trends, our service ensures accurate and dependable information for all your foreign exchange needs.

Benefits of Using Exchangerate.host API

  1. Accuracy: Obtain accurate and reliable forex rates for precise financial calculations.
  2. Simplicity: Enjoy a simple and user-friendly API for seamless integration into your applications.
  3. Versatility: Access both current and historical exchange rates, catering to diverse financial requirements.
  4. Lightweight: Experience a lightweight service that won't burden your application's resources.
  5. Accessibility: Easily incorporate crypto exchange rates alongside traditional foreign exchange data.

JavaScript API Example

// JavaScript API Example
const apiUrl = 'https://api.exchangerate.host/latest?base=USD';
fetch(apiUrl)
  .then(response => response.json())
  .then(data => {
    // Process the data as needed
    console.log('Exchange Rates:', data.rates);
  })
  .catch(error => {
    console.error('Error fetching exchange rates:', error);
  });

For more details and to access the API, visit Exchangerate.host.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Apr 19Apr 21Apr 23Apr 25Apr 27Apr 29May 1May 3May 5May 7May 9May 11May 13May 15May 1804008001440Minutes
Online
Offline

Related APIs in Currency Exchange