Closed MonilBhavsar closed 3 years ago
I fixed it in my project, you can see it here (it's a clone of this, but updated 😉 )
Please Push that changes in the main repo, so that everyone is benefited by the updated data :)
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
}
]
How can I get the data by its alpha code from your api? For Eg: https://restcountries.eu/rest/v2/alpha?codes=in
As I have a slightly different implementation, in mine goes like this: https://restcountries.com/v2/alpha/codes=in
Thank you, Can u share the documentation for your API service.
Thanks for the repo, Great Work :)
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.