Codelist Item List

Returns a list of IATI codelist values stored in OIPA.

request parameters

  • code (optional): Comma separated list of codes on the codelist.
  • vocabulary (optional): Comma separated list of .
  • category (optional): Comma separated list of categories (if applicable for the codelist).

Ordering

API request may include ordering parameter. This parameter controls the order in which results are returned.

Results can be ordered by:

  • name

The user may also specify reverse orderings by prefixing the field name with '-', like so: -name

Result details

Each item contains all information on the codelist items being shown.

GET /api/codelists/GeographicalPrecision/
HTTP 200 OK
						Allow: GET, HEAD, OPTIONS
						Content-Type: application/json
						Vary: Accept
						
					[
    {
        "code": "1",
        "name": "Exact location"
    },
    {
        "code": "2",
        "name": "Near exact location"
    },
    {
        "code": "3",
        "name": "Second order administrative division"
    },
    {
        "code": "4",
        "name": "First order administrative division"
    },
    {
        "code": "5",
        "name": "Estimated coordinates"
    },
    {
        "code": "6",
        "name": "Independent political entity"
    },
    {
        "code": "7",
        "name": "Unclear - capital"
    },
    {
        "code": "8",
        "name": "Local or national capital"
    },
    {
        "code": "9",
        "name": "Unclear - country"
    }
]