Skip to main content
POST
/
api
/
cbr
/
rates
/
history
/cbr/rates/history
curl --request POST \
  --url https://api.anysite.io/api/cbr/rates/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "currency": "<string>",
  "date_from": "<string>",
  "date_to": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "date": "<string>",
    "@type": "@cbr_rate_bar",
    "nominal": 123,
    "value": 123,
    "unit_rate": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
currency
string
required

Currency to read the history for — either the Bank-of-Russia id (e.g. R01235) or the ISO character code (e.g. USD)

Minimum string length: 1
Examples:

"USD"

"R01235"

"EUR"

"CNY"

date_from
string
required

Start date in YYYY-MM-DD format

Pattern: ^\d{4}-\d{2}-\d{2}$
date_to
string
required

End date in YYYY-MM-DD format

Pattern: ^\d{4}-\d{2}-\d{2}$
count
integer
required

Maximum number of records to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

date
string
required
@type
string
default:@cbr_rate_bar
nominal
integer | null
value
number | null
unit_rate
number | null