# List currencies

`GET /v1/data/currencies`

Free during preview · test keys only

List ISO 4217 currencies recognized by the CLDR snapshot in stable code order. Free during preview; scoped test keys must allow data.currencies. No balance or payment is required.

Pagination: limit defaults to 50 (1–250). When has_more is true, pass next_cursor unchanged as cursor, keeping the same filters. Cursors are opaque, not offsets; they mark an exclusive currency-code boundary. A valid cursor remains a boundary even if filters change. The final or empty page has has_more false and next_cursor null. Filters combine with AND; codes selects any listed code.

English display names, symbols, minor-unit digits and country usage come from Unicode CLDR JSON 48.2.1 (CLDR 48.2), Unicode License v3. Membership and numeric codes use the current and historical ISO 4217 tables bundled with CLDR 48.2. Historical and non-tender currencies are listed with tender false. tender reflects legal-tender status on 2026-10-14; countries lists where the currency is legal tender on that date, within the same 249 ISO 3166-1 countries and territories as data_countries, in alpha-2 order, and may be empty. numeric is null when ISO has no numeric mapping. symbol falls back to the code and narrow_symbol to symbol when CLDR has none. Minor-unit digits use CLDR supplemental fractions, default 2, not cash-rounding digits. Non-ISO identifiers such as CNH, CNX and ARL are excluded; ISO special codes XXX and XTS remain listable.

## Parameters

| Parameter | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| limit | query | integer | no | 50 | Maximum items per page, an integer from 1 to 250. Default 50. |
| cursor | query | string | no | — | Opaque next_cursor from a previous page. Omit on the first page; do not decode, construct or increment it. |
| country | query | string | no | — | ISO 3166-1 alpha-2 code from data_countries, case-insensitive, e.g. CA. Returns the currencies that are legal tender there on the snapshot date. Unknown/non-ISO codes are invalid. |
| tender | query | boolean | no | — | true for currencies that are legal tender on the snapshot date; false for historical and non-tender currencies. Only true or false is accepted. |
| q | query | string | no | — | Nonempty case- and accent-insensitive code or English name prefix, e.g. canad matches CAD (Canadian Dollar). Not a substring search. |
| codes | query | string | no | — | Comma-separated ISO 4217 codes recognized by the snapshot. Case-insensitive; whitespace around each code and duplicates are accepted. Unknown codes and CNH are invalid. Results still use code order. |

## Examples

### curl

```sh
curl --request GET 'https://api.butter.pub/v1/data/currencies?limit=1&codes=CAD%2CUSD' \
  --header "Authorization: Bearer $APIBUTTER_TEST_KEY"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken($key)
    ->get('https://api.butter.pub/v1/data/currencies', ['limit' => 1, 'codes' => 'CAD,USD']);

$result = $response->throw()->json();
```

### JavaScript

```js
const url = new URL('https://api.butter.pub/v1/data/currencies');
url.search = new URLSearchParams({
    "limit": 1,
    "codes": "CAD,USD"
}).toString();

const response = await fetch(url, {
  method: 'GET',
  headers: { Authorization: `Bearer ${key}` },
});
if (!response.ok) throw await response.json();
const result = await response.json();
```

## MCP equivalent

Call `data_currencies` at https://mcp.butter.pub/mcp.

```json
{
    "name": "data_currencies",
    "arguments": {
        "limit": 1,
        "codes": "CAD,USD"
    }
}
```

## Responses

### 200 · application/json

A currency list, including empty results. The next cursor is present only when another page exists. Nothing is charged.

First page: codes=CAD,USD&limit=1

```json
{
    "object": "list",
    "data": [
        {
            "object": "currency",
            "id": "CAD",
            "code": "CAD",
            "numeric": "124",
            "name": "Canadian Dollar",
            "symbol": "CA$",
            "narrow_symbol": "$",
            "minor_unit_digits": 2,
            "countries": [
                "CA"
            ],
            "tender": true
        }
    ],
    "has_more": true,
    "next_cursor": "Q0FE"
}
```

Next page: same filters, cursor=Q0FE

```json
{
    "object": "list",
    "data": [
        {
            "object": "currency",
            "id": "USD",
            "code": "USD",
            "numeric": "840",
            "name": "US Dollar",
            "symbol": "$",
            "narrow_symbol": "$",
            "minor_unit_digits": 2,
            "countries": [
                "AS",
                "BQ",
                "EC",
                "FM",
                "GU",
                "HT",
                "IO",
                "MH",
                "MP",
                "PA",
                "PR",
                "PW",
                "SV",
                "TC",
                "TL",
                "UM",
                "US",
                "VG",
                "VI",
                "ZW"
            ],
            "tender": true
        }
    ],
    "has_more": false,
    "next_cursor": null
}
```

No matches: q=Atlantis

```json
{
    "object": "list",
    "data": [],
    "has_more": false,
    "next_cursor": null
}
```

### 401 · application/problem+json

Missing, invalid or revoked bearer key.

unauthorized

```json
{
    "type": "https://apibutter.com/docs/errors/unauthorized",
    "title": "Unauthorized",
    "status": 401,
    "detail": "A valid, unrevoked bearer API key is required.",
    "code": "unauthorized",
    "param": null,
    "errors": null,
    "request_id": "req_01jbz8c6m3x4v9t2q7w5n8r0ka"
}
```

### 403 · application/problem+json

Live keys are refused; scoped test keys must allow data.currencies.

test_keys_only

```json
{
    "type": "https://apibutter.com/docs/errors/test_keys_only",
    "title": "Forbidden",
    "status": 403,
    "detail": "This operation is free during preview and accepts abk_test_ keys only.",
    "code": "test_keys_only",
    "param": null,
    "errors": null,
    "request_id": "req_01jbz8c6m3x4v9t2q7w5n8r0ka"
}
```

forbidden

```json
{
    "type": "https://apibutter.com/docs/errors/forbidden",
    "title": "Forbidden",
    "status": 403,
    "detail": "The API key does not allow this operation.",
    "code": "forbidden",
    "param": null,
    "errors": null,
    "request_id": "req_01jbz8c6m3x4v9t2q7w5n8r0ka"
}
```

### 422 · application/problem+json

An invalid filter, limit or cursor. The detail names the parameter to correct.

invalid_parameter

```json
{
    "type": "https://apibutter.com/docs/errors/invalid_parameter",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "The limit parameter must be an integer from 1 to 250.",
    "code": "invalid_parameter",
    "param": "limit",
    "errors": {
        "limit": [
            "The limit parameter must be an integer from 1 to 250."
        ]
    },
    "request_id": "req_01jbz8c6m3x4v9t2q7w5n8r0ka"
}
```

## Errors

| Code | Status | Meaning |
| --- | --- | --- |
| unauthorized | 401 | A valid, unrevoked bearer API key is required. |
| test_keys_only | 403 | This operation is free during preview and accepts abk_test_ keys only. |
| forbidden | 403 | The API key does not allow this operation. |
| invalid_parameter | 422 | The limit parameter must be an integer from 1 to 250. |
