Countries
Look up countries by their ISO code.
Endpoints
GET /data/v1/countries: list countries.GET /data/v1/countries/{countryId}: one country. The id is the ISO 3166-1 alpha-2 code, for example/data/v1/countries/NL. Lower case is accepted.
The list takes the pagination parameters, and limit may be up to 300, so the whole
set fits in one page. Two filters narrow it:
| Query | Matches |
|---|---|
name | The start of the name, ignoring case and accents: neth finds the Netherlands. |
continent | AF, AN, AS, EU, NA, OC or SA, any case. |
curl "https://api.sandbox.bemyplan.com/data/v1/countries?limit=300" \
-H "Authorization: Bearer bmp_test_…"Fields
| Field | Notes |
|---|---|
id | The ISO 3166-1 alpha-2 code. |
name | |
iso3 | ISO 3166-1 alpha-3 code. May be null. |
continent | AF (Africa), AN (Antarctica), AS (Asia), EU (Europe), NA (North America), OC (Oceania) or SA (South America). May be null. |
currencyCode | May be null. |
active | false for a deactivated record. |
Errors
- A code that does not exist:
404country_not_found. - A malformed code:
400.
Fields and parameters in full: the API reference.