Skip to content

Get Countries

This function will return a JSON array of countries, iso codes, and legal drinking ages. This is useful for populating a select box for the country on an age gate or a registration form.

Path

https://api.b-fonline.com/api/countries

Method

GET

Parameters

None

Responses

200 - JSON array of country objects

[
  {...},  
  {
    "name": "United Kingdom",
    "iso2_code": "GB",
    "iso3_code": "GBR",
    "spirits_lda": "18",
    "wine_lda": "18"
  },
  {...}
]

Code Examples

1
2
3
curl -X GET \
https://api.b-fonline.com/api/countries \
-H 'cache-control: no-cache'