Mtaa API Documentation
mtaa-api · Data
Mtaa A simple REST API to access Tanzania's location information,With mtaa API you can easily query and integrate all the location in tanzania from region level to streets from your programming language of your your choice
Authentication
Sample Requests
Fetches all regions present in Tanzania and then return a response as json
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a post code and all districts in a specified region
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns all wards in a specified district and district postcode
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mtaa-api.herokuapp.com/1.0/{country}/{region}/{district}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Mtaa API Documentation?
Mtaa API Documentation is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Mtaa API Documentation is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?