Exchangerate API

Exchangerate API

Currency Exchange

JSON API for foreign exchange rates and currency conversion

Visit API

📚 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

Jun 12Jun 14Jun 16Jun 18Jun 20Jun 22Jun 24Jun 26Jun 28Jun 30Jul 2Jul 4Jul 6Jul 8Jul 1104008001440Minutes
Online
Offline

Related APIs in Currency Exchange