all-about-apikey/currencylayer/README.md

998 B

Currencylayer

Description

Exchange rates and currency conversion

Example Request

  • Curl
curl "http://api.currencylayer.com/live?access_key={{token}}"
  • Raw
GET /live?access_key={{token}} HTTP/1.1
Host: api.currencylayer.com

Response

  • Success
{
    "success":true,
    "terms":"https:\/\/currencylayer.com\/terms",
    "privacy":"https:\/\/currencylayer.com\/privacy",
    "timestamp":1655367183,
    "source":"USD",
    "quotes":{
        "USDAED":3.673101,
        "USDAFN":89.48456,
        "USDALL":114.624638,
        "USDAMD":424.067918,
        "USDANG":1.807216
        ...
  • Error
{
    "success":false,
    "error":{
        "code":101,
        "type":"invalid_access_key",
        "info":"You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]"
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag