Free REST API for countries, states and cities

Follow the below steps from which you can access the free APIs for the country, state, and city information


Request access for APIs

Country State City Dropdown Demo

{ "country": "None", "state": "None", "city": "None" }

Steps to access the APIs

Before consuming any of the APIs, Generate the Authorization token using the above mentioned URL along with your email and api_token, In the response you will be seeing the auth_token which needs to passed in any API using the Bearer Authentication as shown below

Request 1 : GET https://www.universal-tutorial.com/api/getaccesstoken
var req = unirest("GET", "https://www.universal-tutorial.com/api/getaccesstoken");

  req.headers({
    "Accept": "application/json",
    "api-token": "AuXnFjES43NqbdODZoc1anLtpO9op_9HsA7hqU56HJoxlbbNrMsUAzmsp6cqoZ0HhWQ",
    "user-email": "[email protected]"
  });
Response
{
  "auth_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7InVzZXJfZW1haWwiOiJtdmdhZGFnaUBnbWFpbC5jb20ifSwiZXhwIjoxNTY2MjM0ODU0fQ.nMWPN38zptwwDKAo11bFyjhCRuzNhZc6NqqCaYJVxP0"
}


Request : GET https://www.universal-tutorial.com/api/countries

Using the api_token and the token you have got in the above response you can make any of the REST APIs

var req = unirest("GET", "https://www.universal-tutorial.com/api/countries/");

req.headers({
  "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7InVzZXJfZW1haWwiOiJtdmdhZGFnaUBnbWFpbC5jb20ifSwiZXhwIjoxNTY2MjM0ODU0fQ.nMWPN38zptwwDKAo11bFyjhCRuzNhZc6NqqCaYJVxP0",
  "Accept": "application/json"
});
Response
[
  {
    "country_name": "Afghanistan",
    "country_short_name": "AF",
    "country_phone_code": 93
  },
  {
    "country_name": "Albania",
    "country_short_name": "AL",
    "country_phone_code": 355
  },
  {
    "country_name": "Zimbabwe",
    "country_short_name": "ZW",
    "country_phone_code": 263
  }
]


Request : GET https://www.universal-tutorial.com/api/states/United States

By using the country name as shown the URL will give you all the states belonging to the countries

Response
[
  {
      "state_name": "Alabama"
  },
  {
      "state_name": "Alaska"
  },
  {
      "state_name": "Arizona"
  },
  {
      "state_name": "Arkansas"
  },
  {
      "state_name": "Byram"
  },
  {
    "state_name": "Wyoming"
  }
]


Request : GET https://www.universal-tutorial.com/api/cities/Alaska

By using the state name will give you all the cities belonging to the states

Response
[
  {
      "city_name": "Anchorage"
  },
  {
      "city_name": "Barrow"
  },
  {
      "city_name": "Bethel"
  },
  {
    "city_name": "Wasilla"
  }
]
icon
Universal Tutorial 18-Jan-2020, 03:55 PM

Some updates have been done to increase the API performance today !!

icon
Delprane Dela 24-Jan-2020, 01:54 PM

Hi. First of all, thank you soo much for this API resource. it has been really helpful to some of us. But I would like to make a request. As I am from Ghana, I tried to select Ghana which works fine. But when I select or hit the cities endpoint with the Greater Accra Region as the parameter, I get an empty array, can this be fixed, please?

icon
Universal Tutorial 24-Jan-2020, 04:33 PM

@Delprane Dela, It's our pleasure to help you, we have done the update based on your request, kindly revert us back with your comments here or you can reach us at [email protected] for any further modifications or new requests !!

icon
Hammad Rasheed 16-Feb-2020, 06:33 PM

It stops responding after 24 hour of auth token generation. May I need to create new auth token every day?

icon
Universal Tutorial 17-Feb-2020, 11:32 AM

@Hammad, Due to security reason we expiry auth_token every 24 hrs hence users are requested to do https://www.universal-tutorial.com/api/getaccesstoken to get the new token and also we are improving the errors returned during any action in upcoming weeks.

icon
Universal Tutorial 18-Feb-2020, 05:59 PM

We have updated our APIs to show very useful message during the auth_token expiration, so API response status would be 500 and the api response would be as below during such condition { "error": { "name": "TokenExpiredError", "message": "jwt expired", "expiredAt": "2020-02-18T17:55:22.000Z" } } This helps every one to read the error message easily and if it's expired token ,you can generate the new one

icon
Shubham Naik 19-Feb-2020, 04:49 PM

i am getting 504 GateWay Timeout when a sent a request . Why is it So ?

icon
Universal Tutorial 19-Feb-2020, 05:37 PM

@Shubham, Can you please share us the API endpoint which you are trying along with the headers in an email to [email protected], So that we can help quickly.

icon
Shubham Naik 20-Feb-2020, 02:36 AM

I am sending 'get' request using Postman . Request url is : https://www.universal-tutorial.com/api/countries/ and the body in json is : { "Authorization": "nLsYM6PoE9D9ReXB_IvI-i2X-70ZauAITWgW4yiRAsEdcVsORc2awdoA5hPLroae94c eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7InVzZXJfZW1haWwiOiJtdmdhZGFnaUBnbWFpbC5jb20ifSwiZXhwIjoxNTY2MjM0ODU0fQ.nMWPN38zptwwDKAo11bFyjhCRuzNhZc6NqqCaYJVxP0", "Accept": "application/json" }

icon
Sangam Basnet 20-Feb-2020, 02:54 AM

Everything is fine with the API, but it's strange that the retrieved states are not actually in real for those countries. One example is for Australia. How many states in Australia in google gives 6 in number. But here in API response gives more than that. I assume rest of the other than 6 are suburbs name. Which is not meaningful. Thank you.

icon
Sangam Basnet 20-Feb-2020, 02:54 AM

HI

icon
Universal Tutorial 20-Feb-2020, 04:06 PM

@Sangam, Thanks for your valuable feedback and we will analyse and update the information accordingly.

icon
Sachin Kohare 24-Feb-2020, 04:59 AM

After some days it not working... returning token expired...

icon
Universal Tutorial 24-Feb-2020, 04:31 PM

@Sangam Basnet, We have updated the States and Cities for Australia based on study with various resources

icon
Universal Tutorial 24-Feb-2020, 04:33 PM

@Sachin Kohare, It's expected that the auth_token will be expired every 24 hours and you need to generate the new token, please drop us an email to [email protected] for any further assistance

icon
Sachin Kohare 25-Feb-2020, 05:42 AM

Can we get the states using country code...???

icon
Deepak Gupta 25-Feb-2020, 06:53 AM

Hello sir, Thank you so much for this api resource.

icon
Sachin Kohare 26-Feb-2020, 01:15 PM

It's good but giving some extra responses, like USA state response. It will be good if the response gets using country code. Thanks...

icon
Dharti Mirani 06-Mar-2020, 07:33 AM

Hi, I want to use this free api in culr call in php. can i?

icon
Dharti Mirani 06-Mar-2020, 07:33 AM

Hi, I want to use this free api in culr call in php. can i?

icon
Universal Tutorial 09-Mar-2020, 01:46 PM

@Dharti Mirani, Yes, of course, you can use in PHP with cURL as below <?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.universal-tutorial.com/api/getaccesstoken", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "api-token: your-api-token" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

icon
Emma Pre 09-Mar-2020, 10:35 PM

Good day, there is no cities for Abuja Federal capital territory for country Nigeria

icon
prateek kapoor 19-Mar-2020, 03:46 AM

The API has suddenly stopped responding with an error of 503 (Internal Server Error) - www.universal-tutorial.com/api/cities/Jharkhand:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error).

icon
Huu Duc Nguyen 21-Mar-2020, 11:04 AM

it will be the best if we have zip-code base on too but thank you so much

icon
Universal Tutorial 21-Mar-2020, 03:24 PM

@Emma Pre, The below list of cities have been added to the State Abuja Federal Capital Territory Abaji, Abuja, Bwari, Gwagwalada, Kuje, Kwali

icon
Universal Tutorial 21-Mar-2020, 03:25 PM

@Prateek Kapoor, It may be a temporary issue, it's always up and running

icon
prateek kapoor 25-Mar-2020, 04:02 AM

Hi, I am now getting this issue whenever i try to hit the api to get the access token - has been blocked by CORS policy: Request header field api-token is not allowed by Access-Control-Allow-Headers in preflight response.

icon
prateek kapoor 25-Mar-2020, 04:08 AM

Hi I'am facing a CORS issue when i am hitting the API from local host to get the authentication token - Access to XMLHttpRequest at 'https://www.universal-tutorial.com/api/getaccesstoken' from origin 'http://localhost' has been blocked by CORS policy: Request header field api-token is not allowed by Access-Control-Allow-Headers in preflight response.

icon
Universal Tutorial 25-Mar-2020, 07:41 AM

@Prateek, Sorry for the inconvenience and this was caused due to our server up-gradation, you can directly reach out to us in Slack for any immediate response as well https://join.slack.com/t/universaltutor5/shared_invite/zt-cxftypib-joKiDxX3q8hGvP5idp5hDQ

icon
Paul Melia 16-Apr-2020, 10:32 PM

Hi, I'm testing this using postman at the moment, I get an access token using my email address and key, but when I call the countries endpoint using the generated token, I receive an error stating that I must "Please generate the valid Bearer authorization using valid email and api_token". Any help would be greatly appreciated.

icon
Hai Nguyen Long 21-Apr-2020, 01:44 PM

How about towns? I wanna get a towns list in a city. Could you support API?

icon
Universal Tutorial 02-May-2020, 06:02 AM

@Hai Nguyen Long , We are planning the towns in later future as we need to align towns for each districts ,once we have all the data we will provide that options

icon
Universal Tutorial 02-May-2020, 02:59 PM

@Paul Melia , Hope your issue is resolved, if not you can send us information to [email protected]

icon
OZONWANKWO CHISOM 04-May-2020, 01:19 PM

thank you so much for this wonderful api, i want to suggest that you include support for country and state codes most payment gateways requires billing address for state and countries to come in codes for example NG for nigeria

icon
OZONWANKWO CHISOM 04-May-2020, 01:20 PM

i also wish to ask whether the api token also expires like the access token after 24 hours?

icon
Aimt Yadav 06-May-2020, 09:31 AM

i am trying to get all countrie .but it show some error . {"error":{"code":"PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR","fatal":false}} how to reslove this?

icon
Delprane Dela 06-May-2020, 10:06 AM

i am trying to get all countries .but it shows this error . {"error":{"code":"PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR","fatal":false}} how to reslove this?

icon
Universal Tutorial 09-May-2020, 06:54 PM

Hello all, there might be some comments which are not addressed here but are addressed through email or slack communications.

icon
Gor Muradyan 13-May-2020, 11:05 PM

is there anyway to get multiple countries states ??

icon
Gor Muradyan 13-May-2020, 11:06 PM

please answer me as soon as possible, I need to know that now )) thanks

icon
Universal Tutorial 14-May-2020, 02:08 AM

@Gor Muradyan , Currently it's possible to fetch the details of one country at time only and also in any case if you want quicker response we suggest you in contact directly in slack , Thanks !!

icon
Mutebi Raymond 18-May-2020, 01:20 PM

Hey, can I consume this API using java through retrofit?

icon
Universal Tutorial 18-May-2020, 04:22 PM

@Mutebi Raymond, Yes of course it's works with retrofit as its also one of http client

icon
Milan Patel 04-Jun-2020, 02:17 PM

Hello,@universal Tutorial -> i faced strange issue today, this all 3 apis working great for me till today noon, but now when i want to generate Token its give me error..why not working with same Code? I used in React native. - get response like - response.json() -> its working till today noon, but now its give error like JSON parse error:Unexpected 'object' , means i cant get token when i use response.json() , anything change in API? please update as soon as possible.

icon
Universal Tutorial 04-Jun-2020, 03:30 PM

@Milan Patel ,Due to lot of user traffic one of our service crashed and hence APIs were failing and now we have resolved issue

icon
Milan Patel 05-Jun-2020, 04:05 AM

@Universal tutorial, Thanks for fast response, but don't know its not working for me today also, can you please update after problem is resolved?

icon
Universal Tutorial 05-Jun-2020, 04:32 AM

@Milan Patel infact we designed this webpage in such way that the drop downs in top of page uses same API and if API are working well and drop-down works. Can you mail us the API endpoint and request headers etc so we can look into the details

icon
Hriday Modi 05-Jun-2020, 01:33 PM

Hey, Thanks for this amazingly useful API. I tried to use it for India country recently but some of the city names are being returned in states API. Example of such values are "Paschim Medinipur", "Natwar" & "Vaishali". Can you please check this?

icon
[email protected] 16-Jun-2020, 10:46 AM

Surely you need to pass the country as well as the state name in order to get the city names? Is there really no instance on the planet where two countries share the same state or province name?

icon
Universal Tutorial 18-Jun-2020, 04:54 PM

@Hriday Modi Thanks for your feedback and we have reviewed your request and it's valid , so we have removed these information from Indian states

icon
Universal Tutorial 18-Jun-2020, 04:55 PM

[email protected] , Currently we are not aware of that situation yet, kindly let us know in case you come across ?

icon
FullStack Coach 19-Jun-2020, 09:26 PM

https://www.universal-tutorial.com/api/states/United States Calling it in url, but getting response failure. I think the url contains space " " in United States. Same issue in United Kingdom. How do we call the api with these countries name? Other countries like Austrialia works. But not work on above countries.

icon
FullStack Coach 19-Jun-2020, 09:35 PM

Needed to pass the url using addingPercentEncoding for a solution. Thanks!

icon
Deshina Babineaux-Buck 23-Jun-2020, 08:11 AM

I signed up fo an access token a day or so ago, It worked fine; however. now its saying my token is expired.Why am i getting a token expired error?

icon
[email protected] 24-Jun-2020, 08:55 AM

Hello Author, Thans for making this useful api. But in this api a lot of data of bangladesh is missing. I request you to update the data of banglades. I upload two josn file one of my server in this link http://team-executive-bd.com/bd_json_data/states.json and http://team-executive-bd.com/bd_json_data/cities.json . please as early as possible update acccording to data

icon
Universal Tutorial 04-Jul-2020, 05:29 PM

Hello peqaxagar, can you please share us an email about missing details , as we have verified details in accordance with wikipedia , we wanted to be sure before adding or modifying any existing details

icon
Yaiza Muñoz 15-Jul-2020, 11:07 AM

Hello! Most of the cities in Spain are not showing up, we need to populate those lists for each state of Spain. Apart from that, in Spain "Pais Vasco" is not a state, it includes 3 states that are already on the list. When can we implement those changes? This is urgent please.

icon
Kiran Koti K 27-Jul-2020, 12:52 PM

How can i pass parameter to the States API as country name? What should be endpoint URL to get the states with given country name

icon
Chase Catalano 09-Aug-2020, 04:40 AM

In the "States" API for the United States there are a few options being returned which I don't think belong. : "Byram", "Cokato", "Lowa", "Medfield", "New Jersy" (duplicate entry and misspelled), "Ontario", "Sublimity", and "Trimble". I'm also trying to understand how to pass the authorization token from the first API call to the second API call, so I don't have to manually update it every 24 hours. Any help would be greatly appreciated.

icon
Universal Tutorial 15-Aug-2020, 04:33 PM

@Yaiza Muñoz , We have updated the states for Spain country and still if you have any queries , please reach out to us through email [email protected]

icon
Universal Tutorial 15-Aug-2020, 04:40 PM

@Chase Catalano , Thanks for you feedback, we have updated the states of USA and also regarding the token we are expiring the token due to security concern, Please reach out to us, in case in you need any further help on handling the token

icon
[email protected] 04-Sep-2020, 08:28 PM

https://www.universal-tutorial.com/api/countries/ Action: GET headers: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7InVzZXJfZW1haWwiOiJzYW5kZWVwZ3VwdGEwMjE5OTJAZ21haWwuY29tIiwiYXBpX3Rva2VuIjoiVDZWUE5SZlduTEVuZ2wwd3Z2Ny1nV3ZjT0pEcU9KSm1zdmg2Q050ajlrenVnVFJiSG91dURPU1d5N3NiYnN0bm1oMCJ9LCJleHAiOjE1OTkzMzc1NjF9.J_lvqfmX5dMW7vELnJXjaPDBzf9XgQi0tcd1lKDKXpM Accept: application/json

icon
[email protected] 04-Sep-2020, 08:29 PM

{ "error": "Please generate the valid Bearer authorization using valid email and api_token" }

icon
[email protected] 09-Oct-2020, 08:50 PM

Hello Sir. Thank you so much for this API. I have been searching for such API from last year and this API really helps me. I would like to make a request that this API has not all the cities of Pakistan. Can you please add more cities of Pakistan? Especially for North-West Frontier province of Pakistan. Thanks again.

icon
Ryan Angeles 20-Oct-2020, 10:28 AM

This is a great and simple to use API. But I think it should include a shortcode for states e.g GA for Georgia

icon
hiran chinna 02-Nov-2020, 06:13 AM

I'm getting an error 504 gateway timeout. What should I do to overcome it?

icon
Claudio Rodriguez 16-Nov-2020, 04:24 AM

Great stuff, for the US there are some states that don't belong: Ontario, Ramey, Trimble.

icon
Universal Tutorial 24-Nov-2020, 05:15 PM

@Claudio Rodriguez Thanks for your feedbacks, we are looking into this and update the details accordingly !!

icon
Sachin Kohare 02-Dec-2020, 03:04 PM

Hello, We are using ur API for the country code and facing issues in some cases. You have missed some country codes like Congo has two country codes that is +242 and +243 for Democratic Congo and Republic Congo respectively. And API giving only one code, so plz add both codes for the Congo country. Thank you!

icon
randy varela 11-Dec-2020, 06:17 PM

Shoould be Albatera instead ALbatera in Spain/Alacant/. Thanks for your work guys,

icon
Universal Tutorial 20-Dec-2020, 04:12 PM

@Sachin Kohar, We have verified the data against various sources and found that country code of Democratic Republic Of The Congo is 243 and we have updated the details accordingly.

icon
Universal Tutorial 20-Dec-2020, 04:21 PM

@randy varela, We have updated the record to Albatera

icon
[email protected] 04-Jan-2021, 10:03 PM

I'm still having the Please generate the valid Bearer authorization using valid email and api_token, everytime I try to fetch countries

icon
Manpreet Singh 15-Jan-2021, 07:40 AM

Hi I am writing your library package for Laravel so everyone can use the api easy way. Can you please tell me is there any api with whom i can Generate Token "api-token" which we are using in "https://www.universal-tutorial.com/api/getaccesstoken" so i can complete it. Thanks.

icon
Universal Tutorial 16-Jan-2021, 07:28 AM

@Manpreet Singh , You can design the library in a such a way that, allow users to pass the api-token and email address and then you can pass these information and make a call to API to fetch the token if the token is expired and you can pass these information to next subsequent APIs

icon
Wasama Jabeen 19-Jan-2021, 06:38 AM

I'm still having the Please generate the valid Bearer authorization using valid email and api_token, everytime I try to fetch countries

icon
Wasama Jabeen 19-Jan-2021, 08:11 AM

unbale to create api token.. seems like it is not working

icon
Aakash Nihalani 21-Jan-2021, 07:33 AM

Hey, I have been using your API and it is working quite well. But, there is one issue: When I call the state api with India as the country, response contains "Kenmore" as a state which is not correct. Can you please check and fix it?

icon
kernandez buhub 21-Jan-2021, 04:22 PM

It's sowing me 'Make sure to use real email address while registering.'

icon
kernandez buhub 21-Jan-2021, 04:26 PM

Waste of time. Not recommended at all. And even saying this comment too short

icon
Universal Tutorial 22-Jan-2021, 03:38 PM

@Wasama Jabeen, kernandez buhub , Issue is resolved now, Please try to generate the token now.

icon
Universal Tutorial 22-Jan-2021, 03:46 PM

@Aakash Nihalani, We have updated the states list for India, kindly check now.

icon
Oluwasegun Ige 22-Jan-2021, 04:32 PM

{"error":"Please generate the valid Bearer authorization using valid email and api_token"} when calling this API: https://www.universal-tutorial.com/api/countries/

icon
Andy Dao 23-Jan-2021, 06:37 PM

Hi, could you update provinces in Vietnam, so it will show the cities too. BTW, could you update all the provinces/states so it will show all cities in the world. Thanks. This is GREAT help!

icon
Universal Tutorial 29-Jan-2021, 03:04 PM

@Andy Dao, We will take look on the cities of Vietnam, Thanks !!

icon
SURENDRA PULI 16-Feb-2021, 05:58 AM

Error 504 Gateway time out www.universal-tutorial.com Host Error

icon
[email protected] 17-Feb-2021, 09:01 AM

I'm still having the Please generate the valid Bearer authorization using valid email and api_token, everytime I try to fetch countries

icon
assetsandequity dev 25-Feb-2021, 10:44 PM

Hello and thanks for this amazing API. My only suggestion is as regards the city in lagos state, Nigeria, which i can personally verify do not cover all cities. An update with all the available cities would be nice. Thank you

icon
assetsandequity dev 25-Feb-2021, 10:50 PM

The getaccesstoken endpoint keeps returning the same token which is expired

icon
Marian Mates 08-Mar-2021, 07:01 AM

Hello, thank you for the API. Unfortunately, many cities are missing for Romania's states (for example state api/cities/Cluj returns far fewer cities than in reality and api/cities/Satu Mare returns empty)

icon
Universal Tutorial 27-Mar-2021, 03:25 PM

@Marian Mates, We will be verifying the details and updated the details accordingly, Thanks !!

icon
[email protected] 02-Apr-2021, 12:54 PM

Useful API and sure has potential but I think we might have a future issue. I do not have any examples to share but wonder why we do not include Country name/code while searching for Cities in a state? I am throwing out an example, but assuming state Bedfordshire (United Kingdom) how can we assume that Bedfordshire exists only in United Kingdom. Potentially we can have a Bedfordshire in Canada, United States, Australia, South Africa, or any other country where British ruled!

icon
sharmila t 06-Apr-2021, 12:56 PM

I am getting this error when i access cities and countries api, Please generate the valid Bearer authorization using valid email and api_token

icon
taikus jango 13-Apr-2021, 07:53 PM

Hi, thanks for the API, it was very useful, but i have a problem, when i search the cities through a state that has 1 or more spaces it does not work, for example: https://www.universal-tutorial.com/api/cities/Baja California (Baja Californa is a state of Mexico)

icon
Universal Tutorial 16-Apr-2021, 02:19 PM

@taikus jango,You need to encode the space with %20 while making the request.

icon
[email protected] 05-May-2021, 05:57 PM

hello, when i am trying to get access token, it is showing error of "Email is not registered", but I already registered with the same email id from which I am commenting here

icon
rayankomak eghdam 18-May-2021, 07:55 AM

Hi, i am trying to get access token, it is showing error of "Email is not registered", but I already registered!

icon
Augusto Martinez 02-Jun-2021, 09:49 AM

Hi, this is a cool resource, let me point a few things though. You should implement a filter when you call for states and cities, so the states and cities are returned for a given country. Here is a flaw you can replicate in the demo on this landing page. Select Angola, from the states list choose Huila, this is returning a list of cities for Colombia and I guess that Angola too, which is misleading. Thank you guys for your efforts.

icon
Goher Amin 02-Jun-2021, 06:08 PM

"error": "Email is not registered"

icon
Augusto Martinez 04-Jun-2021, 05:02 AM

Will you consider to fix the cities endpoint? it should filter cities by country as a filter parameter, not only the state name, take the example of Angola here in you demo, select Huila as state and look at the cities result

icon
Universal Tutorial 07-Jun-2021, 05:11 PM

@Augusto Martinez, Thanks for pointing this out, we will update the API, but we will not hurry as many people are using these API, We will analyse thoroughly and update.

icon
Pranjali Khandelwal 10-Jun-2021, 01:07 PM

its not give me country data ..why?? could you please help me forr this??

icon
[email protected] 18-Jun-2021, 02:04 PM

I am continuously getting "error": "Email is not registered" issue, even though I have verified my email. What seems to be the issue?

icon
Jainish Patel 24-Jun-2021, 07:49 AM

Please can you tell me ,How To Implement This API in Python-Django>

icon
Mateusz Henicz 24-Jun-2021, 12:39 PM

aaaaaaaaaaaaaaaaaaaaaaaaaaaa

icon
Mukesh Singh 25-Jun-2021, 10:02 PM

Hi Everyone, whoever is looking for Country State City Data api. Please have a look at api that I created. http://countrystatecity.org It has swagger api documentation and you can get countries, thier States cities you can get all these by ID or iso2 code of country state or city

icon
[email protected] 28-Jun-2021, 04:04 PM

Hi, thanks for the great API. I noticed that under South Africa -> Gauteng, there is not city for Randburg, can you add it please? Not sure what the process is for requesting additions. Thanks

icon
Donald Mafa 03-Jul-2021, 08:39 AM

Hi there, thank you for the great API. However, I am getting an error, and have used postman to test. When I go through the questions here in the forum I see you have blatantly ignored the people asking about the same error. Please may you please advise how to resolve: "Please generate the valid Bearer authorization using valid email and api_token". I have done everything correctly and received a valid token which I also checked on JWT.IO

icon
[email protected] 12-Jul-2021, 10:15 AM

Hi. First of all, thank you soo much for this API resource. it has been really helpful to some of us. But I would like to make a request. If I select the State New Brunswick under the Country Canada.

icon
[email protected] 12-Jul-2021, 10:16 AM

Hi. First of all, thank you soo much for this API resource. it has been really helpful to some of us. But I would like to make a request. There are no cities available inside State New Brunswick under the Country Canada.

icon
[email protected] 12-Jul-2021, 10:16 AM

Hi. First of all, thank you soo much for this API resource. it has been really helpful to some of us. But I would like to make a request. There are no cities available inside State New Brunswick under the Country Canada.

icon
[email protected] 12-Jul-2021, 10:17 AM

Hi. First of all, thank you soo much for this API resource. it has been really helpful to some of us. But I would like to make a request. There are no cities available inside State New Brunswick under the Country Canada. Can you please add the cities of New Brunswick

icon
Zahoor Ul Haq 13-Jul-2021, 09:43 AM

well as mentioned below in comments the auth_token get expired in 24 hours, my question is can I get a new one with my api_token and user_email or they will expire too

icon
Prem Raval 26-Jul-2021, 12:45 PM

Hi, Just to start, thank you so much for this API, the API is so helpful to get the Location Data on our companies account page. I am a software engineer myself with knowledge of React, REST APIs, etc and I would live to contribute to this great open source API. I would also like to make a request for Database Change. I am from Toronto, Canada and one of my client is in a province called "British Columbia" and then there are no cities in that province. Here is the list you can refer for cities in British Columbia (https://en.wikipedia.org/wiki/List_of_cities_in_British_Columbia). Also as we are a growing startup, we will be getting clients all around the globe and we can help make this service more accurate by adding more and more locations as it comes through. Thank you again for this API.

icon
[email protected] 06-Aug-2021, 02:22 PM

Hello Team, I have started using this api and it works well. Only one thing i found is that,

icon
[email protected] 06-Aug-2021, 02:23 PM

Hello Team, I have started using this api and it works well. Only one thing i found is that,in response it says '14'more rows for states. how to get those data ? Any help would be great.

icon
[email protected] 06-Aug-2021, 02:24 PM

Hello Team, I have started using this api and it works well. Only one thing i found is that, after getting list of state it says 18 more rows so how would i get those. ANy help would be great.

icon
Universal Tutorial 18-Oct-2021, 03:45 PM

Hello all, if you have lost token, please login with email id you used and use Lost your API token ?

icon
[email protected] 28-Oct-2021, 07:33 PM

Error when calling with postman get the error Please generate the valid Bearer authorization using valid email and api_token . I copy and paste the email and api token so there are no typos

icon
haikal fuady 11-Nov-2021, 07:49 AM

please update for provincial and city data in Indonesia, because there are still many that are not appropriate and there are still many cities that are not yet available

icon
[email protected] 03-Dec-2021, 02:53 AM

Great service. Thank you! Please remove "Ontario" as a state within the "United States".

icon
Stephanie McClarthy 12-Jan-2022, 09:52 PM

When making the request I am presented with Please generate the valid Bearer authorization using valid email and api_token from postman and from the browser

icon
[email protected] 22-Jan-2022, 04:49 PM

event after registration getting error tin accesstoken api for "Email is not registered"

icon
prashant gawai 24-Jan-2022, 08:15 PM

[Violation] 'readystatechange' handler took 1870ms ,,getting this when im calling countries

icon
Yash Rajput 26-Jan-2022, 06:17 PM

error: "Email is not registered" ...?

icon
[email protected] 29-Jan-2022, 09:06 AM

After I requesting access token successfully with no error;

icon
[email protected] 29-Jan-2022, 09:06 AM

After I requesting access token successfully with no error;

icon
[email protected] 29-Jan-2022, 09:06 AM

After I requesting access token successfully with no error;

icon
[email protected] 29-Jan-2022, 09:09 AM

Sorry for the three mistakes earlier, i tried pressing enter to go to the next line...... I successfully got my auth_token but when I wanted to make request to fetch state, I keep getting an error meanwhile it worked well with postman....... This is the error I keep gettiing ---- {"error":{"name":"JsonWebTokenError","message":"invalid signature"}}

icon
Sriharika Mariyala 14-Feb-2022, 03:25 AM

i just want country as India and states and cituies according to it, but im getting this error in console: GEThttps://www.universal-tutorial.com/api/states/India

icon
Jasmohan Singh 15-Feb-2022, 04:18 PM

there is a punjab state in india and a punjab state in pakistan. This api mixes both the cities when search for punjab state. Can we find based on both country and state combination?

icon
Renato Chavez 16-Feb-2022, 07:22 PM

Hi! Thank you for this API, it's very useful. But I have a request. I'm from Peru and when I try to get "city_name" from Lima y Callao it brings me a empty array, this happen also with others states. Can this be fixed?

icon
Francisco Jimenez 23-Feb-2022, 10:50 PM

hello, i have problem with the states that have space " " , im trying to request "cities/Nueva%20Esparta" but i'm not sure if the right way (that is a state of venezuela) im try too "cities/Nueva%20esparta" please can someone helpme T-T

icon
Francisco Jimenez 23-Feb-2022, 11:17 PM

hello, i have problem with the states that have space " " , im trying to request "cities/Nueva%20Esparta" but i'm not sure if the right way (that is a state of venezuela) im try too "cities/Nueva%20esparta" please can someone helpme T-T

icon
LOVE OSUN 09-Mar-2022, 10:00 AM

Good day thanks for this great api but i requested to generate token and it gives me this error "The api_token has been already generated with your Email, Please reach out to [email protected] to get the token"

icon
Bryan Briceño 23-Mar-2022, 07:09 AM

Hello, thanks for the API, it's awesome, but i have only one bug. When I searching cities using States API, don't work when the name have spaces " ", I'm sending with %20 but its only works with countries, but with states don't work. I hope you can repair it as soom as posible. Thanks for all

icon
Bryan Briceño 23-Mar-2022, 07:16 AM

sorry, I wanted to say "When i searching using Cities API" its don´t work if the name of the state have spaces

icon
[email protected] 26-Mar-2022, 03:46 PM

Esta API es genial muchas gracias. Pueden por favor implementar en esta API las banderas de cada país ? es decir la imagen de las banderas ? Por favor

icon
Andy Ruben 27-Mar-2022, 07:27 PM

Hello, first of all, thanks to all the team behind this. But there is a problem, in cities that have blanks, you get an empty array. Could you solve this please?

icon
Carlos Rodriguez 29-Mar-2022, 08:38 PM

How to get the countries in Spanish?

icon
Ossama Elidrissi 31-Mar-2022, 07:18 PM

I use that api but it throw me that error jwt malformed that my code await axios.get("https://www.universal-tutorial.com/api/countries/",{ headers:{ Authorization:"Bearer ZyJpT8nhPcY2yeMRXPOv0QSN25aj2Dfh-sGB3Gi5OOe4aXs355CMyT82jd8NBedmfF8", Accept:"application/json" } })

icon
shantanu mali 12-Apr-2022, 07:09 AM

Please add a logout feature to the website

icon
Arturo Iván Chávez Gómez 21-Apr-2022, 07:19 PM

Hello. I have a problem with states because when I request some state that cotains a space, like Rio de Janeiro, the response is null. It happens with all states which contains spaces into the name, but, It doesn't happen with countries. Thanks for your help.

icon
Juan Salazar 03-May-2022, 01:35 AM

Hello. First of all, thank you very much for this API resource. It has been really helpful for some of us. But I would like to make a request. Since I'm from Mexico, I tried to select Mexico, which works fine. But when I select 'Estado de Mexico' as a parameter to get the list of cities in that state, I get an empty array, this happens with countries and states with a name made up of two or more words, can you fix this please?

icon
Yoelkys R. Rodríguez González 06-May-2022, 12:58 PM

Hi, I was wondering if you can add multilingual features to this list, it would be awesome to have!

icon
kirby lockard 06-May-2022, 07:16 PM

There are 4 objects that return from "https://www.universal-tutorial.com/api/states/United States" that are not US States. "47. Trimble, 44. Sublimity, 40. Ramey, 37. Ontario". Can these please be removed? It makes the query for US States nearly useless for form validation.

icon
[email protected] 15-May-2022, 05:31 AM

hi, I am chintam Anand

icon
[email protected] 15-May-2022, 05:31 AM

hi, I am chintam Anand

icon
[email protected] 15-May-2022, 05:33 AM

i trying to use your API to get list of cities and states. but I keepOn receiving the forbidden message. I am passing all the required information in headers like bearerToken, payload Type, but still i am receiving an error message. Can you help me here.

icon
Ajay Kumar 27-May-2022, 09:01 AM

Hi. First of all, thank you soo much for this API resource

icon
Hans Rondon 22-Jun-2022, 09:56 PM

Excelente API pero noté que al intentar filtrar las ciudades de x estado, no cargan, según veo es por los espacios, por ejemplo si intento buscar las ciudades de "La Guajira" no me sale ninguna

icon
Hans Rondon 11-Jul-2022, 01:58 PM

the access token only lasts about 3 days, how do I make it last for months, do you have to pay for some kind of plan?

icon
Juan 17-Jul-2022, 06:11 PM

I can't get the authorization token,

icon
Juan 17-Jul-2022, 06:13 PM

I can't get the authorization token, I'm getting Error: connect ETIMEDOUT 52.86.6.113:443 when using Postman. user-email: [email protected] Accept: application/json api-token: "the token provided in the request acces for API" Connection: keep-alive

icon
Juan 17-Jul-2022, 06:13 PM

I can't get the authorization token, I'm getting Error: connect ETIMEDOUT 52.86.6.113:443 when using Postman. user-email: [email protected] Accept: application/json api-token: "the token provided in the request acces for API" Connection: keep-alive

icon
Juan 17-Jul-2022, 06:13 PM

I can't get the authorization token, I'm getting Error: connect ETIMEDOUT 52.86.6.113:443 when using Postman. user-email: [email protected] Accept: application/json api-token: "the token provided in the request acces for API" Connection: keep-alive

icon
[email protected] 30-Sep-2022, 11:57 AM

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Cannot GET /api/getaccesstoken%0A</pre> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"752cc4cbf96cb998","version":"2022.8.1","r":1,"token":"354e309f1a274add8be94b72e468f0b7","si":100}' crossorigin="anonymous"></script> </body> </html>

icon
[email protected] 30-Sep-2022, 11:57 AM

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Cannot GET /api/getaccesstoken%0A</pre> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"752cc4cbf96cb998","version":"2022.8.1","r":1,"token":"354e309f1a274add8be94b72e468f0b7","si":100}' crossorigin="anonymous"></script> </body> </html>

icon
Subramanian chinnaraj 14-Oct-2022, 06:45 AM

BELLINGHAM city is missing when we select Massachusetts, United States. Can you please add it for us.

icon
Subramanian chinnaraj 14-Oct-2022, 03:38 PM

BELLINGHAM city is missing when we select Massachusetts, United States. Can you please add it for us?

icon
David Rua 26-Oct-2022, 01:03 AM

No funciona! aún presenta problemas cuando consulto los paises... Alguna ayuda?

icon
[email protected] 11-Nov-2022, 10:01 PM

por que me manda este mensaje : {error: 'Email is not registered'}

icon
[email protected] 24-Nov-2022, 09:26 AM

Please generate the valid Bearer authorization using valid email and api_token

icon
[email protected] 25-Nov-2022, 06:28 AM

The token we generate through name and email will be stay permanent or it will changed ?

icon
[email protected] 25-Nov-2022, 06:29 AM

The token we generate through name and email will be stay permanent or it will changed ?

icon
[email protected] 25-Nov-2022, 06:58 AM

The token we generate through name and email will be stay permanent or it will changed ?

icon
[email protected] 25-Nov-2022, 01:14 PM

The token we generate through name and email will be stay permanent or it will changed ?

icon
[email protected] 30-Nov-2022, 10:12 AM

The token we generate through name and email will be stay permanent or it will changed ?

icon
A Vishali 04-Dec-2022, 03:46 PM

"Your message wasn't delivered to [email protected] because the address couldn't be found, or is unable to receive mail." I got this mail return.

icon
[email protected] 07-Dec-2022, 01:52 PM

Hi! I keep getting an error: Email is not registered

icon
SINDHU T 20-Dec-2022, 07:29 AM

Hi, thanks for the API, it was very useful, but i have a problem, Cannot GET /api/cities/Sector%20claimed%20by%20Argentina/UK

icon
Jay Fatania 22-Dec-2022, 09:56 AM

I want to use it without expiring in every 24 hours and generate new token, what is the procedure to get it for permenent usage, if need to purchase the plan or any thing, please share it.

icon
Ankit Srivastava 23-Dec-2022, 08:22 PM

http://www.universal-tutorial.com/api/countries this is supported in Java , when i'm calling api through java it is redirecting. Is I'm doing wrong any thing ?

icon
Tushar Nain 26-Jan-2023, 02:23 PM

How many calls a day, any limitations?

icon
Shyam Baldha 02-Feb-2023, 08:02 AM

wdsadasdasdadasdasdasdsad

icon
Annaliet Iglesias 03-Feb-2023, 09:31 PM

Is it possible to show the names (countries, cities...) in another language?

icon
Kalyani Kenekar 16-Feb-2023, 05:49 AM

how to use this api

icon
Kalyani Kenekar 16-Feb-2023, 05:49 AM

how to use this api

icon
Besong Egbe 19-Feb-2023, 12:56 PM

Thanks very much for this great api which touch data all over the world. I encountered forbidden error with get cities. GET http://localhost/scourpro/GET%20https://www.universal-tutorial.com/api/cities/Adamaoua 403 (Forbidden). This is same for all states in all countries that i choose.

icon
Besong Egbe 19-Feb-2023, 01:04 PM

I'm sorry, I withdraw my previous comment, it's my error and I have fixed it. Everything is just working fine. Thanks

icon
mohd farhan 28-Feb-2023, 12:14 PM

its not working api

icon
Pravin Raj 12-Mar-2023, 10:59 AM

how to use this in deluge script

icon
copy paste 13-Mar-2023, 01:32 PM

was getting this error Access to XMLHttpRequest at 'https://www.universal-tutorial.com/api/states/United%20States' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

icon
elkin leguizamon 29-Mar-2023, 02:50 PM

is it possible to have the country is iso3 and the state is iso2? gracias

icon
Tarun K 05-Apr-2023, 12:16 PM

Giving me 500 error code. Seems server is busy or not working.

icon
Daniel Aguirre 09-May-2023, 02:56 PM

If you have "Please generate the valid Bearer authorization using valid email and api_token" error when fetching API you would try encoding access_auth. For example if you are using javascript:

icon
Daniel Aguirre 09-May-2023, 02:56 PM

If you have "Please generate the valid Bearer authorization using valid email and api_token" error when fetching API you would try encoding access_auth. For example if you are using javascript:

icon
Anil Kumar 12-May-2023, 03:49 AM

Hi, Please share my token , this error " The api_token has been already generated with your Email, Please reach out to [email protected] to get the token".

icon
Nibedita Swain 14-May-2023, 04:20 PM

where can I get my api [email protected]

icon
Alexander Santos 25-May-2023, 01:23 PM

{ "error": { "name": "JsonWebTokenError", "message": "jwt malformed" } }

icon
Alexander Santos 25-May-2023, 01:24 PM

Hi, i get this error, when i try to use https://www.universal-tutorial.com/api/countries/. -- { "error": { "name": "JsonWebTokenError", "message": "jwt malformed" } }

icon
[email protected] 08-Jun-2023, 05:09 PM

iam unable generate access token it showing un register email address

icon
HTML CSS 27-Jun-2023, 11:50 AM

"error": "Email is not registered" face this problem how to resolve it.

icon
HTML CSS 27-Jun-2023, 11:50 AM

"error": "Email is not registered" face this problem how to resolve it.

icon
RAJ KUMAR 28-Jun-2023, 02:02 AM

I face the error "Email is not registered". when I use token and Request.

icon
asad ullah baig 07-Jul-2023, 09:15 AM

Hi i have an issue using the api i'm using for my Shopify store. i got the error that unirest is not defined

icon
[email protected] 09-Jul-2023, 05:38 AM

Good evening, I think there is a problem with requests that have spaces, that is, with countries or states whose names are more than one word.

icon
[email protected] 09-Jul-2023, 05:41 AM

For those who report the error "email not registered", what they can do is register, at the top right there is an option where it says login, there it gives you the option to register, I registered and I no longer get the error they mention

icon
Anuj Gangwar 25-Jul-2023, 11:50 AM

Error message shown as : email id is not registered

icon
Anuj Gangwar 25-Jul-2023, 11:54 AM

After registering via email the error is still showing

icon
sujan chy 23-Aug-2023, 08:13 PM

cities are not available for all the states of canada for example calling the cities api with New Brunswick state the available cities are 0

icon
Kapil Chhapre 12-Oct-2023, 07:11 AM

Hello Sir, i am getting the Authorization token but when i am putting it for get countries. it is saying {"error":{"name":"JsonWebTokenError","message":"invalid token"}}. please help

icon
Robinson 29-Oct-2023, 01:17 AM

{ "error": "Please generate the valid Bearer authorization using valid email and api_token" }

icon
Juan Arango 05-Dec-2023, 02:44 PM

Cual es el tiempo de duracion del token?

icon
[email protected] 11-Dec-2023, 07:10 AM

I recently integrated the API into my project and found it incredibly useful. However, I encountered a problem wherein the API token expired after 24 hours of use. This token expiration posed a challenge for the continuous functionality of my application. Hence, I am reaching out to inquire about a potential solution to this issue. Is there a way to extend the token's validity period or obtain a more permanent access solution to ensure uninterrupted usage of the API?

icon
[email protected] 11-Dec-2023, 09:25 AM

I recently integrated the API into my project and found it incredibly useful. However, I encountered a problem wherein the API token expired after 24 hours of use. This token expiration posed a challenge for the continuous functionality of my application. Hence, I am reaching out to inquire about a potential solution to this issue. Is there a way to extend the token's validity period or obtain a more permanent access solution to ensure uninterrupted usage of the API?

icon
[email protected] 11-Dec-2023, 09:26 AM

I recently integrated the API into my project and found it incredibly useful. However, I encountered a problem wherein the API token expired after 24 hours of use. This token expiration posed a challenge for the continuous functionality of my application. Hence, I am reaching out to inquire about a potential solution to this issue. Is there a way to extend the token's validity period or obtain a more permanent access solution to ensure uninterrupted usage of the API?

icon
NIKHIL SCI 23-Dec-2023, 12:58 PM

I registered my email and verified it. After running this API, I received an error stating, 'Your email is not registered.so give me the proper solution?

icon
Ower A. Campos 25-Dec-2023, 10:09 PM

seria bueno tambien poder obtener el codigo postal

icon
Hanika Prajapati 09-Jan-2024, 07:20 AM

why i aM not getting token

icon
Francisco Paredes 22-Jan-2024, 12:52 PM

Siguen actualizando la api?

icon
AYODEJI YUSUF OYEBODE 24-Jan-2024, 11:43 AM

Is it possible for one state name to belong to multiple cities. I was thinking if you narrow down the city api to https://www.universal-tutorial.com/api/cities/United State/Alaska, i.e, including the country name and state name to city api, for specificity

icon
Nikhil Addikam 25-Jan-2024, 05:08 PM

for people getting auth token issue save the authtoken in a variable

icon
Nikhil Addikam 25-Jan-2024, 05:08 PM

for people getting auth token issue save the authtoken in a variable

icon
Nikhil Addikam 25-Jan-2024, 05:09 PM

use try { const response = await fetch('https://www.universal-tutorial.com/api/getaccesstoken', { headers: { 'Accept': 'application/json', "api-token": "", "user-email": "" } }); if (!response.ok) { throw new Error(`Failed to fetch access token. Status: ${response.status}`); } const data = await response.json(); authToken = data.auth_token;

icon
CoSchedule Developers 15-Feb-2024, 06:21 PM

How can we contribute?

icon
Victor Candiotty Espejo 03-Mar-2024, 05:34 PM

No funciona con el Token que Genera

icon
Victor Candiotty Espejo 03-Mar-2024, 05:34 PM

No funciona con el Token que Genera

icon
Tony Marriott 08-Mar-2024, 12:06 PM

Hi Guys, There are no towns/cities for the UK search for states North Yorkshire, South Yorkshire, West Yorkshire or East (Riding of) Yorkshire. All 4 are empty. There is a State Yorkshire but that has only 3 items in the city options. Can these please be addes/updated. Many thanks

icon
[email protected] 13-Mar-2024, 11:04 AM

how to use this in android studio

icon
Harshil Gupta 18-Mar-2024, 08:02 AM

Cities Data not working for India

icon
Harshil Gupta 18-Mar-2024, 08:02 AM

Cities Data not working for India

icon
Vishal Thakur 21-Mar-2024, 12:28 PM

first of all thank you so much for this api.

icon
[email protected] 31-Mar-2024, 09:12 AM

why is my api not working even after using the right fetch request syntax and generating my api correctly. I need your assistance to get it done thanks

icon
[email protected] 31-Mar-2024, 09:12 AM

why is my api not working even after using the right fetch request syntax and generating my api correctly. I need your assistance to get it done thanks

icon
akshay nagrale 04-Apr-2024, 05:54 AM

Need to update some states in the UAE as it shows two similar states: Sharjah and Sharjha. This situation is confusing.

icon
Priya Singh 09-Apr-2024, 04:25 PM

KLw5zapr-0wfvbU6m2nP8GE4kpVUzZ1KXCB6TJldMTE6fmNpvlcFFdw2C5sOyt51cO8

icon
Priya Singh 09-Apr-2024, 04:25 PM

KLw5zapr-0wfvbU6m2nP8GE4kpVUzZ1KXCB6TJldMTE6fmNpvlcFFdw2C5sOyt51cO8

icon
Priya Singh 09-Apr-2024, 04:25 PM

KLw5zapr-0wfvbU6m2nP8GE4kpVUzZ1KXCB6TJldMTE6fmNpvlcFFdw2C5sOyt51cO8

icon
Priya Singh 09-Apr-2024, 04:26 PM

how can i get api ? can anyone help me please

icon
Mas ud Yakubu 03-May-2024, 10:17 PM

is this api for javascript

icon
Seenivasaki Murugan 12-May-2024, 01:37 PM

Is i can get all the states along with country name

icon
Keshab sen 10-Jun-2024, 05:31 AM

Hello, Universal Tutorial I was following the same exact steps u declared int he tutorial. But after getting the auth token when i call the county endpoint it is showing internal server error.. please look itnto it. Error is like this :- GET https://www.universal-tutorial.com/api/countries/ 500 (Internal Server Error)

icon
[email protected] 18-Jun-2024, 05:56 AM

API is working fine but sometimes it gives me network error

icon
Diego Cumbe 27-Jun-2024, 04:05 AM

Mill Creek is a city in Snohomish County, Washington but it does not appear in the database, is it located differently ? or can it be updated ?

icon
Mayank shukla 24-Jul-2024, 12:35 PM

It says email is not registered. But I have signed up

icon
Godstime Onyibe 26-Jul-2024, 04:17 AM

i can not access my profile

icon
proen prathiksha 04-Aug-2024, 06:38 AM

not res[psive please

icon
Mudassir Khan 18-Sep-2024, 05:22 AM

i get the error email not registered

icon
Vrunda Patel 22-Sep-2024, 04:02 PM

GET https://www.universal-tutorial.com/api/states/India 500 (Internal Server Error)

icon
Vrunda Patel 22-Sep-2024, 04:03 PM

{ "error": { "name": "JsonWebTokenError", "message": "jwt must be provided" } }

icon
babar husain 15-Oct-2024, 06:13 AM

after call the request the error is show {"error":"Email is not registered"}

icon
Cristian Grisales 19-Oct-2024, 10:24 PM

Is necessary to get a new token each 24 hours yet?