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

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

Request
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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

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

Related Tags

Similar APIs

View All →