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.
Call any endpoint and receive the administrative divisions of Vietnam.
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.
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.
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.
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.
Besides the number of API calls, there is no other limitation
This endpoint will return back all names of cities in Vietnam
[{"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"}]
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
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 |
[{"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"}]
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 District Wards - Endpoint Features
| Object | Description |
|---|---|
district |
[Required] It is district code got from API /districts It not set, return all wards |
[{"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"}]
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'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Each endpoint returns structured data about Vietnam's administrative divisions. The "GET Vietnam Cities" endpoint provides a list of cities, while "GET Districts from City" returns districts within a specified city. The "GET Get District Wards" endpoint lists wards within a specified district.
Key fields include "code" (unique identifier), "name" (name of the division), "unit" (type of division), and additional fields like "province_code" and "province_name" for contextual information about the administrative hierarchy.
The response data is organized as an array of JSON objects. Each object represents an administrative division, containing fields such as "code," "name," and "full_name," which provides a complete description of the division's location.
The "GET Vietnam Cities" endpoint provides city names and codes. The "GET Districts from City" endpoint offers district names and their corresponding city codes. The "GET Get District Wards" endpoint returns ward names along with their district and province information.
Users can customize requests by specifying parameters such as the city code in the "GET Districts from City" endpoint to retrieve districts for a specific city, or the district code in the "GET Get District Wards" endpoint to get wards for a specific district.
The data is sourced from official government records and administrative databases, ensuring accuracy and reliability. Regular updates and quality checks are performed to maintain data integrity.
Typical use cases include logistics optimization, demographic analysis for real estate, government service distribution tracking, and agricultural planning based on regional characteristics.
Users can leverage the returned data to build location-based applications, analyze demographic trends, and enhance service delivery by integrating precise administrative division information into their systems.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
737ms
Service Level:
100%
Response Time:
5,427ms
Service Level:
100%
Response Time:
28ms
Service Level:
100%
Response Time:
3,422ms
Service Level:
100%
Response Time:
172ms
Service Level:
100%
Response Time:
130ms
Service Level:
100%
Response Time:
4,516ms
Service Level:
100%
Response Time:
635ms
Service Level:
100%
Response Time:
223ms
Service Level:
100%
Response Time:
15ms
Service Level:
100%
Response Time:
2,239ms
Service Level:
100%
Response Time:
396ms
Service Level:
100%
Response Time:
839ms
Service Level:
100%
Response Time:
57ms
Service Level:
100%
Response Time:
268ms
Service Level:
100%
Response Time:
336ms
Service Level:
100%
Response Time:
198ms
Service Level:
100%
Response Time:
32ms
Service Level:
100%
Response Time:
268ms
Service Level:
100%
Response Time:
524ms