{
  "opencollection": "1.0.0",
  "info": {
    "name": "FXRatesAPI",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{apiKey}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Latest Rates",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Get the latest exchange rates.", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.fxratesapi.com/latest?base=USD&currencies=EUR,GBP",
            "params": [
              { "name": "base", "value": "USD", "type": "query", "description": "Base currency (ISO 4217). Defaults to USD." },
              { "name": "currencies", "value": "EUR,GBP", "type": "query", "description": "Comma-separated currency codes to return." }
            ]
          },
          "docs": "Returns the most recent exchange rates for the base currency. Works without an API key on the limited tier."
        }
      ]
    },
    {
      "info": {
        "name": "Historical Rates",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Get historical exchange rates for a date.", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.fxratesapi.com/historical?date=2026-01-01&base=USD",
            "params": [
              { "name": "date", "value": "2026-01-01", "type": "query", "description": "Required. Date in YYYY-MM-DD format." },
              { "name": "base", "value": "USD", "type": "query", "description": "Base currency (ISO 4217). Defaults to USD." }
            ]
          },
          "docs": "Returns exchange rates as they were on the given past date."
        }
      ]
    },
    {
      "info": {
        "name": "Time-Series",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Get time-series exchange rates.", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.fxratesapi.com/timeseries?start_date=2026-01-01&end_date=2026-01-05&base=USD&currencies=EUR",
            "params": [
              { "name": "start_date", "value": "2026-01-01", "type": "query", "description": "Required. Range start (YYYY-MM-DD)." },
              { "name": "end_date", "value": "2026-01-05", "type": "query", "description": "Required. Range end (YYYY-MM-DD)." },
              { "name": "base", "value": "USD", "type": "query", "description": "Base currency (ISO 4217)." },
              { "name": "currencies", "value": "EUR", "type": "query", "description": "Comma-separated currency codes to return." }
            ]
          },
          "docs": "Returns daily exchange rates for each date across the range."
        }
      ]
    },
    {
      "info": {
        "name": "Convert",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Convert an amount between currencies.", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.fxratesapi.com/convert?from=USD&to=EUR&amount=100",
            "params": [
              { "name": "from", "value": "USD", "type": "query", "description": "Required. Source currency (ISO 4217)." },
              { "name": "to", "value": "EUR", "type": "query", "description": "Required. Target currency (ISO 4217)." },
              { "name": "amount", "value": "100", "type": "query", "description": "Required. Amount of the source currency." },
              { "name": "date", "value": "", "type": "query", "description": "Optional. YYYY-MM-DD to convert at a historical rate." }
            ]
          },
          "docs": "Converts an amount from one currency to another at the latest or a historical rate."
        }
      ]
    },
    {
      "info": {
        "name": "Currencies",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "List supported currencies.", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.fxratesapi.com/currencies"
          },
          "docs": "Lists every supported currency with code, name, symbol, and metadata."
        }
      ]
    }
  ],
  "bundled": true
}
