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. Built with NodeJS, ExpressJS, MongoDB, Heroku. Looking for Sponsor/Investor for full project. Contact Here.

Documentation

Root URL: https://bdapis.herokuapp.com

Namespace: /api

Version: Version number. For Example: /v1.0

v1.x Routes available
Route: /divisions
All Divisions
                                division: String
                                divisionbn: String
                            
Route: /districts
All Districts
                                district: String
                                districtbn: String
                            
Route: /division/:divisionName
All Districts and Upazilla of the given Division
                                district: String
                                upazilla: array/list
                            
v2.x Routes not available
Route: /division/:divisionName
All Districts, Upazilla, Thana, Post Office, Post Code of the given Division
                                district: object {en: String, bn: 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} }
                            
Route: /district/:districtName
All Upazilla, Thana, Post Office, Post Code of the given District
                                upazilla: object {en: String, bn: String}
                                thana: object {en: String, bn: String}
                                post: object { postOffice: {en: String, bn: String}, postCode: {en: Number, bn: Number} }
                            
Route: /upazilla
All Upazilla
                                upazilla: String
                                upazillabn: String
                            
Route: /thana
All Thana
                                thana: String
                                thanabn: String
                            
Route: /postOffice
All Post Office, Post Codes
                                postOffice: String
                                postOfficebn: String
                                postCode: String
                                postCodebn: String
                            

Examples

Route: https://bdapis.herokuapp.com/api/v1.0/divisions
                        
                            {
                                "status": {
                                    "code": 200,
                                    "message": "ok",
                                    "date": "2020-06-30T14:19:13+06:00"
                                },
                                "data": [
                                    {
                                        "_id": "barishal",
                                        "division": "Barishal",
                                        "divisionbn": "বরিশাল"
                                    },
                                    {
                                        "_id": "chattogram",
                                        "division": "Chattogram",
                                        "divisionbn": "চট্টগ্রাম"
                                    },
                                    {
                                        "_id": "dhaka",
                                        "division": "Dhaka",
                                        "divisionbn": "ঢাকা"
                                    },
                                    {
                                        "_id": "khulna",
                                        "division": "Khulna",
                                        "divisionbn": "খুলনা"
                                    },
                                    {
                                        "_id": "mymensingh",
                                        "division": "Mymensingh",
                                        "divisionbn": "ময়মনসিংহ"
                                    },
                                    {
                                        "_id": "rajshahi",
                                        "division": "Rajshahi",
                                        "divisionbn": "রাজশাহী"
                                    },
                                    {
                                        "_id": "rangpur",
                                        "division": "Rangpur",
                                        "divisionbn": "রংপুর"
                                    },
                                    {
                                        "_id": "sylhet",
                                        "division": "Sylhet",
                                        "divisionbn": "সিলেট"
                                    }
                                ]
                            }
                        
                    
Route: https://bdapis.herokuapp.com/api/v1.0/division/rangpur
                        
                            {
                                "status": {
                                    "code": 200,
                                    "message": "ok",
                                    "date": "2020-06-30T14:55:58+06:00"
                                },
                                "data": [
                                    {
                                        "_id": "dinajpur",
                                        "district": "Dinajpur",
                                        "upazilla": [
                                            "Birampur",
                                            "Birganj",
                                            "Biral",
                                            "Bochaganj",
                                            "Chirirbandar",
                                            "Dinajpur Sadar",
                                            "Ghoraghat",
                                            "Hakimpur",
                                            "Kaharole",
                                            "Khansama",
                                            "Nawabganj",
                                            "Parbatipur",
                                            "Phulbari"
                                        ]
                                    },
                                    {
                                        "_id": "gaibandha",
                                        "district": "Gaibandha",
                                        "upazilla": [
                                            "Phulchhari",
                                            "Gaibandha Sadar",
                                            "Gobindaganj",
                                            "Palashbari",
                                            "Sadullapur",
                                            "Sughatta",
                                            "Sundarganj"
                                        ]
                                    },
                                    {
                                        "_id": "kurigram",
                                        "district": "Kurigram",
                                        "upazilla": [
                                            "Bhurungamari",
                                            "Char Rajibpur",
                                            "Chilmari",
                                            "Kurigram Sadar",
                                            "Nageshwari",
                                            "Phulbari",
                                            "Rajarhat",
                                            "Raomari",
                                            "Ulipur"
                                        ]
                                    },
                                    {
                                        "_id": "lalmonirhat",
                                        "district": "Lalmonirhat",
                                        "upazilla": [
                                            "Aditmari",
                                            "Hatibandha",
                                            "Kaliganj",
                                            "Lalmonirhat Sadar",
                                            "Patgram"
                                        ]
                                    },
                                    {
                                        "_id": "nilphamari",
                                        "district": "Nilphamari",
                                        "upazilla": [
                                            "Dimla",
                                            "Domar",
                                            "Jaldhaka",
                                            "Kishoreganj",
                                            "Nilphamari Sadar",
                                            "Saidpur"
                                        ]
                                    },
                                    {
                                        "_id": "panchagarh",
                                        "district": "Panchagarh",
                                        "upazilla": [
                                            "Atwari",
                                            "Boda",
                                            "Debiganj",
                                            "Panchagarh Sadar",
                                            "Tetulia"
                                        ]
                                    },
                                    {
                                        "_id": "rangpur",
                                        "district": "Rangpur",
                                        "upazilla": [
                                            "Badarganj",
                                            "Gangachhara",
                                            "Kaunia",
                                            "Mithapukur",
                                            "Pirgachha",
                                            "Pirganj",
                                            "Rangpur Sadar",
                                            "Taraganj"
                                        ]
                                    },
                                    {
                                        "_id": "thakurgaon",
                                        "district": "Thakurgaon",
                                        "upazilla": [
                                            "Baliadangi",
                                            "Haripur",
                                            "Pirganj",
                                            "Ranisankail",
                                            "Thakurgaon Sadar"
                                        ]
                                    }
                                ]
                            }