Welcome to mikoa API documentation, the API is prepared to help make it easy fetch any region, districts,wards and streets. We are creating an online portal where users can help fill in missing data and it will be reflected after aproval by the moderation Team.
BASE URL: https://mikoa.kitivopoint.com
GET /api/v1/regions
[
{
"id": 1,
"name": "Shinyanga",
"code": "37",
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z"
},
{
"id": 2,
"name": "Mara",
"code": "31",
"created_at": "2021-11-07T15:19:00.000000Z",
"updated_at": "2021-11-07T15:19:00.000000Z"
}
GET /api/v1/districts
[
{
"name": "Butiama",
"code": "312"
},
{
"name": "Rorya",
"code": "313"
}: "372"
GET /api/v1/wards
[
{
"name": "Mjini",
"code": 35
},
{
"name": "Kambarage",
"code": 12
}
]
GET /api/v1/Streets
{
"name":"Bugayambelele magharibi",
"code":"NULL"
}
GET /api/v1/filter_districts_by_region
Parameter | Type | Description |
---|---|---|
region |
string |
Required. Region ID or name |
{
"id": 151,
"name": "Dodoma\ncbd",
"code": "411",
"region_id": 26,
"created_at": "2021-11-07T15:21:33.000000Z",
"updated_at": "2021-11-07T15:21:33.000000Z"
},
{
"id": 152,
"name": "Dodoma",
"code": "412",
"region_id": 26,
"created_at": "2021-11-07T15:21:33.000000Z",
"updated_at": "2021-11-07T15:21:33.000000Z"
}
GET /api/v1/filter_wards_by_district
Parameter | Type | Description |
---|---|---|
district |
string |
Required. District ID or name |
{
"id": 479,
"name": "Machame mashariki",
"code": 87,
"district_id": 19,
"created_at": "2021-11-07T15:19:11.000000Z",
"updated_at": "2021-11-07T15:19:11.000000Z"
},
{
"id": 480,
"name": "Machame narumu",
"code": 23,
"district_id": 19,
"created_at": "2021-11-07T15:19:11.000000Z",
"updated_at": "2021-11-07T15:19:11.000000Z"
}
GET /api/v1/filter_streets_by_ward
Parameter | Type | Description |
---|---|---|
ward |
string |
Required. ward ID or name |
{
"id": 7221,
"name": "Kibaoni",
"code": 54,
"ward_id": 490,
"created_at": "2021-11-07T15:19:11.000000Z",
"updated_at": "2021-11-07T15:19:11.000000Z"
},
{
"id": 7222,
"name": "Bomani",
"code": 24,
"ward_id": 490,
"created_at": "2021-11-07T15:19:11.000000Z",
"updated_at": "2021-11-07T15:19:11.000000Z"
}
GET /api/v1/regions_with_districts
[
{
"id": 1,
"name": "Shinyanga",
"code": "37",
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z",
"districts": [
{
"id": 1,
"name": "Shinyanga\ncbd",
"code": "371",
"region_id": 1,
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z"
},
{
"id": 2,
"name": "Shinyanga",
"code": "372",
"region_id": 1,
"created_at": "2021-11-07T15:18:53.000000Z",
"updated_at": "2021-11-07T15:18:53.000000Z"
}
GET /api/v1/districts_with_wards
[
{
"id": 1,
"name": "Shinyanga\ncbd",
"code": "371",
"region_id": 1,
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z",
"wards": [
{
"id": 1,
"name": "Mjini",
"code": 87,
"district_id": 1,
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z"
},
{
"id": 2,
"name": "Kambarage",
"code": 855,
"district_id": 1,
"created_at": "2021-11-07T15:18:52.000000Z",
"updated_at": "2021-11-07T15:18:52.000000Z"
}
GET /api/v1/wards_with_streets
GET /api/v1/total_regions
{
"total": 158
}
GET /api/v1/total_districts
{
"total": 3321
}
GET /api/v1/total_wards
GET /api/v1/total_streets
GET /api/v1/total_districts_by_region
Parameter | Type | Description |
---|---|---|
region |
string |
Required. region ID or name |
GET /api/v1/total_wards_by_district
Parameter | Type | Description |
---|---|---|
district |
string |
Required. ID or name |
GET /api/v1/total_streets_by_ward
Parameter | Type | Description |
---|---|---|
ward |
string |
Required. ID or name |