apilayer / restcountries

Get information about countries via a RESTful API
https://restcountries.eu
Mozilla Public License 2.0
2.24k stars 355 forks source link

Updating Data #174

Closed MonilBhavsar closed 3 years ago

MonilBhavsar commented 4 years ago

The data provided by API seems to be old. The population of India returned by API is 1295210000 while the current population of India is 1378712489.

amatosg commented 4 years ago

I fixed it in my project, you can see it here (it's a clone of this, but updated 😉 )

MonilBhavsar commented 4 years ago

Please Push that changes in the main repo, so that everyone is benefited by the updated data :)

amatosg commented 4 years ago

the reason for me to clone this project is that there wasn't any activity for the last 14 months. The API for this project is https:/restcountries.eu and I have created https:/restcountries.com the functionality is the same and it's available to everyone :)

For India, the example I showed you returns this:

[
  {
    "name": "British Indian Ocean Territory",
    "capital": "Diego Garcia",
    "population": 3000
  },
  {
    "name": "India",
    "capital": "New Delhi",
    "population": 1378712489
  }
]
MonilBhavsar commented 4 years ago

How can I get the data by its alpha code from your api? For Eg: https://restcountries.eu/rest/v2/alpha?codes=in

amatosg commented 4 years ago

As I have a slightly different implementation, in mine goes like this: https://restcountries.com/v2/alpha/codes=in

MonilBhavsar commented 4 years ago

Thank you, Can u share the documentation for your API service.

amatosg commented 4 years ago

I'm working on it. The information is here

MonilBhavsar commented 4 years ago

Thanks for the repo, Great Work :)

ePascalC commented 3 years ago

255 merged with 2020 data