---
title: "Get a subdiv by id"
method: GET
path: "/country/{country_id}/subdiv/{id}"
tags: ["country"]
---

# Get a subdiv by id

`GET /country/{country_id}/subdiv/{id}`

## Request

- Base URL: `https://submitapi.dvidshub.net`
- URL: `https://submitapi.dvidshub.net/country/{country_id}/subdiv/{id}`
- Auth: OAuth 2
  - Authorization code: `https://api.dvidshub.net/auth/authorize`
  - Token URL: `https://api.dvidshub.net/auth/access_token` scopes: `basic`, `email`, `upload`
- TypeScript: <https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/docs/country/:country_id/subdiv/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

A CountrySubdiv object

- object
  - `data` object, required: Represents a country's subdivision (such as state or province) known to the DVIDS system for the purpose of designating media asset location
    - `id` string, required
    - `type` 'country-subdiv', required
    - `attributes` object, required
      - `name` string: The common or short-form name of this subdiv
      - `full_name` string: The long or official name of this subdiv
      - `type` 'State' | 'Province': The type of subdiv

## Other responses

- `404`: The object identified by path parameters does not exist.

---

[API](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api.md) - [All operations](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/revisions/921b385ab6b9?raw)
