Comments (22)
you can use https://restcountries.com instead :) it's a clone of this project that is updated more often
from restcountries.
There are more people complaining here #251. We also face the same
from restcountries.
you can use https://restcountries.com instead :) it's a clone of this project that is updated more often
Is yours open sourced?
from restcountries.
yes, I keep the original license and it's available for free :)
from restcountries.
you can use https://restcountries.com instead :) it's a clone of this project that is updated more often
@amatosg, just to keep it honest for your potential new audience, you should mention that https://restcountries.eu/rest/v2/all
and https://restcountries.com/v2/all
are not compatible and have different field names.
So the one who wants to migrate to new API have also to modify his code, not just URL.
from restcountries.
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.
from restcountries.
you can use https://restcountries.com instead :) it's a clone of this project that is updated more often
@amatosg, just to keep it honest for your potential new audience, you should mention that
https://restcountries.eu/rest/v2/all
andhttps://restcountries.com/v2/all
are not compatible and have different field names.So the one who wants to migrate to new API have also to modify his code, not just URL.
Yeah, I realised that… I ended up forking the original url, and using the dist countries.json file in my app
from restcountries.
If you just need the json file, I get it from here :)
from restcountries.
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.
from restcountries.
I have a V2 with almost the same structure (I added a png file for the flag) as this project which also includes population:
https://restcountries.com/v2/name/Eswatini
from restcountries.
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.
from restcountries.
yeap :) almost all the functionallity available here is also available in V2 (Although I think I made the mistake of changing the URL structure)
https://restcountries.com/v2/all
from restcountries.
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;
subregion
is nowregion
.region
is nowcontinent
.
These are perfectly fine, but mainly for others to consider, only issue I see is that some things don't have a region
key, could these be present but just null?
from restcountries.
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 region
was not set but was present as empty. Could you tell me which country does not have the region
field?
thanks!
from restcountries.
@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.
from restcountries.
@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 :/
from restcountries.
hello
unfortunatly v2 and v3 are not compatible
v2 flags links are unreachable too
And if i take and recode for the v3, i will have to recode again for the v4 ?
I just need a json, up to date, and compatible to work with my little app.
If possible, without creat mine in local with all flags and names. and [fields i need] to bypass the issue
have a good day
from restcountries.
hello
unfortunatly v2 and v3 are not compatible
v2 flags links are unreachable tooAnd if i take and recode for the v3, i will have to recode again for the v4 ?
I just need a json, up to date, and compatible to work with my little app.
If possible, without creat mine in local with all flags and names. and [fields i need] to bypass the issuehave 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.
from restcountries.
unfortunatly v2 and v3 are not compatible
Well, they're obviously not compatible, hence the version number in order to avoid braking implementations.
v2 flags links are unreachable too
They are reachable
And if i take and recode for the v3, i will have to recode again for the v4 ?
Yes. That will apply to every API you consume.
I just need a json, up to date, and compatible to work with my little app.
You can download the json file to your project and consume it
I am finding his API is all over the place
Sorry about that, I will try to make it better. If you have any specifics, I would love to hear them
from restcountries.
yes i will find a way
for flags its ok i found https://restcountries.com/data/afg.svg is ok,i had https://restcountries.eu/data/afg.svg
thx
from restcountries.
@heychazza Hi Charlie, what do you mean with is all over the place?
from restcountries.
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/
from restcountries.
Related Issues (20)
- Swaziland Country Name HOT 7
- Endpoint down? HOT 4
- Invalid certificate for restcountries.eu HOT 5
- What happend to the api? is it down forever? will it come back? HOT 39
- Changing Turkey to Türkiye
- Some requests return a list with the value null inside HOT 1
- Country name "Luxemburg" contains a comma symbol in official name HOT 1
- wrong car country code for Germany HOT 3
- You API/Website is down HOT 4
- server down HOT 2
- Update Kazakhstan calling codes HOT 1
- Getting Regions
- The API is down
- SSL expired HOT 2
- Why There isn't Palestine country HOT 1
- cape verde Latlng are incorrecte HOT 3
- List of countries not alphabetical HOT 5
- Not working api and website HOT 5
- Incorrect Maps Attached For Indonesia
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restcountries.