# Get the exchange rate on any past date

**Use case:** 

Official daily reference rates for any currency pair over any date range, for invoices, expenses and backtests.

## Input

```json
{
  "mode": "range",
  "baseCurrency": "USD",
  "targetCurrencies": [
    "EUR",
    "GBP"
  ],
  "startDate": "2026-01-01",
  "endDate": "2026-01-31",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "date": {
    "label": "Date published",
    "format": "text"
  },
  "base": {
    "label": "Base",
    "format": "text"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "rate": {
    "label": "Rate",
    "format": "number"
  },
  "requestedDate": {
    "label": "Requested",
    "format": "text"
  },
  "note": {
    "label": "Note",
    "format": "text"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Exchange Rates Scraper: ECB Official Rates](https://apify.com/glitchbound/fx-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/glitchbound/fx-scraper) to learn more, explore other use cases, and run it yourself.