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
[
{
"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"
}
[
{
"name" : " Butiama" ,
"code" : " 312"
},
{
"name" : " Rorya" ,
"code" : " 313"
}: "372"
[
{
"name" : " Mjini" ,
"code" : 35
},
{
"name" : " Kambarage" ,
"code" : 12
}
]
{
"name" :" Bugayambelele magharibi" ,
"code" :" NULL"
}
filter district by regions
GET /api/v1/filter_districts_by_region
Parameter
Type
Description
region
string
Required . Region ID or name
{
"id" : 151 ,
"name" : " Dodoma\n cbd" ,
"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 All regions with district
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\n cbd" ,
"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 All district with ward
GET /api/v1/districts_with_wards
[
{
"id" : 1 ,
"name" : " Shinyanga\n cbd" ,
"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
GET /api/v1/total_districts
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