---
title: "GET /countries/{country_code}"
method: GET
path: "/countries/{country_code}"
---

# GET /countries/{country_code}

`GET /countries/{country_code}`

## Request

- Base URL: `https://developers.whmcs.com/api/v2`
- URL: `https://developers.whmcs.com/api/v2/countries/{country_code}`
- Auth: none declared

Retrieve all supported states for a specific country.

## Path parameters

- `country_code` string, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Success

- object
  - `data` Country, required
    - `code` string, required: The ISO 3166-1 alpha-2 country code or the customized country code.
    - `name` string, required
    - `states` State[], nullable
      - `code` string, required
      - `name` string, required

## Other responses

- `default`: General Error

---

[API](https://skmtc.dev/whmcs/apis/whmcs-api.md) - [All operations](https://skmtc.dev/whmcs/apis/whmcs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whmcs/apis/whmcs-api/revisions/bd3848ddbc3f?raw)
