# NBKR Kyrgyzstan FX API
> Live official foreign-exchange reference rates from the National Bank of the Kyrgyz Republic (NBKR), read straight from the bank's published fixing — no key on the data, nothing cached, nothing stored. Get every currency the NBKR fixes against the Kyrgyzstani som (KGS) for the day, each normalized to a clean per-unit rate; look one currency up on its own; pull the separate weekly accounting rates (valid for seven days); or convert any amount between two listed currencies by crossing through the som. The som is the base and rates carry the NBKR fixing date. This is the Kyrgyzstan national-central-bank feed specifically — a distinct official source, separate from the other FX, central-bank and market APIs in the catalogue, so treasury, invoicing, payroll and accounting workflows that need the legally-referenced KGS rate can read it directly.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/nbkr-api/..."
```

## Pricing
- **Free** (Free) — 25,000 calls/Mo, 3 req/s
- **Starter** ($6/Mo) — 320,000 calls/Mo, 10 req/s
- **Growth** ($19/Mo) — 1,350,000 calls/Mo, 25 req/s
- **Scale** ($44/Mo) — 4,900,000 calls/Mo, 50 req/s

## Endpoints

### Rates

#### `GET /v1/rates` — All daily KGS reference rates

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/nbkr-api/v1/rates"
```

### Rate

#### `GET /v1/rate` — One currency's daily rate

**Parameters:**
- `code` (query, required, string) — ISO 4217 currency code Example: `USD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/nbkr-api/v1/rate?code=USD"
```

### Weekly

#### `GET /v1/weekly` — Weekly accounting rates (valid seven days)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/nbkr-api/v1/weekly"
```

### Convert

#### `GET /v1/convert` — Convert an amount between two currencies via the som

**Parameters:**
- `from` (query, required, string) — Source ISO 4217 code Example: `USD`
- `to` (query, required, string) — Target ISO 4217 code Example: `EUR`
- `amount` (query, optional, string) — Amount to convert Example: `100`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/nbkr-api/v1/convert?from=USD&to=EUR&amount=100"
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/nbkr-api/v1/meta"
```


---
Marketplace page: https://www.oanor.com/api/nbkr-api
OpenAPI spec: https://www.oanor.com/api/nbkr-api/openapi.json
