List Country

List all (or one) countries.

Endpoint URL

{{base_url}}/api/v2/country

Authentication and rate limits

ItemDetails
Authentication methodOAuth 2.0 Bearer token
Rate limitRate Limit

Requests Example

curl --request GET \
  --url "https://{{base_url}}/api/v2/country" \
  --header "Authorization: Bearer $BEARER_TOKEN"
curl --request GET \
  --url "https://{{base_url}}/api/v2/country/{id}" \
  --header "Authorization: Bearer $BEARER_TOKEN"

Query Parameters

  • id (integer) --

    Optional if you want to list a specific country ID. The id parameter is passed as part of the request url /country/$id.

Response Syntax

{
  "country_name": "string",
  "country_numeric_code": integer
}
Language
Click Try It! to start a request and see the response here!