# Latest official table — keyless, attribution required

**GET /api/open/central-bank/{bank}**

The latest published table for a central bank or tax authority, with no API key. CORS-enabled and edge-cached (30–60 min), built for embeds and widgets. Free to use with a visible attribution link to allratestoday.com (the response includes the attribution object). Pass `source`+`target` for a single pair (direct or inverse only). JSON only. For historical dates, time series, or cross-computed pairs use the keyed `/api/v1/central-bank/*` endpoints.


## Servers
- Production: https://allratestoday.com (Production)



## Parameters

### Path parameters

- **bank** (string)
  Source code from /api/v1/central-banks (e.g. ecb, boc, cbsl, banxico, ustreasury)


### Query parameters

- **source** (string)
  Pair mode: source currency, 3-letter code (requires target)

- **target** (string)
  Pair mode: target currency, 3-letter code (requires source)

- **type** (string)
  Rate type to return when the pair is requested with source+target on a two-sided table (buy/sell banks such as TCMB, BCB, BI, CBN). Values are the bank's own type labels as shown in its full table, e.g. buy or sell. Without it the pair resolves reference, mid, import, buy, sell in that order and rate_type says which side was used. A type the bank does not publish returns 404 listing the available types.



## Responses
### 200
Latest published table (or single pair) with attribution

#### Body: application/json (object)
- **bank** (string)

- **rate_date** (string(date))

- **rates** (array[object])

- **source** (string)
  Pair mode

- **target** (string)
  Pair mode

- **rate** (number(double))
  Pair mode

- **rate_type** (string)
  Pair mode

- **derived** (boolean)
  Pair mode: true when computed as the inverse of the published rate

- **method** (string)
  Pair mode

- **attribution** (object)


### 404
Unknown source, no published table yet, or pair not covered

#### Body: application/json (object)
- **error** (string)
  Error message

- **hint** (string)
  Optional remediation hint



[Powered by Bump.sh](https://bump.sh)
