GET/api/v6/tools/countries/{code}

Get a country

One country by its ISO 3166-1 alpha-2 code.

Scope and limits

Scope

Any valid API key

Usage limit

60 requests per minute

Returns one country by its ISO 3166-1 alpha-2 code (2 letters, case-insensitive).

Path parameters

code
stringrequired
ISO 3166-1 alpha-2 country code (CO, MX, US...). Case-insensitive.

Query parameters

lang
stringoptional
ISO-639-1 locale. Returns a flat name in that locale instead of the full names map.
enes

Responses

200

Country data.

{
  "success": true,
  "data": {
    "code": "CO",
    "code3": "COL",
    "callingCode": "57",
    "mcc": "732",
    "flag": "https://flagcdn.com/co.svg",
    "name": "Colombia"
  },
  "meta": {
    "requestId": "b9b1704baffab21150213c02fd853975",
    "timestamp": "2026-05-23T02:00:00+00:00",
    "responseTimeMs": 2.1
  }
}
401

Invalid or missing credentials.

404

No country exists with that code.

{
  "success": false,
  "error": {
    "code": "COUNTRY_NOT_FOUND",
    "type": "https://developers.hablame.co/docs/v6/errors/country-not-found",
    "message": "No country was found with the supplied code. Use the ISO 3166-1 alpha-2 form (e.g. `CO`, `US`).",
    "details": []
  },
  "meta": {
    "requestId": "b9b1704baffab21150213c02fd853975",
    "timestamp": "2026-05-23T02:00:00+00:00",
    "responseTimeMs": 1.4
  }
}
429

Request limit exceeded.

Possible errors

Codes this endpoint can return in error.code. The full detail lives in the catalog.

See the full catalog
GET /api/v6/tools/countries/{code}
curl -X GET 'https://developers.hablame.co/api/v6/tools/countries/CO?lang=es' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer hk_YOUR_API_KEY'

Try-It

Run the request against the real API with your own API key.

The key is used only in your browser for this request. It is not stored nor sent anywhere else.

Parameters

ISO 3166-1 alpha-2 country code (CO, MX, US...). Case-insensitive.

ISO-639-1 locale. Returns a flat name in that locale instead of the full names map.

GET https://developers.hablame.co/api/v6/tools/countries/CO?lang=es

Response

You have not sent a request yet.