# /countries Endpoint

> Download the full country reference with alpha-3 codes, names, and official currencies, plus notes on multi-currency territories.

Canonical: https://currency-core.com/docs/countries/
Updated: 2026-11-10
Published: 2026-06-03

---
## Endpoint

```
GET https://api.currency-core.com/v1/countries
```

This endpoint is **public**. It needs no API key and **does not count against your quota or rate limit**. Use it to discover the full set of countries CurrencyCore supports, the alpha-3 codes used by the PPP endpoints, and each country's official currencies.

## The full reference

The response **is** the full reference. There is no pagination and no search parameter: one request returns every supported country, sorted by name. That makes the endpoint the canonical list to cache or download.

Save the complete list to a file:

```bash
curl https://api.currency-core.com/v1/countries > countries.json
```

Find one country and its currencies with `jq`:

```bash
jq '.[] | select(.code == "IND" or .code == "PAN")' countries.json
```

List every country code, one per line:

```bash
jq -r '.[].code' countries.json
```

The list is served from the edge, so it is cheap to poll or refresh on a schedule.

## Response shape

Returns an array of `{ code, name, currencies }` objects, sorted by name. A trimmed example:

```json
[
  { "code": "BGR", "name": "Bulgaria", "currencies": ["EUR"] },
  { "code": "DEU", "name": "Germany", "currencies": ["EUR"] },
  { "code": "IND", "name": "India", "currencies": ["INR"] },
  { "code": "PAN", "name": "Panama", "currencies": ["PAB", "USD"] },
  { "code": "USA", "name": "United States", "currencies": ["USD"] },
  { "code": "ZWE", "name": "Zimbabwe", "currencies": ["USD", "ZWG"] }
]
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `code` | string | Country code (ISO/IMF alpha-3), e.g. `USA`, `IND`, `DEU`. Treat this as the stable identifier. |
| `name` | string | Human-readable country name. |
| `currencies` | string[] | The country's **official** ISO 4217 currencies. Most countries have one. Some have several, and some share a currency with other countries. |

## Caching and refresh

The country list changes rarely, so cache it rather than calling on every request. Store the whole array with a long TTL, refresh on a schedule, and look up by `code` in memory. Treat `code` as the stable key: a display name can change, and new territories can appear. The endpoint stays cheap to poll because it is served from the edge, but your own cache still avoids unnecessary network calls.

## Country-to-currency mapping notes

The `currencies` array is the authoritative mapping for PPP validation. In `/v1/convert?ppp=true`, the currency in a `currency:country` pair must be one of that country's official currencies, so `INR:IND` is valid but `EUR:IND` is not.

The data includes several multi-currency territories:

| Country | Currencies | Note |
|---|---|---|
| Panama (`PAN`) | `PAB`, `USD` | The balboa and the US dollar both circulate. |
| Zimbabwe (`ZWE`) | `USD`, `ZWG` | The data lists both the US dollar and the Zimbabwe Gold. |
| Bhutan (`BTN`) | `BTN`, `INR` | Both currencies are official. |
| Brunei (`BRN`) | `BND`, `SGD` | Both currencies are official. |
| Eswatini (`SWZ`) | `SZL`, `ZAR` | Both currencies are official. |
| Lesotho (`LSO`) | `LSL`, `ZAR` | Both currencies are official. |
| Namibia (`NAM`) | `NAD`, `ZAR` | Both currencies are official. |
| Singapore (`SGP`) | `SGD`, `BND` | Both currencies are official. |
| West Bank and Gaza (`WBG`) | `ILS`, `JOD` | Both currencies are official. |
| Liberia (`LBR`) | `LRD`, `USD` | Both currencies are official. |

Euro-area countries all map to `["EUR"]`. Bulgaria (`BGR`) also maps to `["EUR"]` following its 2026 adoption of the euro, so `BGN` is not a supported code. Curacao (`CUW`) and Sint Maarten (`SXM`) map to `["XCG"]`, the Caribbean guilder that replaced `ANG` on 2025-03-31.

The endpoint returns alpha-3 codes only. `/v1/convert` and `/v1/ppp/analysis` accept alpha-2 codes, country names, and some common acronyms as input and resolve them to alpha-3, but the reference list itself is alpha-3.

## Parameters and errors

This endpoint has **no query or path parameters**.

| Status | Meaning |
|---|---|
| `200` | The full array is returned. |
| `404` | The path is wrong. `/v1/countries` is the only supported path. |

There is no endpoint-specific `400`, `401`, `403`, or `429` behavior because the route has no key check and no quota. If a proxy in front of your account adds a rate limit, honor its `Retry-After` header.

## Examples

No `Authorization` header is needed.

<CodeTabs>
<Fragment slot="curl">

```bash
curl https://api.currency-core.com/v1/countries
```

</Fragment>
<Fragment slot="js">

```js
const countries = await fetch("https://api.currency-core.com/v1/countries").then((r) => r.json());
console.log(countries.find((c) => c.code === "IND"));
```

</Fragment>
<Fragment slot="python">

```python

countries = requests.get("https://api.currency-core.com/v1/countries").json()
print([c for c in countries if c["code"] == "IND"])
```

</Fragment>
<Fragment slot="go">

```go
res, _ := http.Get("https://api.currency-core.com/v1/countries")
defer res.Body.Close()

var countries []struct {
	Code       string   `json:"code"`
	Name       string   `json:"name"`
	Currencies []string `json:"currencies"`
}
json.NewDecoder(res.Body).Decode(&countries)
fmt.Println(countries[0])
```

</Fragment>
<Fragment slot="java">

```java
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.currency-core.com/v1/countries"))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

</Fragment>
<Fragment slot="php">

```php
<?php
$countries = json_decode(
    file_get_contents("https://api.currency-core.com/v1/countries"),
    true,
);
print_r(array_slice($countries, 0, 3));
```

</Fragment>
</CodeTabs>

## Limits and related

- Public and unmetered: no key, no monthly request, no per-minute rate limit.
- One response contains the full list. Cache it rather than calling once per lookup.
- The `currencies` array is reference data for validation and display. Use [`/v1/rates`](/docs/rates-endpoint/) for live quotes.
- If you need currency names and symbols, use [`/v1/currencies`](/docs/currencies/).

Related pages:

- [`/v1/currencies`](/docs/currencies/) for the currency reference list
- [`/v1/ppp`](/docs/ppp-endpoint/) for a single country and year
- [`/v1/convert`](/docs/convert-endpoint/) for PPP pairs
- [Pricing](/pricing/) for metered endpoints
- [Currency API overview](/currency-api/) for the product overview
