Skip to main content
POST
/
api
/
cbr
/
rates
/cbr/rates
curl --request POST \
  --url https://api.anysite.io/api/cbr/rates \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "timeout": 300,
  "date": "<string>",
  "lang": "ru"
}
'
[
  {
    "id": "<string>",
    "@type": "@cbr_rate",
    "num_code": "<string>",
    "char_code": "<string>",
    "nominal": 123,
    "name": "<string>",
    "value": 123,
    "unit_rate": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
date
string | null

Rates date in YYYY-MM-DD format; defaults to the latest published rates

Pattern: ^\d{4}-\d{2}-\d{2}$
lang
enum<string>
default:ru

Language of currency names

Available options:
ru,
en

Response

Successful Response

id
string
required
@type
string
default:@cbr_rate
num_code
string | null
char_code
string | null
nominal
integer | null
name
string | null
value
number | null
unit_rate
number | null