DAC and CRS code lists

core

Files Size Format Created Updated License Source
17 1MB csv zip 1 week ago OECD
The DAC Secretariat maintains various code lists which are used by donors to report on their aid flows to the DAC databases. In addition, these codes are used to classify information in the DAC databases. Here you can find these codes republished in a machine readable format. They’re fetched read more
Download

Data Files

File Description Size Last changed Download Other formats
dac-members [csv] DAC members 724B dac-members [csv] dac-members [json] (2kB)
multilateral-donors [csv] Multilateral donors 1kB multilateral-donors [csv] multilateral-donors [json] (3kB)
non-dac-donors [csv] Non-DAC donors 544B non-dac-donors [csv] non-dac-donors [json] (1kB)
private-donors [csv] Private donors 92B private-donors [csv] private-donors [json] (110B)
agencies [csv] Agencies 31kB agencies [csv] agencies [json] (78kB)
nature-of-submission [csv] Nature of submission 459B nature-of-submission [csv] nature-of-submission [json] (685B)
recipients [csv] Recipients 9kB recipients [csv] recipients [json] (21kB)
channel-codes [csv] Channel codes 42kB channel-codes [csv] channel-codes [json] (75kB)
collaboration-types [csv] Collaboration types 2kB collaboration-types [csv] collaboration-types [json] (2kB)
flow-types [csv] Flow types 2kB flow-types [csv] flow-types [json] (2kB)
finance-types [csv] Finance types 10kB finance-types [csv] finance-types [json] (16kB)
finance-type-categories [csv] Finance type categories 454B finance-type-categories [csv] finance-type-categories [json] (709B)
aid-types [csv] Aid types 15kB aid-types [csv] aid-types [json] (18kB)
aid-type-categories [csv] Aid type categories 3kB aid-type-categories [csv] aid-type-categories [json] (4kB)
sectors [csv] Sectors 114kB sectors [csv] sectors [json] (151kB)
sector-categories [csv] Sector categories 22kB sector-categories [csv] sector-categories [json] (27kB)
datapackage_zip [zip] Compressed versions of dataset. Includes normalized CSV and JSON data with original data and datapackage.json. 261kB datapackage_zip [zip]

dac-members  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

multilateral-donors  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

non-dac-donors  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

private-donors  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

agencies  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
donor_name_en 2 string
donor_name_fr 3 string
agency_code 4 string
agency_name_en 5 string
agency_name_fr 6 string
acronym 7 string

nature-of-submission  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

recipients  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string
income_group 4 string
geography 5 string

channel-codes  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
category 1 string
code 2 string
name_en 3 string
acronym_en 4 string
name_fr 5 string
acronym_fr 6 string

collaboration-types  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

flow-types  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
description_en 3 string
name_fr 4 string
description_fr 5 string

finance-types  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
category 1 string
code 2 string
name_en 3 string
description_en 4 string
name_fr 5 string
description_fr 6 string

finance-type-categories  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
name_fr 3 string

aid-types  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
category 1 string
code 2 string
name_en 3 string
description_en 4 string
name_fr 5 string
description_fr 6 string

aid-type-categories  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
description_en 3 string
name_fr 4 string
description_fr 5 string

sectors  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
category 1 string
code 2 string
voluntary_code 3 string
name_en 4 string
description_en 5 string
name_fr 6 string
description_fr 7 string

sector-categories  

This is a preview version. There might be more data in the original version.

Field information

Field Name Order Type (Format) Description
code 1 string
name_en 2 string
description_en 3 string
name_fr 4 string
description_fr 5 string

datapackage_zip  

This is a preview version. There might be more data in the original version.

Read me

goodtables.io

The DAC Secretariat maintains various code lists which are used by donors to report on their aid flows to the DAC databases. In addition, these codes are used to classify information in the DAC databases.

Here you can find these codes republished in a machine readable format. They’re fetched from an excel file available on the OECD website.

Preparation

You will need: python 3.x

Run the following to download and convert the data from XLS to CSV:

pip install -r requirements.txt
python scraper.py

License

This material is licensed by its maintainers under the Public Domain Dedication and License.

Import into your tool

If you are using R here's how to get the data you want quickly loaded:

install.packages("jsonlite")
library("jsonlite")

json_file <- "http://datahub.io/core/dac-and-crs-code-lists/datapackage.json"
json_data <- fromJSON(paste(readLines(json_file), collapse=""))

# access csv file by the index starting from 1
path_to_file = json_data$resources[[1]]$path
data <- read.csv(url(path_to_file))
print(data)

In order to work with Data Packages in Pandas you need to install the Frictionless Data data package library and the pandas extension:

pip install datapackage
pip install jsontableschema-pandas

To get the data run following code:

import datapackage

data_url = "http://datahub.io/core/dac-and-crs-code-lists/datapackage.json"

# to load Data Package into storage
storage = datapackage.push_datapackage(data_url, 'pandas')

# data frames available (corresponding to data files in original dataset)
storage.buckets

# you can access datasets inside storage, e.g. the first one:
storage[storage.buckets[0]]

For Python, first install the `datapackage` library (all the datasets on DataHub are Data Packages):

pip install datapackage

To get Data Package into your Python environment, run following code:

from datapackage import Package

package = Package('http://datahub.io/core/dac-and-crs-code-lists/datapackage.json')

# get list of resources:
resources = package.descriptor['resources']
resourceList = [resources[x]['name'] for x in range(0, len(resources))]
print(resourceList)

data = package.resources[0].read()
print(data)

If you are using JavaScript, please, follow instructions below:

Install data.js module using npm:

  $ npm install data.js

Once the package is installed, use the following code snippet:

const {Dataset} = require('data.js')

const path = 'http://datahub.io/core/dac-and-crs-code-lists/datapackage.json'

// We're using self-invoking function here as we want to use async-await syntax:
(async () => {
  const dataset = await Dataset.load(path)

  // Get the first data file in this dataset
  const file = dataset.resources[0]
  // Get a raw stream
  const stream = await file.stream()
  // entire file as a buffer (be careful with large files!)
  const buffer = await file.buffer
})()

Install the datapackage library created specially for Ruby language using gem:

gem install datapackage

Now get the dataset and read the data:

require 'datapackage'

path = 'http://datahub.io/core/dac-and-crs-code-lists/datapackage.json'

package = DataPackage::Package.new(path)
# So package variable contains metadata. You can see it:
puts package

# Read data itself:
resource = package.resources[0]
data = resource.read
puts data
Datapackage.json