---
updatedAt: 2025-06-04T21:30:02.000Z
agentTools:
  projectIndex: https://docs.openexchangerates.org/llms.txt
---

# /time-series.json

Get historical exchange rates for a given time period, where available, using the time series / bulk download  API endpoint. Please read all the details before integrating.

Time Series requests are currently available for clients on the Enterprise and Unlimited plans.

> 🚧 Important
>
> The maximum query period currently allowed is one month. If you need more than one month’s data, please request months sequentially (details below).
>
> With a full list of currencies for each requested day, Time-Series API responses can be very large in size. For better performance, use the `symbols` parameter to cut down response weight.

The Time Series response format is different from the standard API response as in **latest.json**. Please familiarise yourself with the standard API response format before using this endpoint.

The `start_date` is the first day of the time series, and the `end_date` is the final day (**both inclusive**).

The `base` property provides the 3-letter currency code to which all the delivered exchange rates are relative. This base currency is also given in the rates object by default (e.g. `"USD": 1`).

The `rates` property is an object of dates, each an object containing the conversion or exchange rates for the specified date, labeled by their international-standard 3-letter currency codes. All the values are relative to 1 unit of the requested `base` currency.

**There is no`timestamp` property in this response.**

## Important notes about Time-Series queries

1. Please note that each day requested counts as one API request (so requesting a full month of data will count as up to 31 ‘hits’).
2. Where the requested `end` date is not a valid calendar date, it will be corrected backwards automatically to the nearest valid day. For example, `2012-02-31` will be corrected to `2012-02-29`.
3. To request multiple months sequentially, you can simply request the **1st to the 31st** of each month, regardless of month length.

## Errors

Please see [API Error Messages](https://docs.openexchangerates.org/docs/errors) for a list of possible errors not specified above.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "0.7"
  },
  "servers": [
    {
      "url": "https://openexchangerates.org/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "app_id",
        "in": "query",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/time-series.json": {
      "get": {
        "summary": "/time-series.json",
        "description": "Get historical exchange rates for a given time period, where available, using the time series / bulk download  API endpoint. Please read all the details before integrating.\n\nTime Series requests are currently available for clients on the Enterprise and Unlimited plans.",
        "operationId": "time-series-json",
        "parameters": [
          {
            "name": "app_id",
            "in": "query",
            "description": "Your unique App ID",
            "schema": {
              "type": "string",
              "default": "Required"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The time series start date in YYYY-MM-DD format",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "Required"
            }
          },
          {
            "name": "end",
            "in": "query",
            "description": "The time series end date in YYYY-MM-DD format (see notes)",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "Required"
            }
          },
          {
            "name": "symbols",
            "in": "query",
            "description": "Limit results to specific currencies (comma-separated list of 3-letter codes)",
            "schema": {
              "type": "string",
              "default": "Recommended"
            }
          },
          {
            "name": "base",
            "in": "query",
            "description": "Change base currency (3-letter code, default: USD)",
            "schema": {
              "type": "string",
              "default": "Optional"
            }
          },
          {
            "name": "show_alternative",
            "in": "query",
            "description": "Extend returned values with alternative, black market and digital currency rates",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "prettyprint",
            "in": "query",
            "description": "Human-readable response for debugging (response size will be much larger)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"disclaimer\": \"https://openexchangerates.org/terms/\",\n    \"license\": \"https://openexchangerates.org/license/\",\n    \"start_date\": \"2013-01-01\",\n    \"end_date\": \"2013-01-31\",\n    \"base\": \"AUD\",\n    \"rates\": {\n        \"2013-01-01\": {\n            \"BTC\": 0.0778595876,\n            \"EUR\": 0.785518,\n            \"HKD\": 8.04136\n        },\n        \"2013-01-02\": {\n            \"BTC\": 0.0789400739,\n            \"EUR\": 0.795034,\n            \"HKD\": 8.138096\n        },\n        \"2013-01-03\": {\n            \"BTC\": 0.0785299961,\n            \"EUR\": 0.80092,\n            \"HKD\": 8.116954\n        },\n        /* ... */\n    }\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Bad Request (not_available)": {
                    "value": "{\n    \"error\": true,\n    \"status\": 400,\n    \"message\": \"not_available\",\n    \"description\": \"Historical rates for one or more of your requested dates are not available - please try a different date-range, or contact support@openexchangerates.org.\"\n}"
                  },
                  "Bad Request (invalid_date_range)": {
                    "value": "{\n    \"error\": true,\n    \"status\": 400,\n    \"message\": \"invalid_date_range\",\n    \"description\": \"Invalid date range: `start` and `end` dates must be valid days, in the format 'YYYY-MM-DD'.\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Bad Request (not_available)",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "status": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "not_available"
                        },
                        "description": {
                          "type": "string",
                          "example": "Historical rates for one or more of your requested dates are not available - please try a different date-range, or contact support@openexchangerates.org."
                        }
                      }
                    },
                    {
                      "title": "Bad Request (invalid_date_range)",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "status": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "invalid_date_range"
                        },
                        "description": {
                          "type": "string",
                          "example": "Invalid date range: `start` and `end` dates must be valid days, in the format 'YYYY-MM-DD'."
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "https://openexchangerates.org/api/time-series.json\n    ?app_id=YOUR_APP_ID\n    &start=2012-01-01\n    &end=2012-01-31\n    &base=AUD\n    &symbols=BTC,EUR,HKD\n    &prettyprint=1"
            },
            {
              "language": "javascript",
              "code": "var query_vars = {\n    app_id: 'YOUR_APP_ID',\n    start: '2012-01-01',\n    end: '2012-01-31',\n    base: 'AUD',\n    symbols: 'BTC,EUR,HKD',\n    prettyprint: 1\n}\n\n$.get('https://openexchangerates.org/api/time-series.json', query_vars, function(data) {\n    console.log(data);\n});",
              "name": "jQuery"
            }
          ],
          "samples-languages": [
            "http",
            "javascript"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```