1 vote
Accepted

How do I get the population of each state using WorldBank API?

The endpoint you're using is incorrect, you have to replace state by country in the URL, as explained in the API documention. In your case, the correct URL is: https://api.worldbank.org/v2/country/NE/...
J-J-J's user avatar
  • 300
1 vote

How do I get the population of each state using WorldBank API?

If you are writing about states as countries, you could get all all data for all countries using single call. Here are links to XML and CSV datasets https://data.worldbank.org/indicator/SP.POP.TOTL
Ivan Begtin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible