---
title: "List states for a country"
method: GET
path: "/countries/{country_id}/states"
tags: ["CountryState"]
---

# List states for a country

`GET /countries/{country_id}/states`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/countries/{country_id}/states`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/countries/:country_id/states/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the states of the given country. Each state's `translations` are IRIs. Public endpoint.

## Path parameters

- `country_id` string, required

## Query parameters

- `page` integer
- `per_page` integer

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Response `200`

List of states.

---

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