Name
List countries
Full country catalog with ISO code, calling code and MCC.
HTTP method and path
/ api/ v6/ tools/ countrieshttps:
What happens when you run it
- Read only: it does not change your organization’s data.
- The call is not charged.
What it does
Returns the full country catalog the API knows about, with ISO code, calling code, mobile country code (MCC) and names in English and Spanish. Use it to render country pickers, autodetect a country from a phone prefix, or resolve MCCs.
The catalog rarely changes. The response includes Cache-Control: so your client and any intermediate CDN can amortize the traffic.
Languages
Names are provided only in English (en) and Spanish (es). Any other lang value falls back to English.
Availability and prerequisites
- Published and available in the production API v6.
- Every path starts at
https:./ / developers. hablame. co - You need a Hablame API key to call it.
Authentication and permissions
- Send your API key in the
Authorizationheader with the Bearer scheme.
Who can call it: Any valid API key.
Limits and operational notes
Usage limit: 60 requests per minute.
Path parameters
This endpoint has no path parameters.
Query parameters
| Name | Type | Description and rules |
|---|---|---|
langOptional | string | ISO-639-1 code. When specified, each country returns a flat Allowed values: |
callingCodeOptional | string | Filters countries by E.164 calling code (for example Example: |
searchOptional | string | Case-insensitive substring match on the country name in the requested locale. Minimum 2 characters. Minimum length: |
HTTP headers
| Name | Type | Description and rules |
|---|---|---|
AuthorizationRequired | string | Your API key with the Bearer scheme. Example: |
Request body
This endpoint takes no request body.
Successful responses
200
Country catalog.
{
"success": true,
"data": [
{
"code": "CO",
"code3": "COL",
"callingCode": "57",
"mcc": "732",
"flag": "https://flagcdn.com/co.svg",
"names": { "en": "Colombia", "es": "Colombia" }
},
{
"code": "MX",
"code3": "MEX",
"callingCode": "52",
"mcc": "334",
"flag": "https://flagcdn.com/mx.svg",
"names": { "en": "Mexico", "es": "México" }
}
],
"meta": {
"requestId": "b9b1704baffab211",
"clientIp": "203.0.113.45",
"timestamp": "2026-05-23T02:00:00+00:00",
"responseTimeMs": 4.12
}
}The example values are illustrative.
Response fields
| Name | Type | Description and rules |
|---|---|---|
successAlways present | boolean | |
dataAlways present | array<object> | |
data[].Always present | string | ISO 3166-1 alpha-2 (2 uppercase letters). Example: |
data[].Always present | string | ISO 3166-1 alpha-3. Example: |
data[].Always present | string | E.164 calling code, without Example: |
data[].Always present | string | Mobile Country Code (E.212). Example: |
data[].Always present | string | Flag URL (SVG). Format: |
data[]. | object | Country name per language ( |
data[]. | string | |
data[]. | string | Country name in the requested |
metaAlways present | object | Response metadata. |
meta.Always present | string | Unique request identifier (16 hexadecimal characters). It matches the Example: |
meta.Always present | string | IP the API saw your request come from. Useful if your API key only accepts certain networks. Example: |
meta.Always present | string | Date and time the response was built (ISO 8601 with offset). Format: |
meta.Always present | number | Time (ms) the server took to process the request. Example: |
Error codes
Every error response has the same shape: success set to false and an error object whose code says what happened. They are grouped here by kind, with the codes this endpoint can return.
Shape of an error response
| Name | Type | Description and rules |
|---|---|---|
successAlways present | boolean | Fixed value: |
metaAlways present | object | Response metadata. |
meta.Always present | string | Unique request identifier (16 hexadecimal characters). It matches the Example: |
meta.Always present | string | IP the API saw your request come from. Useful if your API key only accepts certain networks. Example: |
meta.Always present | string | Date and time the response was built (ISO 8601 with offset). Format: |
meta.Always present | number | Time (ms) the server took to process the request. Example: |
errorAlways present | object | |
error.Always present | string | Stable UPPER_SNAKE_CASE identifier. Clients branch on this value. Example: |
error. | integer | Legacy v5 numeric code, only when a bridge exists. Omitted for codes born in v6. Example: |
error.Always present | string | URL to the error documentation. Format: |
error.Always present | string | Human readable text, in English. It is for the developer log, not the end user: do not parse it. |
error.Always present | array<object> | Structured context (validation issues, affected resource). Empty array when there is no extra context. |
Validation
This endpoint does not declare responses of this kind.
Authentication
- 401Invalid or missing credentials.
No Bearer token was sent, and every call requires one.
Message the API returns: Authentication is required. Send your API key as `Authorization: Bearer <token>`.
The API key is not recognized: wrong format, revoked or expired.
Message the API returns: The provided API key is invalid or has expired. Please verify the value sent in the `Authorization: Bearer` header.
Permissions
The key only works from certain networks and your IP is not one of them.
Message the API returns: This API key cannot be used from this IP address. The address we saw is in `meta.clientIp`: call from one of the networks allowed for the key, or use a key that allows this one.
Your organization is suspended or closed.
Message the API returns: The organization associated with this API key is not active. Please contact support.
Usage limits
- 429Request limit exceeded.
You exceeded your organization quota for this endpoint.
Message the API returns: You have exceeded the allowed request rate for this endpoint. Please wait before retrying.
Unusually high volume from your source IP.
Message the API returns: Too many requests from this IP within a short window. Please wait before retrying.
Resource not found
This endpoint does not declare responses of this kind.
Internal errors and availability
- 503Service temporarily unavailable.
Generic 503: a service we depend on is not responding.
Other responses
This endpoint does not declare responses of this kind.
Special considerations
This endpoint has no special considerations.