-
Notifications
You must be signed in to change notification settings - Fork 356
Hard to reach the api today ? #252
Comments
There are more people complaining here #251. We also face the same |
you can use https://restcountries.com instead :) it's a clone of this project that is updated more often |
Is yours open sourced? |
yes, I keep the original license and it's available for free :) |
@amatosg, just to keep it honest for your potential new audience, you should mention that So the one who wants to migrate to new API have also to modify his code, not just URL. |
I never said to "just change the URL", I pointed to the site with the documentation to use the API. If the docs are not clear, please let me know and I will make the amendments. |
Yeah, I realised that… I ended up forking the original url, and using the dist countries.json file in my app |
If you just need the json file, I get it from here :) |
I’m currently using https://github.com/octanna/restcountries/blob/master/src/main/resources/countriesV2.json as it’s the exact data structure that the restcountries.eu was using. No other api including yours contains population, and the JSON Object Structure is completely different. |
I have a V2 with almost the same structure (I added a png file for the flag) as this project which also includes population: |
Is it possible to have the same structure as the .eu API on your domain, but with the ability to see all countries? And PNG for flag is awesome. |
yeap :) almost all the functionallity available here is also available in V2 (Although I think I made the mistake of changing the URL structure) |
Hey buddy, most of this seems perfect, only issue I see is;
These are perfectly fine, but mainly for others to consider, only issue I see is that some things don't have a |
I've created an issue here to keep track of what you mention. I just went through the file and found only a couple of cases in which |
@amatosg Hi there, I test your v3 solution and I found some issues in some calling codes, for example Mexico, its calling code is 52 but the API returns 484, insted I tested your v2 and I believe the returning information is more trusthy, thanks for telling us abut your solution, hope the project continue and keep growing. |
@dhernandezmartinez I'm sorry, but I just checked and V3 doesn't have calling code. It has a composite code called "idd" and it is actually 52 :/ |
hello unfortunatly v2 and v3 are not compatible And if i take and recode for the v3, i will have to recode again for the v4 ? have a good day |
Yeah, I am finding his API is all over the place, best bet is to get the JSON file from the existing repo and reference that for your application. |
Well, they're obviously not compatible, hence the version number in order to avoid braking implementations.
They are reachable
Yes. That will apply to every API you consume.
You can download the json file to your project and consume it
Sorry about that, I will try to make it better. If you have any specifics, I would love to hear them |
yes i will find a way |
@heychazza Hi Charlie, what do you mean with is all over the place? |
Message from apilayer support: We no longer support restcountries.eu; however, we do offer a free tier of a similar API on countrylayer.com. See https://countrylayer.com/documentation/ |
Add easy to find information to readme, quoted from issues apilayer#251 (apilayer#251 (comment)), apilayer#252 (apilayer#252 (comment)) and apilayer#253 (apilayer#253 (comment))
Hello,
I run the api with this url for my little app : https://restcountries.eu/rest/v2/all?fields=name;population;capital;flag;region;alpha2Code
But today i have a lot of 502,503 and 504 error,
I am redirected here : http://countrylayer.com/rest/v2/all?fields=name;population;capital;flag;region;alpha2Code
Is anyone have the same ?
Thx
The text was updated successfully, but these errors were encountered: