'https://restcountries.eu/rest/v2/all' not working, How to get all countries now?
Asked Answered
F

1

5

Before week ago, https://restcountries.eu/rest/v2/all was giving country code but now it is not working so how can someone use it to get all country code.

Code throws The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure from where the rest call made of 'https://restcountries.eu/rest/v2/all' this API.

Any alternate API to get all country code, name and flag. as we are using it at ASP.Net side, front-end side(Angular) Andriod, and iOS App. It would be better to have API.

Falchion answered 28/9, 2021 at 13:51 Comment(3)
what do you mean by "become secure"?Olga
I am working on support project and API was working fine before but suddenly it start throwing 'The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure' error from rest call made of 'restcountries.eu/rest/v2/all'Falchion
Seems the cert is invalid. The only one who can fix this is the provider of this api, or you decide to ignore invalid certs (which isn't a good idea and may not even be possible under certain conditions, for instance in an iOS App)Olga
F
11

The same issue on their git repo.

This is now available in v2 version and v3 version on restcountries.com. Response takes some time and it has a lot of information.

Falchion answered 29/9, 2021 at 4:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.