Currencylayer · Example Payload

Currencylayer Gettimeframe Example

Currency ExchangeForeign ExchangeFXForexConversionHistorical RatesTime FrameChange ReportPrecious MetalsAPILayerPublic APIs

Currencylayer Gettimeframe 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/timeframe?start_date=2010-03-01&end_date=2010-04-01&source=USD&currencies=GBP,EUR",
    "headers": {
      "apikey": "YOUR_API_KEY"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "success": true,
      "terms": "https://currencylayer.com/terms",
      "privacy": "https://currencylayer.com/privacy",
      "timeframe": true,
      "start_date": "2010-03-01",
      "end_date": "2010-04-01",
      "source": "USD",
      "quotes": {
        "2010-03-01": {
          "USDUSD": 1,
          "USDGBP": 0.668525,
          "USDEUR": 0.738541
        },
        "2010-03-02": {
          "USDUSD": 1,
          "USDGBP": 0.668827,
          "USDEUR": 0.736145
        }
      }
    }
  }
}