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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Rwanda Locations data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://rwanda.p.rapidapi.com/api/provinces";
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →