GithubHelp home page GithubHelp logo

Comments (22)

amatosg avatar amatosg commented on September 22, 2024 3

you can use https://restcountries.com instead :) it's a clone of this project that is updated more often

from restcountries.

egpotter avatar egpotter commented on September 22, 2024

There are more people complaining here #251. We also face the same

from restcountries.

heychazza avatar heychazza commented on September 22, 2024

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.

amatosg avatar amatosg commented on September 22, 2024

yes, I keep the original license and it's available for free :)

from restcountries.

Vitaljok avatar Vitaljok commented on September 22, 2024

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.

amatosg avatar amatosg commented on September 22, 2024

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.

heychazza avatar heychazza commented on September 22, 2024

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.

Yeah, I realised that… I ended up forking the original url, and using the dist countries.json file in my app

from restcountries.

amatosg avatar amatosg commented on September 22, 2024

If you just need the json file, I get it from here :)

from restcountries.

heychazza avatar heychazza commented on September 22, 2024

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.

amatosg avatar amatosg commented on September 22, 2024

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.

heychazza avatar heychazza commented on September 22, 2024

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

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.

amatosg avatar amatosg commented on September 22, 2024

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.

heychazza avatar heychazza commented on September 22, 2024

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

Hey buddy, most of this seems perfect, only issue I see is;

  • subregion is now region.
  • region is now continent.

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.

amatosg avatar amatosg commented on September 22, 2024

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.

dhernandezmartinez avatar dhernandezmartinez commented on September 22, 2024

@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.

amatosg avatar amatosg commented on September 22, 2024

@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.

MrSimh avatar MrSimh commented on September 22, 2024

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.

heychazza avatar heychazza commented on September 22, 2024

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

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.

amatosg avatar amatosg commented on September 22, 2024

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.

MrSimh avatar MrSimh commented on September 22, 2024

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.

amatosg avatar amatosg commented on September 22, 2024

@heychazza Hi Charlie, what do you mean with is all over the place?

from restcountries.

ePascalC avatar ePascalC commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.