Countries
List countries
Authorization
apiKey AuthorizationBearer <token>
A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.
In: header
Query Parameters
limit?integer
Items per page, 1–300 (default 50).
Range
1 <= value <= 300Default
50after?string
Cursor mode: the page after this cursor (pass meta.after back).
Length
1 <= length <= 512before?string
Cursor mode: the page before this cursor (pass meta.before back).
Length
1 <= length <= 512page?integer
Page mode: 1-based page; the response adds meta.page and meta.totalCount.
Range
1 <= value <= 10000name?string
Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.
Length
1 <= length <= 100continent?string
Continent code: AF, AN, AS, EU, NA, OC or SA. Case-insensitive.
Header Parameters
If-None-Match?string
A previously returned ETag. When it still matches, the answer is 304 with no body (and no charge for a free call).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/data/v1/countries"{ "data": [ { "id": "NL", "name": "Netherlands", "iso3": "NLD", "continent": "EU", "currencyCode": "EUR", "active": true } ], "meta": { "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11", "limit": 50, "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ", "before": null }}