BD API is a RestAPI service. Developed by Keramot UL Islam. Divisions, Districts, Upazilla, Thana, Post Office, Post Code etc of Bangladesh are available in Bangla and English within endpoints.
v1.x is a MVP of this project and also open-source and v1.x will always remain open-source. Do you wanto to become Sponsor/Investor for full project? Contact Here.
Base URL: https://bdapis.com
Namespace: /api
API Version: /v1.2
/divisions
division: String divisionbn: String
/districts
district: String districtbn: String
/division/:divisionName
district: String upazilla: array/list
/divisions
division: String divisionbn: String coordinates: String
/districts
district: String districtbn: String coordinates: String
/division/:divisionName
district: String coordinates: String upazilla: array/list
/divisions
division: String divisionbn: String coordinates: String
/districts
district: String districtbn: String coordinates: String
/division/:divisionName
district: String coordinates: String upazilla: array/list
/district/:districtName
district: String districtbn: String coordinates: String upazilla: array/list
/division/:divisionName
district: object {en: String, bn: String} coordinates: String upazilla: object {en: String, bn: String} thana: object {en: String, bn: String} post: object { postOffice: {en: String, bn: String}, postCode: {en: Number, bn: Number} }
/district/:districtName
upazilla: object {en: String, bn: String} thana: object {en: String, bn: String} post: object { postOffice: {en: String, bn: String}, postCode: {en: Number, bn: Number} }
/upazilla
upazilla: String upazillabn: String
/thana
thana: String thanabn: String
/postOffice
postOffice: String postOfficebn: String postCode: String postCodebn: String
https://bdapis.com/api/v1.2/divisions
{ "status": { "code": 200, "message": "ok", "date": "Wed, 12 May 2021 05:39:36 GMT" }, "data": [ { "division": "Barishal", "divisionbn": "āĻŦāĻ°āĻŋāĻļāĻžāĻ˛", "coordinates": "22.3811, 90.3372" }, { "division": "Chattogram", "divisionbn": "āĻāĻā§āĻāĻā§āĻ°āĻžāĻŽ", "coordinates": "23.1793, 91.9882" }, { "...": "You get the idea. There are 8 divisions in total." } ] }
https://bdapis.com/api/v1.2/division/rangpur
{ "status": { "code": 200, "message": "ok", "date": "Wed, 12 May 2021 05:48:38 GMT" }, "data": [ { "district": "Dinajpur", "coordinates": "25.6279, 88.6332", "upazilla": [ "Birampur", "Birganj", "Biral", "Bochaganj", "Chirirbandar", "Dinajpur Sadar", "Ghoraghat", "Hakimpur", "Kaharole", "Khansama", "Nawabganj", "Parbatipur", "Phulbari" ] }, { "district": "Gaibandha", "coordinates": "25.3297, 89.5430", "upazilla": [ "Phulchhari", "Gaibandha Sadar", "Gobindaganj", "Palashbari", "Sadullapur", "Sughatta", "Sundarganj" ] }, { "...": "You get the idea. There are 64 districts in total." } ] }
See the Pen BD API Example by Keramot UL Islam (@abmsourav) on CodePen.