BD Geo Console
Dataset

Metadata

Dataset and API

Version, counts and import status for the active snapshot, plus the endpoints used by this console.

Snapshot

Import metadata stored alongside the dataset.

2026-10-19-dhaka-thanas
Imported19 Oct 2026, 01:15
Loaded into memory19 Oct 2026, 08:20
Snapshot version2026-10-19-dhaka-thanas

Record counts

Current snapshot composition.

5,156 total
Divisions
8
Districts
64
Upazilas
544
Unions
4,540
Post offices
0

API surface

The console talks to these endpoints through a same-origin Next.js rewrite.

MethodPath
GET/api/v1/divisions
GET/api/v1/districts
GET/api/v1/upazilas
GET/api/v1/unions
GET/api/v1/post-offices
GET/api/v1/:resource/:code
GET/api/v1/search?q=…&type=…
GET/api/v1/hierarchy?depth=2
GET/api/v1/meta/dataset
GET/api/v1/openapi.json

Request examples

Point the base URL at the API service.

curl

API_URL="http://localhost:4000"

curl "$API_URL/api/v1/divisions?limit=5"
curl "$API_URL/api/v1/search?q=dhaka&type=district"
curl "$API_URL/api/v1/hierarchy?depth=3"
curl "$API_URL/api/v1/meta/dataset"

Response envelope

Lists include pagination metadata; single records return data only.

JSON

{
  "status": "success",
  "data": [
    {
      "code": "D-13",
      "name": "Dhaka",
      "bn_name": "ঢাকা",
      "divisionCode": "BD-13",
      "deprecated_at": null
    }
  ],
  "meta": {
    "limit": 5,
    "hasMore": true,
    "nextCursor": "eyJ..."
  }
}

Operational endpoints