GET
/api/v1/districtsDistricts of Sri Lanka API
The 25 districts with province, a short tagline and notable places — for address forms, dropdowns and travel apps.
Request
curl "https://induwara.lk/api/v1/districts"JavaScript (SDK):
import { InduwaraLK } from "https://induwara.lk/sdk/induwaralk.js";
const api = new InduwaraLK();
const data = await api.districts(/* … */);Response
{
"ok": true,
"data": {
"count": 25,
"districts": [
{ "slug": "kandy", "name": "Kandy", "province": "Central",
"tagline": "…", "notablePlaces": ["Temple of the Tooth", "…"] }
]
}
}Frequently asked questions
- Is there an API for the districts of Sri Lanka?
- Yes. GET /api/v1/districts returns all 25 districts with their province, a short tagline and notable places — handy for address forms and dropdowns.