---
title: "Get states by country"
method: GET
path: "/state"
tags: ["States"]
---

# Get states by country

`GET /state`

## Request

- Base URL: `https://queries.test.envia.com`
- URL: `https://queries.test.envia.com/state`
- Auth: HTTP bearer

Get states by country code. Available countries: **US** - United States, **MX** - Mexico, **CO** - Colombia, **CA** - Canada, **BR** - Brazil, **IN** - India, **CL** - Chile, **GT** - Guatemala, **AR** - Argentina, **PE** - Peru

## Query parameters

- `country_code` string, required

## Response `200`

Successful response

- object
  - `data` object[]: List of states/provinces
    - `name` string: State name
    - `code_2_digits` string: Two-digit state code
    - `code_3_digits` string: Three-digit state code
    - `country_code` string: Country code

---

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