BeMyPlan API

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:

QueryMatches
nameThe start of the name, ignoring case and accents: neth finds the Netherlands.
continentAF, 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

FieldNotes
idThe ISO 3166-1 alpha-2 code.
name
iso3ISO 3166-1 alpha-3 code. May be null.
continentAF (Africa), AN (Antarctica), AS (Asia), EU (Europe), NA (North America), OC (Oceania) or SA (South America). May be null.
currencyCodeMay be null.
activefalse for a deactivated record.

Errors

  • A code that does not exist: 404 country_not_found.
  • A malformed code: 400.

Fields and parameters in full: the API reference.

On this page