Rwanda Locations API

Free to Use Varies (check documentation)

Overview

The Rwanda Locations API provides structured geographic data for Rwanda, including provinces, districts, cities, sectors, cells, and villages. It is hosted on RapidAPI and helps developers build location-based forms or maps for Rwanda with structured administrative data. A free RapidAPI key is required to access the endpoints.

💡

Beginner Tip

Sign up for a free RapidAPI account and subscribe to this API to get your X-RapidAPI-Key. Start with the provinces endpoint to explore the data hierarchy from top to bottom.

Available Data

Rwanda Locations data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Rwanda Locations",
    "description": "Rwanda Provences, Districts, Cities, Capital City, Sector, cells, villages and streets",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

id Unique numeric identifier for the administrative area.
name Official name of the province, district, sector, or other administrative unit.
parentId ID of the parent administrative unit in the geographic hierarchy.

Implementation Example

const url = "https://rapidapi.com/victorkarangwa4/api/rwanda";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden or missing RapidAPI key The required RapidAPI headers were not included in the request.
Add X-RapidAPI-Key and X-RapidAPI-Host headers to every request. Get your key at rapidapi.com.
Empty array response The requested administrative level may not exist under the specified parent.
Traverse the hierarchy top-down: provinces to districts to sectors to cells to villages, ensuring parent IDs are correct.
429 Too Many Requests You have exceeded the free tier rate limit on RapidAPI.
Upgrade your RapidAPI plan or add delays between requests to stay within limits.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 389ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →