DEV Community

KM
KM

Posted on • Originally published at devjunior.com

Django API - List of States from Different Countries

Django API - States of All Countries
[TL:DR]
I was searching for a list of states of every country. There are some API projects help to reveal the currency, latitude/longitude, languages and time-zone of different countries. However, there are rarely free and simple API which simply generate lists of states. So I made one!


And here is the LINK.


[Simple to use]

To use it, simply enter the 2-characters alpha2-code at the end of the link.
For example, United States is "us", Australia is "au", Hong Kong is "hk".


Rendering the page, you will see a list of states in that country presented in JSON format.


Hope you will find it useful!

Original Post at https://devjunior.com

Top comments (1)

Collapse
 
jairajsahgal profile image
jairajsahgal

Nice work!