---
id: "owid_entity_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Our World in Data entity code"
regexp: "^OWID_[A-Z]{2,4}$"
categories: ["geo"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/owid_entity_code"
---

# Our World in Data entity code (`owid_entity_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.

Code that Our World in Data gives to an entity without an ISO 3166-1 alpha-3 code, OWID_ and two to four capitals: continents and income groups (OWID_AFR Africa, OWID_EUR Europe, OWID_WRL World, OWID_HIC High-income countries, OWID_EUN European Union) and countries or parts of countries outside ISO 3166 (OWID_KOS Kosovo, OWID_CYN Northern Cyprus, OWID_ENG England, OWID_SCT Scotland). The iso_code column of the OWID datasets (COVID-19, energy, CO2) mixes these codes with alpha-3 codes (countrycode_alpha3); a column of aggregates holds only OWID codes.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^OWID_[A-Z]{2,4}$
```

## Examples

- `OWID_WRL` — World
- `OWID_AFR` — Africa (OWID COVID-19 data on the Africa Data Hub portal)
- `OWID_KOS` — Kosovo
- `OWID_HIC` — High-income countries
- `AFG` (invalid example) — ISO 3166-1 alpha-3: countrycode_alpha3

## Metacrafter rules

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

- `owidentitycodevalue` (data, `common/intcodes.yaml`)

## Supported by tools

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

## Translations

- ru: Код объекта Our World in Data: Код OWID_ для объектов без кода ISO 3166-1 alpha-3 в данных Our World in Data, например OWID_WRL (мир) или OWID_KOS (Косово).

## Sources

- doc: <https://github.com/owid/covid-19-data/tree/master/public/data>
- doc: <https://ourworldindata.org/>

## Quality

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

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