Skip to main content

Regions

This endpoint allows you to retrieve all regions in Uganda.

Get All Regions

Fetches a list of all regions in Uganda.

Endpoint

GET https://api.opendataug.org/v1/regions

Headers

HeaderRequiredDescription
x-api-keyYesYour API key for authentication

Example Request

curl -X GET \
'https://api.opendataug.org/v1/regions' \
-H 'x-api-key: your_api_key_here'

Response

{
"status": "success",
"data": [
{
"id": "1",
"name": "Central",
"districts_count": 24
},
{
"id": "2",
"name": "Eastern",
"districts_count": 32
}
]
}

Response Fields

FieldTypeDescription
statusstringThe status of the request ("success" or "error")
dataarrayArray of region objects
data[].idstringUnique identifier for the region
data[].namestringName of the region
data[].districts_countnumberNumber of districts in the region

Error Responses

Status CodeDescription
401Invalid or missing API key
429Too many requests - Rate limit exceeded
500Internal server error

Rate Limiting

This endpoint is subject to rate limiting. Please refer to our rate limiting documentation for more details.

Notes

  • Uganda is divided into four main regions: Central, Eastern, Northern, and Western
  • Each region contains multiple districts