API Documentation

Exchange Rates

Exchange Rates API provides a Real-time JSON API for 1400+ World Currencies and Cryptocurrencies

GET List of Currency Codes

List of Currency Codes

Get a JSON list of all currency codes available with USD price

GET https://api.happi.dev/v1/exchange

Parameters

API Key * Text
You can also send your API key using the header x-happi-key.

Get your free API key here

Headers
                                    
JSON Response
                                    

Response Definition

{
  "success": boolean,
  "length": integer,
  "result": [
    {
      "code": text,
      "name": text,
      "updated": text:date,
      "price_usd": number,
      "type": text
    },
 ]
}

Error Response

Check http response code
{
  "success": boolean,
  "error": text
}
GET Convert

Convert

Simple, accurate and transparent exchange rates and currency conversion data API

GET https://api.happi.dev/v1/exchange/:from/:to

Parameters

API Key * Text
You can also send your API key using the header x-happi-key.

Get your free API key here

from * string
to * string
Headers
                                    
JSON Response
                                    

Response Definition

{
  "success": boolean,
  "result": {
    "from": {
      "price_usd": numeric,
      "code": text,
      "name": text,
      "updated": text:date
    },
    "to": {
      "price_usd": numeric,
      "code": text,
      "name": text,
      "updated": text:date
    },
    "result": {
      "value": numeric,
      "format": text
    }
  }
}

Error Response

Check http response code
{
  "success": boolean,
  "error": text
}
GET History

History

Get history price from FIAT currency. Return last 8 days

GET https://api.happi.dev/v1/exchange/:currency/history

Parameters

API Key * Text
You can also send your API key using the header x-happi-key.

Get your free API key here

currency * string
Headers
                                    
JSON Response
                                    

Response Definition

{
  "success": boolean,
  "code": text,
  "result": [{
    "day": text:date:YYYY-MM-DD,
    "price_usd": number
  }]
}

Error Response

Check http response code
{
  "success": boolean,
  "error": text
}
Title Messsage