Currencylayer · Example Payload

Currencylayer Convertcurrency Example

Currency ExchangeForeign ExchangeFXForexConversionHistorical RatesTime FrameChange ReportPrecious MetalsAPILayerPublic APIs

Currencylayer Convertcurrency Example is an example object payload from Currencylayer, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "https://api.apilayer.com/currency_data/convert?from=USD&to=GBP&amount=10",
    "headers": {
      "apikey": "YOUR_API_KEY"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "success": true,
      "terms": "https://currencylayer.com/terms",
      "privacy": "https://currencylayer.com/privacy",
      "query": {
        "from": "USD",
        "to": "GBP",
        "amount": 10
      },
      "info": {
        "timestamp": 1430068515,
        "quote": 0.658443
      },
      "result": 6.58443
    }
  }
}