---
id: "cow_country_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Correlates of War country code (COW state number)"
regexp: "^\\d{1,3}$"
categories: ["government", "geo"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/cow_country_code"
---

# Correlates of War country code (COW state number) (`cow_country_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Numeric code of a state in the State System Membership List of the Correlates of War (COW) project, from 2 (United States of America) to 990 (Samoa): 200 United Kingdom, 255 Germany, 305 Austria, 365 Russia, 710 China, 900 Australia. Political science datasets (COW, V-Dem, Polity, UCDP) use it to join country-years and often name it ccode or COWcode. The list keeps the codes of states that no longer exist (260 German Federal Republic, 300 Austria-Hungary). The codes are not ISO 3166-1 numeric codes (countrycode_num), and the three-letter COW state abbreviations (UKG, GMY) are not ISO alpha-3 codes.

- Parent datatype: [`country`](https://registry.apicrafter.io/datatype/country.md)
- Personal data (PII): no
- Categories: Government related (government), Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{1,3}$
```

## Examples

- `2` — United States of America
- `305` — Austria
- `900` — Australia
- `260` — German Federal Republic (1955-1990)
- `1000` (invalid example) — Codes have at most three digits

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `cowcountrycodebyname` (field, `common/survey.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Sources

- doc: <https://correlatesofwar.org/cow-country-codes/>
- doc: <https://correlatesofwar.org/data-sets/state-system-membership/>
- wikipedia: <https://en.wikipedia.org/wiki/Correlates_of_War>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/cow_country_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/government/cow_country_code.yaml>
