Vietnam Administrative Divisions API

Vietnam Administrative Divisions API

The Vietnam Administrative Divisions API is a tool that provides access to information about the administrative divisions of Vietnam. This API enables developers to retrieve data on the provinces, districts, and communes of Vietnam, making it easier to build applications that require location-based data.

API description

About the API: 

The Vietnam Administrative Divisions API is a powerful tool that provides access to information about the administrative divisions of Vietnam. This API enables developers to retrieve data on the provinces, districts, and communes of Vietnam, making it easier to build applications that require location-based data.

Vietnam is divided into 63 provinces and cities, which are further divided into districts and communes. Each of these administrative divisions has a unique code, name, and location, and the Vietnam Administrative Divisions API provides developers with access to this information in a structured and organized manner.

One key use case for the Vietnam Administrative Divisions API is geolocation-based applications. By providing developers with access to location-based data, the API can be used to build applications that require precise location information. For example, a delivery service could use the API to identify the location of a customer and determine the most efficient delivery route.

Another use case for the Vietnam Administrative Divisions API is demographic analysis. By analyzing data on the population and location of each administrative division, developers can gain insights into the demographics of different regions of Vietnam. This information can be used to inform business decisions, such as where to open a new store or launch a new product.

The Vietnam Administrative Divisions API can also be useful in disaster response and emergency management. By providing developers with access to real-time data on the location of administrative divisions, emergency responders can quickly identify affected areas and coordinate their response efforts.

In addition, the Vietnam Administrative Divisions API can be used in government and public sector applications. For example, it could be used by government agencies to track the location and distribution of public services, or to analyze trends in population growth and migration.

Overall, the Vietnam Administrative Divisions API is a valuable tool for developers who need access to location-based data on the administrative divisions of Vietnam. With its ability to provide structured and organized data on provinces, districts, and communes, the API can be used to build a wide range of applications and inform important business and government decisions.

 

What this API receives and what your API provides (input/output)?

Call any endpoint and receive the administrative divisions of Vietnam. 

  

What are the most common uses cases of this API?

  1. Logistics and Transportation: The Vietnam Administrative Divisions API can be used by logistics and transportation companies to optimize their delivery routes based on the location of administrative divisions. By analyzing data on the provinces, districts, and communes, companies can determine the most efficient routes and reduce delivery times.

  2. Real Estate: The Vietnam Administrative Divisions API can be used by real estate companies to analyze demographic data and trends in different regions of Vietnam. By gaining insights into the population, age distribution, and other characteristics of different administrative divisions, companies can make informed decisions about where to invest in new real estate projects.

  3. Government and Public Services: The Vietnam Administrative Divisions API can be used by government agencies to track the distribution of public services such as healthcare, education, and social welfare. By analyzing data on the location and population of different administrative divisions, agencies can ensure that services are distributed equitably across the country.

  4. Agriculture: The Vietnam Administrative Divisions API can be used by farmers and agricultural companies to optimize their crop production based on the location of administrative divisions. By analyzing data on climate, soil quality, and other factors in different regions of Vietnam, farmers can make informed decisions about which crops to plant and where.

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation

API Documentation

Endpoints


This endpoint will return back all names of cities in Vietnam

 



                                                                            
GET https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1405/vietnam+cities
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"code":"01","name":"Thành phố Hà Nội","unit":"Thành phố Trung ương"},{"code":"02","name":"Tỉnh Hà Giang","unit":"Tỉnh"},{"code":"04","name":"Tỉnh Cao Bằng","unit":"Tỉnh"},{"code":"06","name":"Tỉnh Bắc Kạn","unit":"Tỉnh"},{"code":"08","name":"Tỉnh Tuyên Quang","unit":"Tỉnh"},{"code":"10","name":"Tỉnh Lào Cai","unit":"Tỉnh"},{"code":"11","name":"Tỉnh Điện Biên","unit":"Tỉnh"},{"code":"12","name":"Tỉnh Lai Châu","unit":"Tỉnh"},{"code":"14","name":"Tỉnh Sơn La","unit":"Tỉnh"},{"code":"15","name":"Tỉnh Yên Bái","unit":"Tỉnh"},{"code":"17","name":"Tỉnh Hoà Bình","unit":"Tỉnh"},{"code":"19","name":"Tỉnh Thái Nguyên","unit":"Tỉnh"},{"code":"20","name":"Tỉnh Lạng Sơn","unit":"Tỉnh"},{"code":"22","name":"Tỉnh Quảng Ninh","unit":"Tỉnh"},{"code":"24","name":"Tỉnh Bắc Giang","unit":"Tỉnh"},{"code":"25","name":"Tỉnh Phú Thọ","unit":"Tỉnh"},{"code":"26","name":"Tỉnh Vĩnh Phúc","unit":"Tỉnh"},{"code":"27","name":"Tỉnh Bắc Ninh","unit":"Tỉnh"},{"code":"30","name":"Tỉnh Hải Dương","unit":"Tỉnh"},{"code":"31","name":"Thành phố Hải Phòng","unit":"Thành phố Trung ương"},{"code":"33","name":"Tỉnh Hưng Yên","unit":"Tỉnh"},{"code":"34","name":"Tỉnh Thái Bình","unit":"Tỉnh"},{"code":"35","name":"Tỉnh Hà Nam","unit":"Tỉnh"},{"code":"36","name":"Tỉnh Nam Định","unit":"Tỉnh"},{"code":"37","name":"Tỉnh Ninh Bình","unit":"Tỉnh"},{"code":"38","name":"Tỉnh Thanh Hóa","unit":"Tỉnh"},{"code":"40","name":"Tỉnh Nghệ An","unit":"Tỉnh"},{"code":"42","name":"Tỉnh Hà Tĩnh","unit":"Tỉnh"},{"code":"44","name":"Tỉnh Quảng Bình","unit":"Tỉnh"},{"code":"45","name":"Tỉnh Quảng Trị","unit":"Tỉnh"},{"code":"46","name":"Tỉnh Thừa Thiên Huế","unit":"Tỉnh"},{"code":"48","name":"Thành phố Đà Nẵng","unit":"Thành phố Trung ương"},{"code":"49","name":"Tỉnh Quảng Nam","unit":"Tỉnh"},{"code":"51","name":"Tỉnh Quảng Ngãi","unit":"Tỉnh"},{"code":"52","name":"Tỉnh Bình Định","unit":"Tỉnh"},{"code":"54","name":"Tỉnh Phú Yên","unit":"Tỉnh"},{"code":"56","name":"Tỉnh Khánh Hòa","unit":"Tỉnh"},{"code":"58","name":"Tỉnh Ninh Thuận","unit":"Tỉnh"},{"code":"60","name":"Tỉnh Bình Thuận","unit":"Tỉnh"},{"code":"62","name":"Tỉnh Kon Tum","unit":"Tỉnh"},{"code":"64","name":"Tỉnh Gia Lai","unit":"Tỉnh"},{"code":"66","name":"Tỉnh Đắk Lắk","unit":"Tỉnh"},{"code":"67","name":"Tỉnh Đắk Nông","unit":"Tỉnh"},{"code":"68","name":"Tỉnh Lâm Đồng","unit":"Tỉnh"},{"code":"70","name":"Tỉnh Bình Phước","unit":"Tỉnh"},{"code":"72","name":"Tỉnh Tây Ninh","unit":"Tỉnh"},{"code":"74","name":"Tỉnh Bình Dương","unit":"Tỉnh"},{"code":"75","name":"Tỉnh Đồng Nai","unit":"Tỉnh"},{"code":"77","name":"Tỉnh Bà Rịa - Vũng Tàu","unit":"Tỉnh"},{"code":"79","name":"Thành phố Hồ Chí Minh","unit":"Thành phố Trung ương"},{"code":"80","name":"Tỉnh Long An","unit":"Tỉnh"},{"code":"82","name":"Tỉnh Tiền Giang","unit":"Tỉnh"},{"code":"83","name":"Tỉnh Bến Tre","unit":"Tỉnh"},{"code":"84","name":"Tỉnh Trà Vinh","unit":"Tỉnh"},{"code":"86","name":"Tỉnh Vĩnh Long","unit":"Tỉnh"},{"code":"87","name":"Tỉnh Đồng Tháp","unit":"Tỉnh"},{"code":"89","name":"Tỉnh An Giang","unit":"Tỉnh"},{"code":"91","name":"Tỉnh Kiên Giang","unit":"Tỉnh"},{"code":"92","name":"Thành phố Cần Thơ","unit":"Thành phố Trung ương"},{"code":"93","name":"Tỉnh Hậu Giang","unit":"Tỉnh"},{"code":"94","name":"Tỉnh Sóc Trăng","unit":"Tỉnh"},{"code":"95","name":"Tỉnh Bạc Liêu","unit":"Tỉnh"},{"code":"96","name":"Tỉnh Cà Mau","unit":"Tỉnh"}]
                                                                                                                                                                                                                    
                                                                                                    

Vietnam Cities - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1405/vietnam+cities' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Get all names of districts in a city



                                                                            
GET https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1406/districts+from+city
                                                                            
                                                                        

Districts from City - Endpoint Features
Object Description
city [Required] It is a city code got from API /cities. If not set, it will get all districts
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"code":"001","name":"Quận Ba Đình","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Ba Đình, Thành phố Hà Nội"},{"code":"002","name":"Quận Hoàn Kiếm","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Hoàn Kiếm, Thành phố Hà Nội"},{"code":"003","name":"Quận Tây Hồ","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Tây Hồ, Thành phố Hà Nội"},{"code":"004","name":"Quận Long Biên","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Long Biên, Thành phố Hà Nội"},{"code":"005","name":"Quận Cầu Giấy","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Cầu Giấy, Thành phố Hà Nội"},{"code":"006","name":"Quận Đống Đa","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Đống Đa, Thành phố Hà Nội"},{"code":"007","name":"Quận Hai Bà Trưng","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Hai Bà Trưng, Thành phố Hà Nội"},{"code":"008","name":"Quận Hoàng Mai","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Hoàng Mai, Thành phố Hà Nội"},{"code":"009","name":"Quận Thanh Xuân","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Thanh Xuân, Thành phố Hà Nội"},{"code":"016","name":"Huyện Sóc Sơn","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Sóc Sơn, Thành phố Hà Nội"},{"code":"017","name":"Huyện Đông Anh","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Đông Anh, Thành phố Hà Nội"},{"code":"018","name":"Huyện Gia Lâm","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Gia Lâm, Thành phố Hà Nội"},{"code":"019","name":"Quận Nam Từ Liêm","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Nam Từ Liêm, Thành phố Hà Nội"},{"code":"020","name":"Huyện Thanh Trì","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Thanh Trì, Thành phố Hà Nội"},{"code":"021","name":"Quận Bắc Từ Liêm","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Bắc Từ Liêm, Thành phố Hà Nội"},{"code":"250","name":"Huyện Mê Linh","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Mê Linh, Thành phố Hà Nội"},{"code":"268","name":"Quận Hà Đông","unit":"Quận","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Quận Hà Đông, Thành phố Hà Nội"},{"code":"269","name":"Thị xã Sơn Tây","unit":"Thị xã","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Thị xã Sơn Tây, Thành phố Hà Nội"},{"code":"271","name":"Huyện Ba Vì","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Ba Vì, Thành phố Hà Nội"},{"code":"272","name":"Huyện Phúc Thọ","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Phúc Thọ, Thành phố Hà Nội"},{"code":"273","name":"Huyện Đan Phượng","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Đan Phượng, Thành phố Hà Nội"},{"code":"274","name":"Huyện Hoài Đức","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Hoài Đức, Thành phố Hà Nội"},{"code":"275","name":"Huyện Quốc Oai","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Quốc Oai, Thành phố Hà Nội"},{"code":"276","name":"Huyện Thạch Thất","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Thạch Thất, Thành phố Hà Nội"},{"code":"277","name":"Huyện Chương Mỹ","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Chương Mỹ, Thành phố Hà Nội"},{"code":"278","name":"Huyện Thanh Oai","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Thanh Oai, Thành phố Hà Nội"},{"code":"279","name":"Huyện Thường Tín","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Thường Tín, Thành phố Hà Nội"},{"code":"280","name":"Huyện Phú Xuyên","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Phú Xuyên, Thành phố Hà Nội"},{"code":"281","name":"Huyện Ứng Hòa","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Ứng Hòa, Thành phố Hà Nội"},{"code":"282","name":"Huyện Mỹ Đức","unit":"Huyện","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Huyện Mỹ Đức, Thành phố Hà Nội"}]
                                                                                                                                                                                                                    
                                                                                                    

Districts from City - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1406/districts+from+city?city=01' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Get all names of wards in a district in Vietnam

 



                                                                            
GET https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1407/get+district+wards
                                                                            
                                                                        

Get District Wards - Endpoint Features
Object Description
district [Required] It is district code got from API /districts It not set, return all wards
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"code":"00001","name":"Phường Phúc Xá","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Phúc Xá, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00004","name":"Phường Trúc Bạch","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Trúc Bạch, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00006","name":"Phường Vĩnh Phúc","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Vĩnh Phúc, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00007","name":"Phường Cống Vị","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Cống Vị, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00008","name":"Phường Liễu Giai","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Liễu Giai, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00010","name":"Phường Nguyễn Trung Trực","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Nguyễn Trung Trực, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00013","name":"Phường Quán Thánh","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Quán Thánh, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00016","name":"Phường Ngọc Hà","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Ngọc Hà, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00019","name":"Phường Điện Biên","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Điện Biên, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00022","name":"Phường Đội Cấn","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Đội Cấn, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00025","name":"Phường Ngọc Khánh","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Ngọc Khánh, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00028","name":"Phường Kim Mã","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Kim Mã, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00031","name":"Phường Giảng Võ","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Giảng Võ, Quận Ba Đình, Thành phố Hà Nội"},{"code":"00034","name":"Phường Thành Công","unit":"Phường","district_code":"001","district_name":"Quận Ba Đình","province_code":"01","province_name":"Thành phố Hà Nội","full_name":"Phường Thành Công, Quận Ba Đình, Thành phố Hà Nội"}]
                                                                                                                                                                                                                    
                                                                                                    

Get District Wards - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1770/vietnam+administrative+divisions+api/1407/get+district+wards?district=001' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Vietnam Administrative Divisions API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
1,214ms

Useful links:


Category:


Tags: