---
title: "Get a state of a country by ID"
method: GET
path: "/countries/{country_id}/states/{id}"
tags: ["CountryState"]
---

# Get a state of a country by ID

`GET /countries/{country_id}/states/{id}`

## Request

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

Returns one state scoped to the given country. Public endpoint.

## Path parameters

- `country_id` string, required
- `id` string, required

## Headers

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

## Response `200`

The state.

## Other responses

- `404`: State not found for this country.

---

[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)
